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: Problems after reseting configuration to standard values  (Read 5286 times)

0 Members and 1 Guest are viewing this topic.

captain-lars

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Problems after reseting configuration to standard values
« on: December 02, 2005, 02:53:28 pm »

Hi,

i  used coppermine 1.4.2 and i have pressed "reset to factory setting" by mistake and now i can't even login again. I can see that the user still exists in the database, but erverytime the error "could not login" occurs.

Can i undo the reset to factory setting? In which file the settings are stored? Is it include\config.php (this file contains only the right database settings in my installtion)? What is going wrong with the login?

Thanks in advance,

Lars.
« Last Edit: December 02, 2005, 03:31:56 pm by GauGau »
Logged

captain-lars

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problems after reseting configuration to standard values
« Reply #1 on: December 02, 2005, 03:17:12 pm »

I have some additonal infos.

The user entry in the database has an empty 'user_group_list' field. I tried to set it to "1" or "Adminstrators", but both doesn't help. I can't login. What is the correct syntax of this field?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems after reseting configuration to standard values
« Reply #2 on: December 02, 2005, 03:26:47 pm »

"1" stands for "admin group", so this should be working.
Logged

captain-lars

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problems after reseting configuration to standard values
« Reply #3 on: December 02, 2005, 03:30:12 pm »

I have found the problem. The password in the database was not encrypted! Now it works!
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Problems after reseting configuration to standard values
« Reply #4 on: December 02, 2005, 04:35:06 pm »

Did you have a fresh 1.4 install or did you upgrade from 1.3? Maybe this reset issue has to do with the password encryption when the config gets reset?
Logged

Nibbler

  • Guest
Logged

Audioslave

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Problems after reseting configuration to standard values
« Reply #6 on: February 08, 2006, 02:52:24 pm »

Hi!

I just did the same mistake, and dont know what to do. Can anyone please explain what I have to do to be able to login again? Thanks!
Logged

captain-lars

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problems after reseting configuration to standard values
« Reply #7 on: February 08, 2006, 04:09:57 pm »

Go to your cpg-database and update your admin password with the mysql function password().
Logged

Nibbler

  • Guest
Re: Problems after reseting configuration to standard values
« Reply #8 on: February 08, 2006, 04:19:41 pm »

No, don't do that. Set encrypted passwords to 0 in the config table.
Logged

mizma

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
    • art slog about me poet writer actor teacher
Re: Problems after reseting configuration to standard values
« Reply #9 on: February 08, 2006, 07:24:57 pm »

Okay - where's the config table?
in the files...ah ah ah - so I found the coppermine files, I fopund something called config.php and in there I found a reference to configtable, but I'll be darned if I can figure out to set it to zero.  Is it possible to give us step by step instructions? 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems after reseting configuration to standard values
« Reply #10 on: February 09, 2006, 08:44:30 am »

not in a file, but the database. Use phpMyAdmin or similar, browse coppermine's config table.
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 15 queries.