Cannot redeclare class cpm Cannot redeclare class cpm
 

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

Cannot redeclare class cpm

Started by littlemiss, August 25, 2007, 07:21:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

littlemiss

I keep getting this error, from what i can deduce from other forum posts, etc, this usually occurs when you try to use the script twice, which I am not, or adding it to a coppermine page, which again, I am not doing, this is the only code i have on the page:

<?php
  include_once "/home/www/heartbreak-mentality.co.uk/Gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/home/www/heartbreak-mentality.co.uk/Gallery/cpmfetch/cpmfetch.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>


I have no clue what is wrong now, I have been trying to get this script workin for hours so maybe my brains just mushed and it something simple.

Nibbler

You are trying to use it twice. The second path should point to your cpmfetch_config.php

littlemiss

Ok I changed some things and got it kinda working. Now the images are not showing up i changed things in the config file, maybe I shouldn't have but can some one give me an idea on why the images are not showing up, i think the paths are right now i have modified things.

littlemiss

sorry i cant seem to edit my last post, but it seems to be the http://@domain@ function thats not working, what is it supposed do do, should i change this to my actual domain.