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: Won't Fetch  (Read 5976 times)

0 Members and 1 Guest are viewing this topic.

laurenlemay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Won't Fetch
« 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
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
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Won't Fetch
« Reply #1 on: June 04, 2009, 01:12:34 am »

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?
Code: [Select]
include_once "/cpmfetch/cpmfetch.php";
Read the instructions that are in the /docs/../index.html file, you will find your answers there.

laurenlemay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Won't Fetch
« Reply #2 on: June 04, 2009, 01:26:26 am »

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
Logged

laurenlemay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Won't Fetch
« Reply #3 on: June 04, 2009, 02:23:04 am »

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.  :)
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Won't Fetch
« Reply #4 on: June 04, 2009, 02:26:02 am »

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
Code: [Select]
 $objCpm = new cpm("./cpmfetch_config.php");
Whereas you have used a full path
Code: [Select]
$objCpm = new cpm("http://www.laurynlemay.com/cpmfetch/cpmfetch_config.php");
This is relative
Code: [Select]
./cpmfetch_config.php
This is absolute
Code: [Select]
http://www.laurynlemay.com/cpmfetch/cpmfetch_config.php

laurenlemay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Won't Fetch
« Reply #5 on: June 04, 2009, 02:45:39 am »

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

laurenlemay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Won't Fetch
« Reply #6 on: June 04, 2009, 02:46:45 am »

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?
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 20 queries.