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: CPMFetch error (on a wordpress site)  (Read 4695 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.017 seconds with 20 queries.