problem after changing name of albums directory problem after changing name of albums directory
 

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

problem after changing name of albums directory

Started by nickfzx, March 04, 2007, 08:03:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickfzx

I tried changing the name of the albums directory in the coppermine configuration.  I then changed the name of the albums directory on the server.

Coppermine now works fine with no problems that I can see.

However cpmfetch is still looking in the old directory for the thumbnails.

this error is coming up:

Error in getImageTouse: Extension (strtolower): .jpg File:../galleries//albums/userpics/10024/thumb_elefun.jpg


galleries is the directory where my coppermine installation is located and "albums" is the original name of the albums folder...as you can see its looking in the old directory.

Why is this happening?  Doesn't cpmfetch updates dynamically based on coppermine's configuration file?

vuud

Quote from: nickfzx on March 04, 2007, 08:03:03 PM
I tried changing the name of the albums directory in the coppermine configuration.  I then changed the name of the albums directory on the server.

Coppermine now works fine with no problems that I can see.

However cpmfetch is still looking in the old directory for the thumbnails.

this error is coming up:

Error in getImageTouse: Extension (strtolower): .jpg File:../galleries//albums/userpics/10024/thumb_elefun.jpg


galleries is the directory where my coppermine installation is located and "albums" is the original name of the albums folder...as you can see its looking in the old directory.

Why is this happening?  Doesn't cpmfetch updates dynamically based on coppermine's configuration file?

Assuming you are on a dev version....

Just re-run the install program.   CPG data changes so infrequently that making a call every time you use CpmFetch would be wasteful.  On a high traffic site this would mean thousands of extra SQL calls.

The install program will tell you that you may not need to re-run, but gives you a link to do so.  When you run it, it grabs the data and saves it locally.

let me know if this does not help


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

nickfzx

I am using RELEASE VERSION 1.6.2

the problem was this line in cpmfetch_dao.php:

$this->OverridePathToAlbums($this->fullpathtocpm . "/albums", $this->partialUrltocpm . "/albums");

fixed this by changing "albums" to the name of the new directory.

Cheers
Nick

vuud

Quote from: nickfzx on March 04, 2007, 10:24:45 PM
I am using RELEASE VERSION 1.6.2

the problem was this line in cpmfetch_dao.php:

$this->OverridePathToAlbums($this->fullpathtocpm . "/albums", $this->partialUrltocpm . "/albums");

fixed this by changing "albums" to the name of the new directory.

Cheers
Nick


Ah, yes that whole mess is avoided in CpmFetch 2.0 (1.9.x dev series).  This will be replacing 1.6.x as soon as I finish the documentation for it.

Later

Vuud

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