coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: kumschick on September 14, 2004, 09:16:39 PM

Title: Fatal error: Cannot redeclare scandir()
Post by: kumschick on September 14, 2004, 09:16:39 PM
Hi,

We have updated our server with PHP 5.0.1

since then we get on the page "/searchnew.php" this error msg: Fatal error: Cannot redeclare scandir() in ...\www\album\searchnew.php on line 300
We don't want to update the album?

Title: Re: Fatal error: Cannot redeclare scandir()
Post by: Nibbler on September 14, 2004, 09:20:49 PM
Rename the function declaration and the function calls to something different eg. CPGscandir.
Title: Re: Fatal error: Cannot redeclare scandir()
Post by: Joachim Müller on September 15, 2004, 09:28:28 AM
this has been solved for cpg1.3.x, I guess you're using an outdated version of coppermine. Updating recommended.
We have tested coppermine with php5, but there appear to be issues for some users when trying to run php5 together with coppermine.

Joachim