Won't Fetch Won't Fetch
 

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]

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?