forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: debragrant on November 01, 2008, 11:10:16 pm
-
Hi,
I am able to get images to show up on my sidebar by using cpmfetch but I am coming across a strange problem & I'm not sure if it's an issue for here or wordpress.
If I get an error in the code I don't get any images in my side bar but when I have the code correct or at least enough to allow images to show, I get the following error and have to deactivate the php widget to remove it
-
It means you put the wrong path to cpmfetch. If you provide more information we can help you determine the correct path.
-
but images are showing from my gallery when I have them errors in the back end ???
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,2);
$objCpm->cpm_close();
?>
do I need to use the reative path then?
-
Try using the absolute path.
<?php
include "/home/divahos/public_html/leannejones/gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/home/divahos/public_html/leannejones/gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,2);
$objCpm->cpm_close();
?>
-
thanks that seems to have worked.
I went to edit to change relative to absolute but couldn't lol