Last Uploads don't work Last Uploads don't work
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Last Uploads don't work

Started by marian, May 08, 2008, 10:28:30 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

marian

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??

Joachim Müller

Are you having issues with the meta album "last uploads" or the upload feature?

marian

Quote from: 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?
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.

Joachim Müller

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.

marian

Quote from: 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.
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?

Nibbler

That mod is known to cause this issue on large galleries. The code that determines the position from the pid does not scale well.

marian

Quote from: 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.
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??

Nibbler

Increasing the memory limit should work well enough for now.

marian

Quote from: Nibbler on May 09, 2008, 02:03:28 PM
Increasing the memory limit should work well enough for now.
Thanks, could you suggest a suitable memory limit?

Nibbler

I'm not familiar with your setup, so I can't really advise you but 128M would be a good start.

marian

Quote from: 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.
Thanks a lot, we'll try that and let you know the result.

marian

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.