coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: rx-one on December 14, 2006, 10:06:07 PM

Title: Mhhh pb with paths ...
Post by: rx-one on December 14, 2006, 10:06:07 PM
hello ...

here is my cftest

http://rx-photo.info/cpmfetch/cftest.php

to pass the "80 error" i wrote in test file :

line 5 :

$ChangeThisToYourPartialUrlToCPG = "/rx-photo.info";


it seems to be the only way to pass the 80 error ...

but as u can see, links & img are broken in test file :

http://rx-photo.info/rx-photo.info/displayimage.php?pos=-89
must be
http://rx-photo.info/displayimage.php?pos=-89

my real path is : /home/rx-photo.info/

& ftp path since root of hosting is : /www/-hosted/rx-photo/

here the phpinfo placed in cpmfetch : http://rx-photo.info/cpmfetch/p.php

my coppermine is on the root of the domain.

I try to modify a bit cpmfetch.php but w/o any success ...

where is the pb ?  ty by advance...

Title: Re: Mhhh pb with paths ...
Post by: florennes-as.be on December 19, 2006, 09:39:44 PM
Hello !

  It seems i do have the same kind of problem. I downloaded the last stable version of CpmFetch and installed it as described in the quick install.
  The website is www.florennes-as.be, the coppermine directory is /engine, so www.florennes-as.be/engine (http://www.florennes-as.be/engine) leads to the galleries.
  CpmFetch is installed in the root of the website, then www.florennes-as.be/cpmfetch.

  So, the little change to do in the cftest.php is to change the access to the gallery by changing the directory "/engine".
  See ; http://www.florennes-as.be/cpmfetch/cftest.php (http://www.florennes-as.be/cpmfetch/cftest.php) ... this gives the error 80 ! CPG config file unreachable !

  I have to change the directory parameter to "/f/florennesas/www/engine" in cftest2.php and the the error 80 dissapear.
  See ; http://www.florennes-as.be/cpmfetch/cftest2.php (http://www.florennes-as.be/cpmfetch/cftest2.php) but then, below, the paths to the thumbs are incorrect as it is http://www.florennes-as.be/f/florennesas/www/engine/displayimage.php?pos=-464 I have to remove "/f/florennesas/www" and the link is working.

  So, when the directory in cftest2.php is "/f/florennesas/www/engine", test is ok, no error 80, but link to picture thumbs on cftest2.php is not correct.
  When the directory is logically '/engine", access to the cftest.php leads to an error 80.

  So, one directory parameter leads to two different URLs (reaching CPG config file/images).

  What is wrong ? Many thanks for the clues ...

L@urent
Title: Re: Mhhh pb with paths ...
Post by: vuud on December 22, 2006, 04:01:54 PM
Quote from: florennes-as.be on December 19, 2006, 09:39:44 PM
Hello !

  It seems i do have the same kind of problem. I downloaded the last stable version of CpmFetch and installed it as described in the quick install.
  The website is www.florennes-as.be, the coppermine directory is /engine, so www.florennes-as.be/engine (http://www.florennes-as.be/engine) leads to the galleries.
  CpmFetch is installed in the root of the website, then www.florennes-as.be/cpmfetch.

  So, the little change to do in the cftest.php is to change the access to the gallery by changing the directory "/engine".
  See ; http://www.florennes-as.be/cpmfetch/cftest.php (http://www.florennes-as.be/cpmfetch/cftest.php) ... this gives the error 80 ! CPG config file unreachable !

  I have to change the directory parameter to "/f/florennesas/www/engine" in cftest2.php and the the error 80 dissapear.
  See ; http://www.florennes-as.be/cpmfetch/cftest2.php (http://www.florennes-as.be/cpmfetch/cftest2.php) but then, below, the paths to the thumbs are incorrect as it is http://www.florennes-as.be/f/florennesas/www/engine/displayimage.php?pos=-464 I have to remove "/f/florennesas/www" and the link is working.

  So, when the directory in cftest2.php is "/f/florennesas/www/engine", test is ok, no error 80, but link to picture thumbs on cftest2.php is not correct.
  When the directory is logically '/engine", access to the cftest.php leads to an error 80.

  So, one directory parameter leads to two different URLs (reaching CPG config file/images).

  What is wrong ? Many thanks for the clues ...

L@urent

If your gallery is in the root of your web site, try one of the latest dev releases - it handles that MUCH better.

Mind you though - the new call to cpmfetch takes the path to the config file as the parameter, not the partial url to the gallery.