Fatal Errors Fatal Errors
 

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 Errors

Started by blambert, July 11, 2005, 07:14:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blambert

Cannot redeclare class cpm in /home/blambert/public_html/photos/coppermine.php on line 31
Could someone please explain how to fix this problem...I think I am not doing something correct. This error occured while using CPMFETCH to import a Custom Header.
Thank you

Joachim Müller

post a link to the page the error occurs on. I'm suspecting that you're trying to use cpmFetch (which is meant to be used on non-coppermine pages) on a coppermine page. Also note that you're using an outdated version of cpmFetch, as the file coppermine.php only used to exist in older versions of cpmFetch, it has been replaced with another file. You're recommended to use the most recent stable version of cpmFetch.
The error message "Cannot redeclare" usually happens if you include files twice or if two different apps use the same function names.

blambert


blambert

I am trying to use a IF ELSE SWITCH as a conditional statement for the main page. Calling 'Lastup' albs in a {CUSTOM_HEADER} to the right of the ablum thumbnails in a new table. But before I add the IF ELSE SWITCH condition I would like to just get it working on my main page.
Thank you for any help

blambert

I got it to work....you are correct about "The error message "Cannot redeclare" usually happens if you include files twice or if two different apps use the same function names." so I used CUSTOM_FOOTER which corrected the problem. Now I need to structure the IF ELSE SWITCH condition.  http://www.lambertandassoc.com/photos/index.php