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
Change include to include_once
Fatal error: Cannot redeclare class cpm in /home/.jeris/anc/ancsports.net/photogallery/cpmfetch/cpmfetch.php on line 1698
Can you tell me what you use as joompla module? Haven't been able to make this work. :-[
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
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.
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
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. :)
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)