forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: ronronmx on April 02, 2008, 06:40:54 am
-
Hi,
I have Joomla 1.5 bridged with coppermine 1.4.16 with mehdi's bridge. I have cpmfetch installed and the "CpmFetch Plugin for Joomla 1.5" from http://extentions.lhmr.org/ ( i also have "highslide" installed )
I am able to call the photos from my coppermine gallery using the syntax below:
{cpmfetch function=randomMedia;columns=4;rows=2;imagelink=highslide;}
You can see the page here: http://www.stephanroncada.com/index.php?option=com_content&view=article&id=47:slimbox-test&catid=1:latest-news&Itemid=50 (http://www.stephanroncada.com/index.php?option=com_content&view=article&id=47:slimbox-test&catid=1:latest-news&Itemid=50)
The problem is that i am getting an error at the top of my page:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ronronmx'@'localhost' (using password: NO) in /home/ronronmx/public_html/components/libraries/cmslib/db/mysql.php on line 67
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/ronronmx/public_html/components/libraries/cmslib/db/mysql.php on line 67
It goes away if i take the cpmfetch call out. Can anyone help me figure out why i am getting this error? Thx in advance !!!
Stephane
-
The code is calling mysql_real_escape_string() but there is no database connection. Neither the mehdi bridge or the "CpmFetch Plugin for Joomla 1.5" are supported here.
-
Nibbler, thx for your quick response and the info you gave me.
I posted this problem here because I'm thinking it might be related to the cpmfetch mod, and not the cpmfetch plugin i'm using. If i turn that plugin off, how can i make the same call with the cpmfetch mod only to see if i still get the db error?
I understand if you don't want to help me with this problem, but if you do help me out, thx in advance!
Stephane
-
Read the cpmfetch docs if you don't know to use it. You want something like this:
<?php
include_once "cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm('cpg/cpmfetch/cpmfetch_config.php');
$objCpm->cpm_viewRandomMedia(2,4);
$objCpm->cpm_close();
?>
-
Read the cpmfetch docs if you don't know to use it. You want something like this:
<?php
include_once "cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm('cpg/cpmfetch/cpmfetch_config.php');
$objCpm->cpm_viewRandomMedia(2,4);
$objCpm->cpm_close();
?>
Ok thx Nibbler, i will give that a try. Thx for your help :)