[Solved]: Getting Fatal Error Message [Solved]: Getting Fatal Error Message
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: Getting Fatal Error Message

Started by meghan33, September 03, 2009, 08:41:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

meghan33

I keep getting this message when I try and to add the code to the main site.

QuoteFatal error: Cannot redeclare class cpm_dao in /home/meghan3/RebeccaHerbst/Media/cpmfetch/cpmfetch_dao.php on line 22


And this is the code i am using

Quote<?php
 include "./Media/cpmfetch/cpmfetch.php";
 $objCpm = new cpm("./Media/cpmfetch/cpmfetch_config.php");
 $objCpm->cpm_viewLastAddedMedia(1,2);
 $objCpm->cpm_close();
?>

And it all install correctly. I didn't have any problems till I added the code to the main layout.

Nibbler

Means you are aleady using cpmfetch somewhere else in the page. Remove the second include line.

meghan33