CPM fetch error after installing CPM fetch error after installing
 

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

CPM fetch error after installing

Started by Candra, December 28, 2014, 08:28:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Candra

Hey everyone,

maybe the mistake cpm fetch shows me was already here but I can´t find it in that way, so maybe one of you can help me out.

I installed it to my server outside of cpg15x or wordpress file because otherwise it hasn´t run the install. Everything worked fine. I was able to run the install.php and got to the site with the code.
http://www.sitename.bplaced.net/gallery/cpmfetch/cpmfetch_config.php

When I tried to put the code to my header with this
<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

This error occured:
Warning: include() [function.include]: Failed opening './gallery/cpmfetch/cpmfetch.php' for inclusion (include_path='.') in /users/sitename/www/wordpress/wp-content/themes/Premade 7/header.php

Does someone have an idea what am I doing wrong? Thanks for your help!