[Solved] Upload failure: Call to a member function on a non-object in util.php on line 1156

Yuan

Joined: 2003-12-03
Posts: 144
Posted: Mon, 2006-11-13 01:42

I have always used the URL method to upload local files. Nothing seems to have changed since last successful upload. (Among activities in between: uploaded some pictures using URL method from remote URL's; hacked a couple of PHP scripts to allow TIFF upload but subsequently reverted to unhacked version; uploaded a couple of test TIFF pictures, but subsequently deleted them.) Now when I try to upload local files, I get the above error.

I searched for similar errors in this forum but they seem inconclusive.

Additional note: The failure seems to occur only in subalbums. First level albums do not appear affected.

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://solid77.doodle22.com/nature?newlang=en_US
Gallery version: 1.5.2pl2
Apache version: 2.0.50
PHP version (don't just say PHP 4, please): 4.3.8
Graphics Toolkit: NetPBM
Operating system: Linux
Web browser/version (if applicable): Netscape 7.2/8.0, Firefox 2.0, IE6

 
Yuan

Joined: 2003-12-03
Posts: 144
Posted: Mon, 2006-11-13 18:43

Mystery solved - in an unexpected manner.

Yuan wrote:
hacked a couple of PHP scripts to allow TIFF upload but subsequently reverted to unhacked version

Or I thought so. I double checked utils.php and really reverted to original, all became functional again.

But I still don't understand - all I changed was one irrelavant line in utils.php:

-    return array('jpg', 'jpeg', 'gif', 'png');
+    return array('jpg', 'jpeg', 'gif', 'png', 'tiff', 'tif');

How can this affect normal upload?