It seems that when moving to another server, cpmfetch did not handle it that well.
I set up the path in the cpmfetch.php and used your earlier suggestion to change the if (array_key_exists("DOCUMENT_ROOT",$_SERVER )) { to a hardcoded path.
I think the problem is on the server itself - But I dont have shell acess to actually manage that.
Is there a way to get it solved by editing cpmfetch?
The page in question (http://globalcomicjam.com/automated)
Thanks
Jost
interesting enough - I somehow managed to get the links to the images right, just the thumbnail does not appear to get the right path.
Quote from: Jost on December 24, 2006, 01:11:35 AM
interesting enough - I somehow managed to get the links to the images right, just the thumbnail does not appear to get the right path.
Hello!
Yes, if you change servers, the hardcoded path with most likely be different. I would not say that it was a cpmfetch not handling it... You have a hardcoded path.
The image links come from the database, so that would move correctly I think. Which is what you are saying
Try going back to a normal cpmfetch and see if the document_root works on this server.
Lemme know how that works for ya
well I started out with a non modificated page, just to get "ERROR: Path to Coppermine incorrect. (/var/alternc/bureau/automated//include/config.inc.php)"
thats when I actually started to make changes in the cpmfetch.php. But I dont know which paths I have to set.
My problem is that cpmfetch does not seem to get the right root path - maybe an issue on the server side.
So what I am trying to do is putting in the actual path. But I dont know which parts I need to modify for that.
Move to the dev version... it handles paths better
thanks - the install.php (http://globalcomicjam.com/automated/cpmfetch/install.php) works nice and snuggly.
But the actual pagehttp://globalcomicjam.com/automated/ (http://globalcomicjam.com/automated/)gives me some troubles.
QuoteError: config file /automated specified but was not found.
Anything I forgot to configure here?
Quote from: vuudFor the dev version, the call to create cpmfetch is the path to the config file that was created during the install. This is not well documented, since it is a dev version
is what you said in another thread - could you elaborate on that one? :-X
Quote from: Jost on December 25, 2006, 06:37:38 PM
is what you said in another thread - could you elaborate on that one? :-X
Sure,
The $objCpm = new cpm();
line that used to take the path to gallery root, now needs to be the path to the generated cpmfetch config file.
So this person, has cpmfetch installed under the gallery which is cpg140.
This is how they would have used it.
<?php
include "./cpg140/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpg140/cpmfetch/cpmfetch.inc.php");
$objCpm->cpm_viewLastAddedMedia(1,4);
$objCpm->cpm_close();
?>
thanks again - after some fiddling around with the paths I got it eventually solved. :)
you have created something quite awesome there :)