Won't Fetch Won't Fetch
 

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

Won't Fetch

Started by laurenlemay, June 03, 2009, 11:44:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

laurenlemay

I used this code:
   <?php
  include "http://www.laurynlemay.com/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("http://www.laurynlemay.com/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

and this is the test index.php http://www.laurenlemay.com/index2.php
The pictures don't show but just some text:
Fatal error: Cannot instantiate non-existent class: cpm in /home/content/t/h/e/theteaching/html/ana1/index2.php on line 295
my coppermine gallery is at http://www.laurynlemay.com
and my index is at LaurenLeMay.com
The cpm files are in a folder named cpmfetch in www.laurynlemay.com
I thought I typed everything correctly below
http://www.laurynlemay.com/cpmfetch/cpmfetch_config.php
Please assist

Joe Carver

Did you have any issues when you installed cpmFetch? Did you get images when you ran the installation?

Have you tried relative paths instead of absolute ones as shown in the cpmfetch documents?
include_once "/cpmfetch/cpmfetch.php";

Read the instructions that are in the /docs/../index.html file, you will find your answers there.

laurenlemay

hi
thank you for the reply
I don't know the difference between a relative path
and an absolute one.
And on the installation, the images came up.
you can see it here
http://www.laurynlemay.com/cpmfetch/install.php?do=install&force=true

laurenlemay

Oh my God,
it works
I don't know what I did
but it works
in the end, I changed the link to:/home/content/t/h/e/theteaching/html/laurynlemay/cpmfetch/cpmfetch_config.php
http://www.laurenlemay.com/index2.php here it is.
thanks.  :)

Joe Carver

Good I'm glad it works, please mark the thread as solved.

But still.......
You really need to read the docs, start by using the great examples for testing.

A relative path is shown to you in the result of your installation
 $objCpm = new cpm("./cpmfetch_config.php");

Whereas you have used a full path
$objCpm = new cpm("http://www.laurynlemay.com/cpmfetch/cpmfetch_config.php");

This is relative
./cpmfetch_config.php

This is absolute
http://www.laurynlemay.com/cpmfetch/cpmfetch_config.php

laurenlemay

I see.
Now, as I do the same thing in the side bar, on left,
it doesn't work.
under Featured Media.

laurenlemay

I see.
Now, as I do the same thing in the side bar, on left,
it doesn't work.
under Featured Media.
http://www.laurenlemay.com/index2.php
what could have happend?