SMFHacks.com

SMF Gallery Pro => Support => Topic started by: Cepheus on April 06, 2008, 02:10:58 pm

Title: Images not showing
Post by: Cepheus on April 06, 2008, 02:10:58 pm
My hosts have recently rebuilt some part of my server to add the pspell module back in after messing the entire server up during an upgrade. Now that they have done this, none of my existing images are appearing in the Gallery. When adding new images, the image doesn't show either.

When trying to add an image I get the following errors in the error log:

Today at 08:03:32 PM
 http://www.fgoc.co.uk/forum/index.php?action=gallery&sa=add2

2: imagettftext() expects parameter 1 to be resource, string given
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 5178
   
Today at 08:03:32 PM

http://www.fgoc.co.uk/forum/index.php?action=gallery&sa=add2

2: imageftbbox() [<a href='function.imageftbbox'>function.imageftbbox</a>]: Could not find/open font
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 5154
   
Today at 08:03:32 PM
http://www.fgoc.co.uk/forum/index.php?action=gallery&amp;sa=add2

2: imagecolorallocate(): supplied argument is not a valid Image resource
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 5147
   

Today at 08:03:32 PM

http://www.fgoc.co.uk/forum/index.php?action=gallery&amp;sa=add2

8: Undefined index:
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 5128
   
Today at 08:03:32 PM

http://www.fgoc.co.uk/forum/index.php?action=gallery&amp;sa=add2

8: Undefined index:
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 5114
   
Today at 08:03:32 PM

http://www.fgoc.co.uk/forum/index.php?action=gallery&amp;sa=add2

2: rename(/home/xxxx/public_//forum/gallery/1/1_06_04_08_8_03_32.jpg_thumb,/home/xxxx/public_//forum/gallery/1/thumb_1_06_04_08_8_03_32.jpg) [<a href='function.rename'>function.rename</a>]: No such file or directory
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 1395
   
Today at 08:03:32 PM

 http://www.fgoc.co.uk/forum/index.php?action=gallery&amp;sa=add2
Apply Filter: Only show the errors with the same message
2: getimagesize(/home/xxxx/public_//forum/gallery/1/1_06_04_08_8_03_32.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
File: /home/xxxx/public_/forum/Sources/Subs-Graphics.php
Line: 242
   
Today at 08:03:32 PM
 http://www.fgoc.co.uk/forum/index.php?action=gallery&amp;sa=add2

2: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phprn6A8X' to '/home/xxxx/public_//forum/gallery/1/1_06_04_08_8_03_32.jpg'
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 1388
   
Today at 08:03:32 PM
 http://www.fgoc.co.uk/forum/index.php?action=gallery&amp;sa=add2

2: move_uploaded_file(/home/xxxx/public_//forum/gallery/1/1_06_04_08_8_03_32.jpg) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 1388


Please help? :-\ Thanks in advance

Paul
Title: Re: Images not showing
Post by: SMFHacks on April 06, 2008, 04:15:01 pm
I would first verify that all the paths are correct.  Check under Server Settings that the Sources path matches the path found under Gallery configuration.



The errors in the log are all caused by the failure to move the file "2: move_uploaded_file(/home/xxxx/public_//forum/gallery/1/1_06_04_08_8_03_32.jpg) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied
File: /home/xxxx/public_/forum/Sources/Gallery.php
Line: 1388"

Which sounds like the gallery no longer has the writable permissions.
Title: Re: Images not showing
Post by: Cepheus on April 06, 2008, 05:24:04 pm
Thanks for the helpful reply - I passed it onto the hosts who have confirmed that there were permissions problems their end which they have now fixed.

Many thanks for the prompt reply

Paul