Advanced search  

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]

Pages: [1]   Go Down

Author Topic: CPMFetch error (on a wordpress site)  (Read 3551 times)

0 Members and 1 Guest are viewing this topic.

alexandre596

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
CPMFetch error (on a wordpress site)
« 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
Logged

alexandre596

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: CPMFetch error (on a wordpress site)
« Reply #1 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
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 21 queries.