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: problem after changing name of albums directory  (Read 3590 times)

0 Members and 1 Guest are viewing this topic.

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
problem after changing name of albums directory
« 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:
Code: [Select]
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?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: problem after changing name of albums directory
« Reply #1 on: March 04, 2007, 09:30:12 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:
Code: [Select]
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


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

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: problem after changing name of albums directory
« Reply #2 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: problem after changing name of albums directory
« Reply #3 on: March 04, 2007, 10:33:04 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

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
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.