forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: alexandre596 on June 02, 2011, 05:09:49 pm

Title: CPMFetch error (on a wordpress site)
Post by: alexandre596 on June 02, 2011, 05:09:49 pm
i used cpmfetch, changed all the lines that need, and put the code on my site..
i got this error

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

Code: [Select]
  <?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
Title: Re: CPMFetch error (on a wordpress site)
Post by: alexandre596 on June 03, 2011, 09:21:47 pm
solved (:

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