coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: pftq on July 17, 2007, 04:38:45 PM

Title: Premature End of Script Headers
Post by: pftq on July 17, 2007, 04:38:45 PM
I'm getting a Internal Server Error every time I run slideshow from the last uploaded pictures.  I checked the error logs and it says Premature End of Script Headers.

I've done some editing of the files, but I uploaded original copies and the error still persists.

It only occurs for the Last Uploaded album and only from the front page.  If you go to Last Uploaded on a category or album, the slideshow works just fine.

I went through and commented out lines and narrowed it down to get_pics (for the lastup case).  I've never edited that part of the file.  Any ideas what could be wrong?
Title: Re: Premature End of Script Headers
Post by: pftq on July 17, 2007, 04:44:47 PM
Hmm can't find edit button - sorry for double post.

Some more points I found:
- Logout (various hidden albums then not included) and slideshow works fine.

I figured maybe there's a limit to # of pictures.  In the slideshow.inc.php, I went ahead and added a 1000 limit to the line: $pic_data = get_pic_data($_GET['album'], $pic_count, $album_name, 1000, -1, false);

The slideshow works fine now.  Is there any way to avoid the limit though?
Title: Re: Premature End of Script Headers
Post by: Nibbler on July 17, 2007, 04:46:45 PM
Not at the moment, although this should be fixed in the next version.