Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Getting Fatal Error Message  (Read 3533 times)

0 Members and 1 Guest are viewing this topic.

meghan33

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
[Solved]: Getting Fatal Error Message
« on: September 03, 2009, 08:41:19 am »

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

Quote
Fatal 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.
« Last Edit: September 03, 2009, 05:02:35 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Getting Fatal Error Message
« Reply #1 on: September 03, 2009, 12:08:45 pm »

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

meghan33

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Getting Fatal Error Message
« Reply #2 on: September 03, 2009, 04:53:45 pm »

It worked thank you.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 20 queries.