Undefined index in ..../lib/upload_functions.php on line 720

5 posts by 2 authors in: Forums > CMS Builder
Last Post: April 4, 2016   (RSS)

Hi Ragi,

Thanks for the detailed error reporting, I've taken a look at the code, and I think I might know what's causing this. 

Have you recently removed a section that contained an upload field? And if so, did you delete the schema directly from the schema directory? 

It looks like that error could be thrown if CMS Builder finds an unlinked upload that belongs to a section that no longer exists. If I can confirm the issue, I'll make sure that we resolve it in our next release. 

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com

Greg:  Not exactly.  I removed (deleted) an upload field and created a list field and a new upload field.  I did not manually touch the schema files.

Now I did notice that on my Ubuntu 14 system the ownership of all the ini.php files is www-data/www-data except for the _xxx files which is root/root.  Permissions for all the ini.php files is 666 (rw-rw-rw) except for the root owned ones which is 777 (rwxrwxrwx).  The directory is owned by root/root (drwxrwxrws - 777)

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By gregThomas - April 4, 2016

Hi Ragi, 

Thanks for those extra details, I was able to recreate the issue in the latest build of CMS Builder. I've informed the lead developers about it, the problem will be resolved in the next release of CMS Builder.

The issue happens when you delete an upload field from a section that has uploads in it. The uploads aren't removed when the field is deleted causing an error to display when the upload clean up function runs next time you upload something.

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com

Thanks Greg!

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke