[Solved]: CPMFETCH in Wordpress sidebar [Solved]: CPMFETCH in Wordpress sidebar
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: CPMFETCH in Wordpress sidebar

Started by debragrant, November 01, 2008, 11:10:16 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

debragrant

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


Nibbler

It means you put the wrong path to cpmfetch. If you provide more information we can help you determine the correct path.

debragrant

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?

Nibbler

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();
?>


debragrant

thanks that seems to have worked.

I went to edit to change relative to absolute but couldn't lol