Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/galler Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/galler
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/galler

Started by nthewitt, February 25, 2008, 05:31:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nthewitt

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   :-\

copperminepro

post the full error message

more than likely you somehow added a line break at the bottom of a php file after the ?>

nthewitt

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  :-[

Joachim Müller

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.