• Resolved e dev

    (@efishinsea)


    Hi. I got this error today after updating to WordPress v5.7:

    Fatal error: Cannot redeclare retrieve_password() 
    (previously declared in /html/wp-includes/user.php:2671) in 
    /html/wp-content/plugins/all-in-one-wp-security-and-firewall/other-includes/wp-security-rename-login-feature.php 
    on line 359
    

    Specifically, this breaks the page that loads the renamed login page (Brute Force > Rename Login Page Settings)

    I renamed your function in wp-security-rename-login-feature.php to something else, but this should be updated.

    Thanks.

    • This topic was modified 5 years, 3 months ago by e dev.
Viewing 4 replies - 16 through 19 (of 19 total)
  • But I don’t use that plugin.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Then that means you are in the wrong support forum. Please use the correct support forum.

    https://ww.wp.xz.cn/support/forums/

    Thank you

    tenstain

    (@tenstain)

    //Translate in google, here is solution too
    Решил проблему немного проще, чем оффлайн обновление.
    Суть ошибки в том что функция “retrieve_password()” декларируется 2 раза.
    Вобщем – необходимо залогиниться в хостинг, где лежит ваш сайт, там зайти в хост и найти вход в панель управления; в панели управления будет менеджер файлов. По информации с ошибки находим и открываем “/html/wp-includes/user.php”, там ищем “function retrieve_password() {….” и меняем название функции на retrieve_password_1() (к примеру) и сохраняем. Готово, вылечено. Потом можно зайти, обновить платформу/плагин.
    (Есть вариант менять /html/wp-content/plugins/all-in-one-wp-security-and-firewall/other-includes/wp-security-rename-login-feature.php также, но вроде всё норм для 1 варианта).

    i got the same error, renaming the function saved me.

Viewing 4 replies - 16 through 19 (of 19 total)

The topic ‘Cannot redeclare retrieve_password’ is closed to new replies.