CPMFetch error (on a wordpress site) CPMFetch error (on a wordpress site)
 

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

Main Menu

CPMFetch error (on a wordpress site)

Started by alexandre596, June 02, 2011, 05:09:49 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

alexandre596

i used cpmfetch, changed all the lines that need, and put the code on my site..
i got this error

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/violetbr/public_html/home/wp-content/themes/likewhoaa/header.php on line 102

Warning: include(http://78violet.org/photos/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/violetbr/public_html/home/wp-content/themes/likewhoaa/header.php on line 102

Warning: include() [function.include]: Failed opening 'http://78violet.org/photos/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/violetbr/public_html/home/wp-content/themes/likewhoaa/header.php on line 102

Fatal error: Class 'cpm' not found in /home/violetbr/public_html/home/wp-content/themes/likewhoaa/header.php on line 103


my cpmfetch code

  <?php
  
include "http://78violet.org/photos/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("http://78violet.org/photos/cpmfetch/cpmfetch_config.php");?>

  $options = array(
  "imagesize" => "int",
  "imageheight" => "25",
  "imagewidth" => "25"
  );
  $objCpm->cpm_viewLastAddedMedia(2,4, $options);
  $objCpm->cpm_close();
  ?>


home directory
http://78violet.org/home/

coppermine directory
http://78violet.org/photos/

cpmfetch directory
http://78violet.org/photos/cpmfetch/

thanks

alexandre596

solved (:

i need to create a file just for the code, and them use iframe
it's working now! ;D