cpmFetch won't work in different directory cpmFetch won't work in different directory
 

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

cpmFetch won't work in different directory

Started by Starlight, May 14, 2009, 06:32:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Starlight

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

Joe Carver

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

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

Joe Carver

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.
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

 ??? 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. ;)