forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: laurenlemay on June 03, 2009, 11:44:17 pm
-
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 (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
-
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.
-
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 (http://www.laurynlemay.com/cpmfetch/install.php?do=install&force=true)
-
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 (http://www.laurenlemay.com/index2.php) here it is.
thanks. :)
-
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
-
I see.
Now, as I do the same thing in the side bar, on left,
it doesn't work.
under Featured Media.
-
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?