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: Fatal error: Cannot redeclare class cpm in / on line 1698  (Read 6194 times)

0 Members and 1 Guest are viewing this topic.

missparis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Fatal error: Cannot redeclare class cpm in / on line 1698
« on: February 15, 2009, 02:59:21 pm »

Hello,

I have just installed cpmFetch into my second gallery which displays only videos (with .jpg thumbnails). I believe the installing goes right because I see the images on the test page.
I put this code on the sidebar (where there is also the code for my first gallery named /gallery):
Quote
<?php
  include "./videos/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./videos/cpmfetch/cpmfetch_config.php");
  $options = array('windowtarget' => '_blank',"imageheight"=>"85","imagewidth"=>"85");
  $objCpm->cpm_viewLastAddedMedia(2,2,$options);
  $objCpm->cpm_close();
?>

and I got a "Fatal error: Cannot redeclare class cpm in /home/melindac/public_html/videos/cpmfetch/cpmfetch.php on line 1698"

My second gallery is named /videos.
I have tried some things I found on this board but it changes nothing.

Can you help me please ?

Thanks in advance.

Logged

Nibbler

  • Guest
Re: Fatal error: Cannot redeclare class cpm in / on line 1698
« Reply #1 on: February 15, 2009, 03:24:54 pm »

Remove the include line from that code.
Logged

missparis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Fatal error: Cannot redeclare class cpm in / on line 1698
« Reply #2 on: February 15, 2009, 03:28:45 pm »

It's working great now, thank you so much.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.