Hi Again.
An update - for me, this turned out to be an incorrectly set limit in the php.ini file. In my case this was caused by the incorrect restore of the ini file after I re-established the site.
If you are getting this error (missing index), you should check the file limits in play by using php_info().
Specifically ensure the following three have appropriate values:
- upload_max_filesize = 16M
- post_max_size = 16M ;
- memory_limit = 32M ; Ensure this is larger than post_max_size - preferably 2x
(Do NOT take the above values as recommended. Think about what is appropriate for your site.)
As for the error itself, all I can say is that is a very obscure error given the cause. It seems to me that instead of just taking some open source code and slapping it into your product, NM, how about you actually think about what you are doing and wrap some checks around your code, so that if the file being uploaded is too large, tell us (or the user), instead of defaulting to this really stupid, careless error.
Regards.