forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Starlight on May 14, 2009, 06:32:57 pm

Title: cpmFetch won't work in different directory
Post by: Starlight 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. :)
Title: Re: cpmFetch won't work in different directory
Post by: Joe Carver 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 (http://forum.coppermine-gallery.net/index.php/topic,42440.0.html)
Title: Re: cpmFetch won't work in different directory
Post by: Starlight on May 14, 2009, 07:55:44 pm
Thank u but the error still appears when I specify the path. :(
Title: Re: cpmFetch won't work in different directory
Post by: Joe Carver 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.


Title: Re: cpmFetch won't work in different directory
Post by: Starlight 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. ;)