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: [Solved]: CPMFETCH in Wordpress sidebar  (Read 6143 times)

0 Members and 1 Guest are viewing this topic.

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
[Solved]: CPMFETCH in Wordpress sidebar
« 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

« Last Edit: November 02, 2008, 12:01:15 am by Nibbler »
Logged

Nibbler

  • Guest
Re: CPMFETCH in Wordpress sidebar
« Reply #1 on: November 01, 2008, 11:32:58 pm »

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

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Re: CPMFETCH in Wordpress sidebar
« Reply #2 on: November 01, 2008, 11:41:17 pm »

but images are showing from my gallery when I have them errors in the back end  ???

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

Nibbler

  • Guest
Re: CPMFETCH in Wordpress sidebar
« Reply #3 on: November 01, 2008, 11:46:49 pm »

Try using the absolute path.

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

Logged

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Re: CPMFETCH in Wordpress sidebar
« Reply #4 on: November 01, 2008, 11:57:57 pm »

thanks that seems to have worked.

I went to edit to change relative to absolute but couldn't lol
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.