Advanced search  

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

Pages: [1]   Go Down

Author Topic: Fatal error: Cannot redeclare scandir() in /usr/home/allcreat/public_html/galler  (Read 3244 times)

0 Members and 1 Guest are viewing this topic.

nthewitt

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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

copperminepro

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 48

post the full error message

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

nthewitt

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 21 queries.