[SOLVED] Unable to upload: Any method/Any file
|
jwaterston
![]()
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
Hosted by: FatCow |
|


Posts: 32509
see:
http://codex.gallery2.org/index.php/Gallery2:Troubleshooting#Adding_Items_.2F_Albums_.2F_Upload
if the problem persists, please include a phpinfo link in your next post.
FAQ: What information is required when I ask for help in the forums?
Posts: 4
* 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
Posts: 32509
- 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?
Posts: 4
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
Posts: 32509
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).
Posts: 4
Fixed.. I had to make my host change the PHP upload_tmp_dir.
This site has the best support.
-John Waterston
Posts: 32509
Thanks for the update. I've added the issue about upload_tmp_dir to the troubleshooting docs.