WordPress.org

Make WordPress Core

Opened 7 months ago

Closed 7 months ago

Last modified 6 months ago

#52770 closed defect (bug) (invalid)

Cannot redeclare retrieve_password() error in 5.7

Reported by: khr2003 Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.7
Component: Login and Registration Keywords:
Focuses: Cc:

Description

The latest update is causing this error when trying to login:

PHP Fatal error:  Cannot redeclare retrieve_password() (previously declared in /opt/bitnami/apps/wordpress/htdocs/wp-login.php:357) in /opt/bitnami/apps/wordpress/htdocs/wp-includes/user.php on line 2671

as suggested by the error retrive_password is duplicated in the two files. I looked at the source and it seems wp-login.php is the old version so it needs to be deleted.

Change History (4)

#1 @khr2003
7 months ago

  • Resolution set to invalid
  • Severity changed from major to normal
  • Status changed from new to closed

#2 @desrosj
6 months ago

  • Milestone Awaiting Review deleted

Hi @khr2003,

Welcome to Trac!

I see that you've closed this ticket out. Can you please just confirm you were able to solve the problem that you were having? Any additional details you are able to share will also help document this problem for others in the future.

#3 follow-up: @SergeyBiryukov
6 months ago

  • Keywords needs-patch removed

Just noting that retrieve_password() was indeed moved from wp-login.php to wp-includes/functions.php in [50129] and further to wp-includes/user.php in [50140] / #34281.

So this seems to be a case of an incomplete upgrade. Downloading the latest version of WordPress and replacing the wp-login.php file with a fresh copy should fix the issue.

#4 in reply to: ↑ 3 @khr2003
6 months ago

Replying to SergeyBiryukov:

Just noting that retrieve_password() was indeed moved from wp-login.php to wp-includes/functions.php in [50129] and further to wp-includes/user.php in [50140] / #34281.

So this seems to be a case of an incomplete upgrade. Downloading the latest version of WordPress and replacing the wp-login.php file with a fresh copy should fix the issue.

@SergeyBiryukov You are right. I was not able to update WordPress through admin area due to file permissions inconsistencies. I tried to do it manually and did not replace all files.

Note: See TracTickets for help on using tickets.