• Hi, I got this error while upgrading to the latest WordPress version Oscar:

    Fatal error: Cannot redeclare wp_convert_bytes_to_hr() (previously declared in /home/guusterb/domains/guusterbeek.nl/public_html/wp-includes/deprecated.php:3364) in /home/guusterb/domains/guusterbeek.nl/public_html/wp-includes/media.php on line 1146

    My whole site is down and just shows this error. This is my website https://www.guusterbeek.com

    Any got any solutions? Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try:
    – switching to the default theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    – running the upgrade manually via wp-admin/upgrade.php

    Thread Starter guusterbeek

    (@guusterbeek)

    Thanks Esmi. I fixed it.

    @guusterbeek did you fix it by using the steps he mentioned? I’m having a very similar issue that I can’t seem to resolve.

    Thread Starter guusterbeek

    (@guusterbeek)

    Hi d33K,

    What I did was manually replacing WordPress on my webhost. Replace all files except your wp-content and the wp-config.php. But you don’t need to worry about that because the wp-config file in the wordpress download is called wp-config-sample.php so it won’t overwrite your original file.

    When done, visit the website and run the upgrade again. Worked perfectly for me. I had to refresh the permalinks thouhg, because my portolio urls weren’t working. If you have the same problem too, got to settings/permalinks and refresh. That’s it.

    @guusterbeek thanks man, that helped.

    I reuploaded the entire wordpress install, less the wp-content directory and the site worked fine. The first time I logged into the admin section it said the database needed upgrading, but it only took about 1 second and was complete. All sorted out again.

    EDIT: I posted too soon. Seems clicking a post from the main page will give me a 404 not found error. I did the perma-link settings save as you suggested, but it didn’t resolve the issue. It said “You should update your web.config now.” when I did this.

    Thankyou All,
    I was having the similar issue after updating my wordpress site. After replacing all the files and folder except wp-content and wp-config.php in root with a fresh wordpress files and folders, It resolved the issue and the site is working fine. Thanks a lot for all your support.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error appeared while upgrading to Oscar’ is closed to new replies.