forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: marian on May 08, 2008, 10:28:30 pm

Title: Last Uploads don't work
Post by: marian on May 08, 2008, 10:28:30 pm
Since the Coppermine hack we upgraded our server to the latest apache & PHP and, since then, Last Uploads haven't worked. People either get a blqnk screen or an error message "Fatal error: Allowed memory size of 67108864 bytes exhausted"
Any ideas??
Title: Re: Last Uploads don't work
Post by: Joachim Müller on May 09, 2008, 06:53:32 am
Are you having issues with the meta album "last uploads" or the upload feature?
Title: Re: Last Uploads don't work
Post by: marian on May 09, 2008, 10:16:00 am
Are you having issues with the meta album "last uploads" or the upload feature?
When someone clicks on a thumbnail in last uploads, like those on the bottom of this page http://www.bymnews.com/photos/
you don't get an image. Just a blank page or that error message.
Title: Re: Last Uploads don't work
Post by: Joachim Müller on May 09, 2008, 12:54:45 pm
You appear to have applied a mod: when clicking a thumbnail on the index page (section "Last additions"), I'm being sent to http://some_site.tld/your_coppermine_folder/displayimage.php?album=lastup&cat=0&pos=123 on my testbed, while on your page I'm being sent to http://www.bymnews.com/photos/displayimage.php?album=lastup&cat=0&pid=60146
Notice the pid vs. pos parameter. Undo your mod if it causes issues.
Title: Re: Last Uploads don't work
Post by: marian on May 09, 2008, 01:08:30 pm
You appear to have applied a mod: when clicking a thumbnail on the index page (section "Last additions"), I'm being sent to http://some_site.tld/your_coppermine_folder/displayimage.php?album=lastup&cat=0&pos=123 on my testbed, while on your page I'm being sent to http://www.bymnews.com/photos/displayimage.php?album=lastup&cat=0&pid=60146
Notice the pid vs. pos parameter. Undo your mod if it causes issues.
The mod from pos to pid was applied ages ago and there has never been a problem until we upgraded to the latest Apache & php.
"Allowed memory size of 67108864 bytes exhausted" seems strange to me, as I thought that would be sufficient. Maybe others with large galleries could say what memory they are using?
Title: Re: Last Uploads don't work
Post by: Nibbler on May 09, 2008, 01:39:33 pm
That mod is known to cause this issue on large galleries. The code that determines the position from the pid does not scale well.
Title: Re: Last Uploads don't work
Post by: marian on May 09, 2008, 01:52:19 pm
That mod is known to cause this issue on large galleries. The code that determines the position from the pid does not scale well.
Does that mean there is no solution other than to either disable last uploads or change back to pos, both of which would have a negative effect on visitor count - pos being Google unfriendly and last uploads being popular with daily regular visitors? Or is this an issue you are working on??
 
Title: Re: Last Uploads don't work
Post by: Nibbler on May 09, 2008, 02:03:28 pm
Increasing the memory limit should work well enough for now.
Title: Re: Last Uploads don't work
Post by: marian on May 09, 2008, 02:07:58 pm
Increasing the memory limit should work well enough for now.
Thanks, could you suggest a suitable memory limit?
Title: Re: Last Uploads don't work
Post by: Nibbler on May 09, 2008, 02:12:43 pm
I'm not familiar with your setup, so I can't really advise you but 128M would be a good start.
Title: Re: Last Uploads don't work
Post by: marian on May 09, 2008, 02:14:38 pm
I'm not familiar with your setup, so I can't really advise you but 128M would be a good start.
Thanks a lot, we'll try that and let you know the result.
Title: Re: Last Uploads don't work
Post by: marian on May 15, 2008, 11:07:48 am
Increasing the memory to 128 didn't change anything. Would more still make any difference and are there any negative consequences for having a lot of php memory?
This is the situation: Clicking on last uploads on index page doesn't work
http://www.bymnews.com/photos/displayimage.php?album=lastup&cat=0&pid=60548

Going to the category and then clicking on same image in last uploads does work

http://www.bymnews.com/photos/displayimage.php?album=lastup&cat=31&pid=60548

I noticed that when you click on the I to get picture info the URL shown below the pic is pos not pid. I can't be sure, but I believe that before we upgraded that url was also pid????

http://bymnews.com/photos/displayimage.php?pos=-60548
Any help appreciated, as the number of daily emails complaining about not being able to open from last uploads is increasing.