09-29-2017, 08:34 AM
I had this error this morning. I found that the problem is that the variable $row is not initialized outside the for each loop.
This problem kicks in , as already mentioned by someone, when the directory is empty.
if I initialize the variable $row then an empty value is returned and somewhere else things are going wrong. All file names in the database are messed up then.
I also wasn't able to run the admin maintenance page (because that also had disappeared)
I had to find the initial SQL code in the init-files and run that in phpMyAdmin to restore it.
The quick workaround is to copy a dummy php file in all directorys.
I did not dive into it any further because I was making an menu maintenance program for US and wanted to complete it.
btw. I have implemented an nice menu-edit function and I'll make a remark about it on the proper topic
This problem kicks in , as already mentioned by someone, when the directory is empty.
if I initialize the variable $row then an empty value is returned and somewhere else things are going wrong. All file names in the database are messed up then.
I also wasn't able to run the admin maintenance page (because that also had disappeared)
I had to find the initial SQL code in the init-files and run that in phpMyAdmin to restore it.
The quick workaround is to copy a dummy php file in all directorys.
I did not dive into it any further because I was making an menu maintenance program for US and wanted to complete it.
btw. I have implemented an nice menu-edit function and I'll make a remark about it on the proper topic