SMFHacks.com
SMF Gallery Pro => Support => Topic started by: phxmaximus on February 26, 2011, 01:02:15 pm
-
Hello.
Today I just upgraded my forums to the 2.0 RC4 with security patch. Before doing this, I uninstalled all of my mods, including gallery pro, since was using an old version.
So, after doing the update to SMF, I installed gallery pro and all appears normal except for when I try to upload a picture. It appears to go ok, but the picture doesn't show up, and the following errors appear in the error log;
http://www.clan-phx.com/index.php?action=gallery;sa=add2
2: rename(/home/clanphxc/public_html/gallery/2/1-260211105003.jpeg_thumb,/home/clanphxc/public_html/gallery/2/thumb_1-260211105003.jpeg) [<a href='function.rename'>function.rename</a>]: No such file or directory
File: /home/clanphxc/public_html/Sources/Gallery2.php
Line: 1796
http://www.clan-phx.com/index.php?action=gallery;sa=add2
2: fopen(/home/clanphxc/public_html/gallery/2/1-260211105003.jpeg_thumb.tmp) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/clanphxc/public_html/Sources/Subs-Graphics.php
Line: 343
http://www.clan-phx.com/index.php?action=gallery;sa=add2
2: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phpgqZxxF' to '/home/clanphxc/public_html/gallery/2/1-260211105003.jpeg'
File: /home/clanphxc/public_html/Sources/Gallery2.php
Line: 1780
http://www.clan-phx.com/index.php?action=gallery;sa=add2
2: move_uploaded_file(/home/clanphxc/public_html/gallery/2/1-260211105003.jpeg) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied
File: /home/clanphxc/public_html/Sources/Gallery2.php
Line: 1780
Any ideas?
Thanks for your time.
-
Looks like bad permission on the created folder gallery/2/
Check the file permissions and make sure it is writable. and also the main gallery folder so any new folder created in the gallery folder should inherit the same permissions.
-
That was it.
My host recently moved my site to a new server, and for some reason, during the move, a lot of my directories were made not writeable. This was one of them that I missed. :)
Works perfect now, thanks for your help!
Justin
-
Glad to help I would double check all those folders in the gallery directory just to in case.