[SOLVED]Problem Uploading Images (using URL method)

gregchet
gregchet's picture

Joined: 2003-01-10
Posts: 105
Posted: Wed, 2005-05-11 15:35

When I try to upload images via the URL method (which is what I've always used), I get the following error:

-----
Fetching Urls...
/HOME_DIR_PATH/public_html/to_up.zip
Processing status...

Warning: unlink(/HOME_DIR_PATH/public_html/__gallery/temp/upload.b8d4c0b8f3b3a7b35c0e505e89b14324): No such file or directory in /HOME_DIR_PATH/public_html/__gallery/platform/fs_unix.php on line 83
-----

This problem popped up yesterday after I upgraded my gallery (and albums), had lots of problems, and had to revert back to an older version of the gallery software. My albums were upgraded with the new version, and then 'upgraded' again when I reverted, and I have a feeling my problem is related to this.

Does anyone have any ideas for how I can fix this? (I'd prefer to not have to upgrade gallery, as it's going to cause many problems with my entire site, but I have a feeling that's what the recommendation is going to be).

-Greg

----
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://www.greg.ca/__gallery/
Gallery version: 1.4.4-pl6
Apache version: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2634a mod_ssl/2.8.22 OpenSSL/0.9.7a
PHP version (don't just say PHP 4, please): 4.3.11
Graphics Toolkit: netpbm
Operating system: Linux
Web browser/version (if applicable): IE 6

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2005-05-12 02:12

Do other methods of uploading work?

 
gregchet
gregchet's picture

Joined: 2003-01-10
Posts: 105
Posted: Thu, 2005-05-12 03:00

The Applet & Applet (big) both seem to work ok, but none of the other methods are working.

This is what I get when trying to upload a .zip file through the "Form" method:

----------
Processing status...
Error: Archive: /tmp/phpqxT1xE
- Adding _DSC01267.jpg
Warning: copy(/HOME_DIR_PATH/public_html/__gallery/temp/_DSC01267.jpg): failed to open stream: No such file or directory in /HOME_DIR_PATH/public_html/__gallery/platform/fs_unix.php on line 26

Resizing/compressing original image
Warning: getimagesize(/HOME_DIR_PATH/public_html/__gallery/_albums/MAY-06-2005-7/DSC01267.jpg): failed to open stream: No such file or directory in /HOME_DIR_PATH/public_html/__gallery/util.php on line 436
----------

I guess I'll just stick with the applet version for now, it seems to be working just fine.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2005-05-12 11:53

What are the permissions like on that temp/ dir?

What's the output of a test script (name is something.php) with the following code?

<?php
system("ls -al /HOME_DIR_PATH/public_html/__gallery/temp/");
?>
 
gregchet
gregchet's picture

Joined: 2003-01-10
Posts: 105
Posted: Thu, 2005-05-12 18:56

Ummm, ok, no clue how that got changed, but you were right.

Somehow it got switched to 755, but now that I've switched it back to 777 it's working fine.

That's just too weird, all I did was rename the gallery folder, it shouldn't have done anything at all to the temp folder.

Thanks!

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2005-05-12 22:28

No problem!