Error in getImageTouse: Extension (strtolower) ... Error in getImageTouse: Extension (strtolower) ...
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Error in getImageTouse: Extension (strtolower) ...

Started by Jost, December 24, 2006, 01:09:43 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Jost

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
Thanks
Jost

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.

vuud

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
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Jost

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.

vuud



Move to the dev version...  it handles paths better
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Jost

thanks - the install.php works nice and snuggly.
But the actual pagehttp://globalcomicjam.com/automated/ gives me some troubles.
QuoteError: config file /automated specified but was not found.
Anything I forgot to configure here?

Jost

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

vuud

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

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Jost

thanks again - after some fiddling around with the paths I got it eventually solved. :)
you have created something quite awesome there :)