Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Error in getImageTouse: Extension (strtolower) ...  (Read 6754 times)

0 Members and 1 Guest are viewing this topic.

Jost

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Error in getImageTouse: Extension (strtolower) ...
« on: December 24, 2006, 01:09:43 am »

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
« Last Edit: December 26, 2006, 11:03:08 pm by GauGau »
Logged

Jost

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Error in getImageTouse: Extension (strtolower) ...
« Reply #1 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Error in getImageTouse: Extension (strtolower) ...
« Reply #2 on: December 24, 2006, 03:46:46 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
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Error in getImageTouse: Extension (strtolower) ...
« Reply #3 on: December 24, 2006, 01:28:51 pm »

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Error in getImageTouse: Extension (strtolower) ...
« Reply #4 on: December 25, 2006, 04:41:25 pm »



Move to the dev version...  it handles paths better
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Error in getImageTouse: Extension (strtolower) ...
« Reply #5 on: December 25, 2006, 06:05:44 pm »

thanks - the install.php works nice and snuggly.
But the actual pagehttp://globalcomicjam.com/automated/ gives me some troubles.
Quote
Error: config file /automated specified but was not found.

Anything I forgot to configure here?
Logged

Jost

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Error in getImageTouse: Extension (strtolower) ...
« Reply #6 on: December 25, 2006, 06:37:38 pm »

Quote from: vuud
For 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Error in getImageTouse: Extension (strtolower) ...
« Reply #7 on: December 26, 2006, 04:40:12 am »

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

Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Error in getImageTouse: Extension (strtolower) ...
« Reply #8 on: December 26, 2006, 01:49:25 pm »

thanks again - after some fiddling around with the paths I got it eventually solved. :)
you have created something quite awesome there :)
Logged
Pages: [1]   Go Up
 

Page created in 0.053 seconds with 19 queries.