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: cpmFetch won't work in different directory  (Read 4239 times)

0 Members and 1 Guest are viewing this topic.

Starlight

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 161
    • Starlight's Graphics
cpmFetch won't work in different directory
« on: May 14, 2009, 06:32:57 pm »

Hi there,

today I installed cpmFetch and I got it to work on my mainpage.
http://starlights-graphics.de/index.php

But then, without editing the path it doesn't work on php.files in a different directory. But I don't know how to fix that.
http://starlights-graphics.de/tutorials/angeleternityictut.php

What is wrong?
I appreciate any kind of help. :)
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: cpmFetch won't work in different directory
« Reply #1 on: May 14, 2009, 07:43:45 pm »

I think you might have partially answered yourself.
The problem might be in the path as you have changed from your
home page to a page deeper in your site.

You might want to try an absolute path (specifiy everything) in that page.
Something like this....

hhttp://starlights-graphics.de/gallery/cpmfetch/your_cpm.php (typo intentional)

At some point you could change back to a relative path - watching for errors.

A very nice way to add cpmfetch via javascript is here http://forum.coppermine-gallery.net/index.php/topic,42440.0.html

Starlight

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 161
    • Starlight's Graphics
Re: cpmFetch won't work in different directory
« Reply #2 on: May 14, 2009, 07:55:44 pm »

Thank u but the error still appears when I specify the path. :(
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: cpmFetch won't work in different directory
« Reply #3 on: May 14, 2009, 08:43:52 pm »

The only other suggestion is from a vague recollection of trouble I once had.

Try specifying a detailed path within the cpm_fetch_.php file that you are using.
Code: [Select]
include_once "./cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./cpg/cpmfetch/cpmfetch_config.php');

It mught be trying to find the cpmfetch_config.php, etc within directory that your troublesome page resides in.


Starlight

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 161
    • Starlight's Graphics
Re: cpmFetch won't work in different directory
« Reply #4 on: May 14, 2009, 09:39:56 pm »

 ??? It just doesn't seem to work.
I now decided to not display the random pics on pages within the directory.
But further help is still appreciated. ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.