Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Login Admin Error After Update  (Read 12485 times)

0 Members and 1 Guest are viewing this topic.

Danii

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Login Admin Error After Update
« on: November 21, 2017, 01:47:36 pm »

My Gallery has been out of action since the PHP Change, im not heavily intelligent with scripts and coding I have been working with the gallery for about 10 years on different sites…

Followed some fantastic posts here about upgrading and getting it to the updated version im now on 6
However, I ran the update.php after the script install which finally got off my home page error, but I cannot login my admin login just says

"Welcome to Coppermine update
• • • ERROR • • •
The following errors were encountered and need to be corrected first:
Could not authenticate you - Try again”

Have absolutley no idea where to go from here, my head is spinning reading the threads


Can anybody help where to go from here please, much appreciate your time thank you so much
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Login Admin Error After Update
« Reply #1 on: November 21, 2017, 02:12:56 pm »

Please have a close look at the credentials you are asked for on update.php. In the first try you have to insert your Coppermine admin account, at the second try the MySQL account (or vice versa).
Logged

Danii

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Login Admin Error After Update
« Reply #2 on: November 21, 2017, 02:19:04 pm »

Ive managed to run the update

my problem now is the whole site is updated but normal login.php protocol

Nothing.. Im entering my account, the correct password that enabled me into update.php but it just says login failed

I have PHP MY ADMIN open under users and I have the correct info there but its not letting me in… I can run the update.php under this info but It won’t generically let me into the site with the account?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Login Admin Error After Update
« Reply #3 on: November 21, 2017, 02:30:38 pm »

Running update.php and accessing phpMyAdmin is both possible without your Coppermine admin account. If you open the users table with phpMyAdmin the passwords you'll see are hashed, so you cannot copy and paste them to the login form. But you can set the password of your admin account:

1. Find your admin account
2. Set "user_password" to: 098f6bcd4621d373cade4e832627b4f6
3. Clear "user_password_salt", if set
4. Login in Coppermine with your admin user name and password: test
Logged

Danii

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Login Admin Error After Update
« Reply #4 on: November 21, 2017, 02:56:55 pm »

Maybe ive messed this up now, I changed my MYSQL password (as you mentioned it could have been that) though I was innocently searching for something to work, I changed it back to the same password I set the gallery with but I now have

Coppermine critical error:
Unable to connect to database !

MySQLi said: :

Cant get anything past that, have put in my Config File the right info the password etc is there someone else I need to be changing
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Login Admin Error After Update
« Reply #5 on: November 21, 2017, 03:03:01 pm »

You need to update the credentials in include/config.inc.php to match your MySQL setup.
Logged

Danii

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Login Admin Error After Update
« Reply #6 on: November 21, 2017, 03:04:25 pm »

everything is updated the correct info, Database Name, Password, LocalHost etc all correct
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Login Admin Error After Update
« Reply #7 on: November 21, 2017, 03:17:14 pm »

If everything is correct you shouldn't get
Code: [Select]
Coppermine critical error:
Unable to connect to database !
anymore, right? If you still get that error, maybe your MySQL database is down or there's another issue with your database.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Login Admin Error After Update
« Reply #8 on: November 21, 2017, 05:20:16 pm »

Can you provide a link to your site?
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.