coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: theflori on November 13, 2006, 06:13:30 PM

Title: Using cpgFetch Twice with Joomla
Post by: theflori on November 13, 2006, 06:13:30 PM
Hello! I use cpgFetch with a Joomla Module! I build two Modules, but if i activate 2 plugins i become a error, when i use 1 module there is no error!

thats the Error Message:


QuoteFatal error: Cannot redeclare class cpm in /var/www/vhosts/photo-planet.net/httpdocs/Gallery/cpmfetch/cpmfetch.php on line 33



<?php
 

defined'_VALID_MOS' ) or die( 'Restricted access' );

$gallery   = $params->get('gallery');
$cpmFetch  = $params->get('cpmFetch');


$options = array('subtitle' => '<font face="Verdana" size="1"><b>%V</b> (%v Votes)</font>','imageheight' => '60',"tablestyle" => "test","imagestyle" => "test1","cellstyle" => "test2","tablestyle" => "test3");
$source "";


include 
$cpmFetch."/cpmfetch.php";
$objCpm = new cpm($gallery); 
$objCpm->cpm_viewTopRatedMediaFrom($source,3,1$options); 
$objCpm->cpm_close();


?>


i use the same parameters on all two modules!

i hope anyone can help me


Title: Re: Using cpgFetch Twice with Joomla
Post by: Nibbler on November 13, 2006, 06:16:29 PM
Change include to include_once
Title: Re: Using cpgFetch Twice with Joomla
Post by: lordiefe on April 21, 2007, 02:11:50 AM
Fatal error: Cannot redeclare class cpm in /home/.jeris/anc/ancsports.net/photogallery/cpmfetch/cpmfetch.php on line 1698
Title: Re: Using cpgFetch Twice with Joomla
Post by: myuption on April 21, 2007, 06:26:21 AM
Can you tell me what you use as joompla module? Haven't been able to make this work. :-[
Title: Re: Using cpgFetch Twice with Joomla
Post by: viajero on April 23, 2007, 06:02:04 PM
Hi Lordiefe,

you should use mod_ExtCoppermine V1.1.0 Link to mod_ExtCoppermine (http://www.der-reisende.de/cms/joomla-addons/joomla-addon-mod_extcoppermine/joomla-addon-mod_extcoppermine-84-129.html)
you can use multiple instances of it, because it uses "include_once"

if you have any problems with it - write me an a-mail or private message

saludos
André alias viajero
Title: Re: Using cpgFetch Twice with Joomla
Post by: myuption on April 24, 2007, 12:51:34 AM
Gracais viajero, unfortunately, when i download the file, any version, while opening, winzip tells me there is an error and nothing is inside, i tried to upload it, but also i got an error in joomla, it says the file is not valid.
Title: Re: Using cpgFetch Twice with Joomla
Post by: viajero on April 24, 2007, 11:22:19 AM
Hi myuption,

try to redownload it, because it works on my side - I just tried it again and could sucsessfully unzipped it with 7zip and totalcommander 6.5

seems to be a problem with your winzip --> use another zip program and/or redownload it

saludos
André alias viajero
Title: Re: Using cpgFetch Twice with Joomla
Post by: myuption on April 25, 2007, 07:02:35 PM
OK, you know, now i tried using firefox, now i got a valid file, the problem seems to be ie7, somehow it destroys the content inside while downloading.

I installed the mod, now i'll test it, thank you. :)
Title: Re: Using cpgFetch Twice with Joomla
Post by: vuud on April 25, 2007, 09:24:29 PM
Quote from: myuption on April 25, 2007, 07:02:35 PM
OK, you know, now i tried using firefox, now i got a valid file, the problem seems to be ie7, somehow it destroys the content inside while downloading.

I installed the mod, now i'll test it, thank you. :)

IE7 is just protecting you.  In order to secure windows, IE will not longer accept anything as a download.

Its for your own good.

(kidding)