Cannot redeclare class cpm Cannot redeclare class cpm
 

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]

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.