Advanced search  

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

Pages: [1]   Go Down

Author Topic: Using cpgFetch Twice with Joomla  (Read 6612 times)

0 Members and 1 Guest are viewing this topic.

theflori

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Using cpgFetch Twice with Joomla
« 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:


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



Code: [Select]
<?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

 
Logged

Nibbler

  • Guest
Re: Using cpgFetch Twice with Joomla
« Reply #1 on: November 13, 2006, 06:16:29 pm »

Change include to include_once
Logged

lordiefe

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Using cpgFetch Twice with Joomla
« Reply #2 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
Logged

myuption

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Using cpgFetch Twice with Joomla
« Reply #3 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. :-[
Logged

viajero

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • Webmaster and Traveller
    • Der Reisende unterwegs
Re: Using cpgFetch Twice with Joomla
« Reply #4 on: April 23, 2007, 06:02:04 pm »

Hi Lordiefe,

you should use mod_ExtCoppermine V1.1.0 Link to mod_ExtCoppermine
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
Logged

myuption

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Using cpgFetch Twice with Joomla
« Reply #5 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.
Logged

viajero

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • Webmaster and Traveller
    • Der Reisende unterwegs
Re: Using cpgFetch Twice with Joomla
« Reply #6 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
Logged

myuption

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Using cpgFetch Twice with Joomla
« Reply #7 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. :)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Using cpgFetch Twice with Joomla
« Reply #8 on: April 25, 2007, 09:24:29 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)
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.