Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Last Uploads don't work  (Read 3629 times)

0 Members and 1 Guest are viewing this topic.

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Last Uploads don't work
« 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??
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Last Uploads don't work
« Reply #1 on: May 09, 2008, 06:53:32 am »

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

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Last Uploads don't work
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Last Uploads don't work
« Reply #3 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.
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Last Uploads don't work
« Reply #4 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?
Logged

Nibbler

  • Guest
Re: Last Uploads don't work
« Reply #5 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.
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Last Uploads don't work
« Reply #6 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??
 
Logged

Nibbler

  • Guest
Re: Last Uploads don't work
« Reply #7 on: May 09, 2008, 02:03:28 pm »

Increasing the memory limit should work well enough for now.
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Last Uploads don't work
« Reply #8 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?
Logged

Nibbler

  • Guest
Re: Last Uploads don't work
« Reply #9 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.
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Last Uploads don't work
« Reply #10 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.
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Last Uploads don't work
« Reply #11 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.

Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.