SMFHacks.com

SMF Gallery Lite => SMF Gallery Lite => Topic started by: NickBoudin on March 11, 2009, 08:48:17 pm

Title: Cannot view gallery images.
Post by: NickBoudin on March 11, 2009, 08:48:17 pm
Not too sure what's going on. Once an image is added to the gallery, it is unable to upload to the gallery folder.


I get multiple errors in my log. Here they are from first to last.

Code: [Select]
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /www/website.com/public_html/forums/Sources/Gallery.php
Line: 589

Code: [Select]
2: move_uploaded_file(/www//website.com/public_html/forums/gallery2_11_03_09_5_43_05.jpeg) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied
File: /www/website.com/public_html/forums/Sources/Gallery.php
Line: 648

Code: [Select]
2: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phphFaBuD' to '/www//website.com/public_html/forums/gallery2_11_03_09_5_43_05.jpeg'
File: /www/website.com/public_html/forums/Sources/Gallery.php
Line: 648

Code: [Select]
2: rename(/www//website.com/public_html/forums/gallery2_11_03_09_5_43_05.jpeg_thumb,/www//totallyterrariums.com/public_html/forums/gallerythumb_2_11_03_09_5_43_05.jpeg) [<a href='function.rename'>function.rename</a>]: No such file or directory
File: /www/website.com/public_html/forums/Sources/Gallery.php
Line: 657


If there is anything else I could post to allow for this to be easier for the corrector, let me know please!


Thank you very much,
-Nick
Title: Re: Cannot view gallery images.
Post by: SMFHacks on March 11, 2009, 09:49:55 pm
I would check that your Gallery path is correct so be of the form
/home/yoursite/gallery/

Compare it to the path foun under Admin -> Server Settings should be almost the same.
Title: Re: Cannot view gallery images.
Post by: NickBoudin on March 11, 2009, 10:01:54 pm
It all seems to be correct.

Code: [Select]
Gallery Path:   /www//website.com/public_html/forums/gallery
Gallery Url: http://website.com/forums/index.php?action=gallery
Title: Re: Cannot view gallery images.
Post by: SMFHacks on March 11, 2009, 10:22:39 pm
Fix the following

Gallery Path:   /www//website.com/public_html/forums/gallery/
Gallery Url: http://website.com/forums/gallery/
Title: Re: Cannot view gallery images.
Post by: NickBoudin on March 11, 2009, 10:33:25 pm
Beautiful!

Thank you very much, sir. I should have posted last night instead of giving up!  ;D


I appreciate the support, and your Mod.



Thanks agian, very much.  8)
Title: Re: Cannot view gallery images.
Post by: SMFHacks on March 11, 2009, 10:50:54 pm
No problem