coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: nthewitt on February 25, 2008, 05:31:00 AM

Title: Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/galler
Post by: nthewitt on February 25, 2008, 05:31:00 AM
any ideas what is happening here?? I am stumped,
Thanks heaps - I have not used this forum before - hope I have posted using the correct protocol   :-\
Title: Re: Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/ga
Post by: copperminepro on February 25, 2008, 05:47:38 AM
post the full error message

more than likely you somehow added a line break at the bottom of a php file after the ?>
Title: Re: Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/galler
Post by: nthewitt on February 28, 2008, 09:23:02 AM
Hi,
Thank you for the reply - here is the full error message -

Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/gallery/searchnew.php on line 309

any help would be greatly appreciated - I have show pics I need to upload and can't do it  :-[
Title: Re: Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/ga
Post by: Joachim Müller on February 28, 2008, 09:59:49 AM
You appear not to be installing the most recent stable release of coppermine (which is currently cpg1.4.16) - this has been fixed in previous versions - the function has been renamed from scandir to CPGscandir because of a collision with the naming scheme of PHP5. Don't install an outdated version - there are reasons why we release new versions: they fix issues that existed in previous versions. Get cpg1.4.16 and install it.