Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Problem with uploading image

Asked Modified Viewed 3,153 times
D
DarcH
D
DarcH 10
  • Junior Member, joined since
  • Contributed 36 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
asked
Junior Member

When I add an image to an album in administration and then want to see it this error occurs:

Quote

Warning: filesize() [function.filesize]: stat failed for images/photoalbum/album_5/imgp5498.jpg in /var/www/darch/darch/photogallery.php on line 94
0 replies

8 posts

K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

Looks that your picture is to big. Try with a smaller picture or raise the size settings in admin panel.
0 replies
D
DarcH
D
DarcH 10
  • Junior Member, joined since
  • Contributed 36 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
answered
Junior Member

My settings are 1800x1600 px and 1.95Mb, uploaded some small picture and doesn't work.
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

have you checked the chmod settings on

images/photoalbum/

is set to 777 ?
0 replies
D
DarcH
D
DarcH 10
  • Junior Member, joined since
  • Contributed 36 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
answered
Junior Member

I checked that first...
0 replies
J
Joe Kriz
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
answered
Senior Member

Do you have Safe Mode set to off?
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

This is a safe mode problem, I've experienced it before. If you look, you should see if the images are being placed in the images/photoalbum folder and NOT images/photoalbum/album_x

Look for the line below in: photogallery.php, photo.php, administration/photoalbums.php and administration/photos.php

Find...

define("SAFEMODE", @ini_get("safe_mode"wink ? true : false);

Replace it with:

define("SAFEMODE", true);

That'll fix it.
0 replies
D
DarcH
D
DarcH 10
  • Junior Member, joined since
  • Contributed 36 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you HobbyMan!
0 replies
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
answered
Member

Thanks Hobby man for the link to this thread

i changed the code in 3 of the files but in photo.php i only find

if (!@ini_get("safe_mode")) { define("SAFEMODE", false); } else { define("SAFEMODE", true); }


What do I substitute?
Edited by enimal on 08-11-2008 06:43,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

K
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
J
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
D
D
DarcH 10
  • Junior Member, joined since
  • Contributed 36 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
E
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet