coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: littlemiss on August 25, 2007, 07:21:12 PM

Title: Cannot redeclare class cpm
Post by: littlemiss on August 25, 2007, 07:21:12 PM
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.
Title: Re: Cannot redeclare class cpm
Post by: Nibbler on August 25, 2007, 07:35:34 PM
You are trying to use it twice. The second path should point to your cpmfetch_config.php
Title: Re: Cannot redeclare class cpm
Post by: littlemiss on August 26, 2007, 12:19:13 PM
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.
Title: Re: Cannot redeclare class cpm
Post by: littlemiss on August 26, 2007, 12:24:16 PM
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.