[SOLVED] Unable to upload: Any method/Any file

jwaterston
jwaterston's picture

Joined: 2007-01-02
Posts: 4
Posted: Tue, 2007-01-02 18:40

I have read many posts and have been unable to find a problem like mine. I successfully migrated from gallery 1.4 to 2.1.2. Except this upload problem. I have tried the web form, the Java form, Gallery remote 1.5, and the iPhoto plugin.

I am currently operating in debug mode and have created a link to the debug output. The image I have been using is only 148kb, and my upload limit is set to 12M. Any help would be appreciated. I have created a user:Test pw:test that has full permission in the Test album. Please check it out www.waterston.org/gallery

-John Waterston


Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.3.11 cgi
Webserver = Apache
Database = mysql 4.1.21-standard-log, lock.system=flock
Toolkits = Exif, ImageMagick, Gd
Acceleration = none, partial/900
Operating system = Linux cgi31.int.bizland.net 2.4.31-grsec #1 Tue Sep 6 18:19:10 EDT 2005 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

Hosted by: FatCow

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-01-02 19:06
 
jwaterston
jwaterston's picture

Joined: 2007-01-02
Posts: 4
Posted: Tue, 2007-01-02 19:14

* To diagnose this problem you should use the 'Add items' -> 'From browser' method since it shows most debug information.
=Done and see link link above to debug info.

* In case PHP uploads are disabled completely on your webserver, there is a warning about that on the 'Add items' -> 'From browser' page. Also, this page shows the upload limits.
=See my phpinfo at www.waterston.org/oldsite/scripts/test.php

* What exactly do you see when you try to upload a file? Any errors?
=I cannot find anything listed as error. Oddly, after the web upload page refreshes there are no input forms available. The file has not been added to the album.

I have attempted modifying permissions. The only way that I could add files was throught the directory method during the migration.

Please attempt to recreate this at the site. www.waterston.org/gallery/ user:test pwd:test

-John Waterston

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-01-02 20:06

- your memory_limit of 12 MB is a little low.
- especially in combination with the gd module. you should ensure that the gd module isn't the top priority toolkit (site admin -> toolkit priority).
- the linked debug output isn't formatted, there are no newlines. next time, please ensure that the newlines don't get lost. it's very hard to read that way.
- tried to add an image to your gallery and i see what you mean.

can you change some php configuration settings (e.g. via .htaccess) such that we can see more details?
- display_startup_errors -> On
- display_errors -> On
- error_reporting -> E_ALL

also, is there anything in the apache error logs?

 
jwaterston
jwaterston's picture

Joined: 2007-01-02
Posts: 4
Posted: Tue, 2007-01-02 21:01

I found a way to access the error logs and found the following.

PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
PHP Notice: Undefined index: visibleBoxCount in /hermes/web08/b1350/moo.waters/gallery/g2data_54213asf/smarty/templates_c/%%2714059464/%%D1^D16^D16309DF%%ItemAddFromBrowser.tpl.php on line 78
PHP Notice: Undefined index: visibleBoxCount in /hermes/web08/b1350/moo.waters/gallery/g2data_54213asf/smarty/templates_c/%%2714059464/%%D1^D16^D16309DF%%ItemAddFromBrowser.tpl.php on line 73
PHP Notice: Undefined index: visibleBoxCount in /hermes/web08/b1350/moo.waters/gallery/g2data_54213asf/smarty/templates_c/%%2714059464/%%D1^D16^D16309DF%%ItemAddFromBrowser.tpl.php on line 59

I am unable to modify my php.ini, so I contacted my hosting company. I will try to modify the upload_tmp_dir variable.

The other 3 Notices seem to be some type of malformed template. (Should I forward this to another forum?)

Thanks for the quick response! I will keep the message board updated.

-John Waterston

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-01-02 22:07

Good job, yep, it's probably upload_tmp_dir.

The other 3 notices are a symptom of the upload_tmp_dir problem. They should go away as soon as the file uploade feature is fixed (upload_tmp_dir).

 
jwaterston
jwaterston's picture

Joined: 2007-01-02
Posts: 4
Posted: Wed, 2007-01-03 02:34

Fixed.. I had to make my host change the PHP upload_tmp_dir.

This site has the best support.

-John Waterston

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-01-03 02:48

Thanks for the update. I've added the issue about upload_tmp_dir to the troubleshooting docs.