Fatal error: Cannot redeclare class cpm in / on line 1698 Fatal error: Cannot redeclare class cpm in / on line 1698
 

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 error: Cannot redeclare class cpm in / on line 1698

Started by missparis, February 15, 2009, 02:59:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

missparis

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.


Nibbler


missparis