• Hi,

    Our website went down, so I have spent a while trying to upgrade and fix the problem. However, every time I install WordPress (that I have downloaded today from .org) WordPress-5.5.1-en_GB.zip I get the following error both in admin and on viewing pages.

    Uncaught Error: Call to undefined function mysql2date()

    I can see that function exists in the function.php file. So I am at a loss as to what the error is.

    I have deactivated all plugins and changed themes. I still get the same error.

    Any help would be appreciated.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • please take backup of you files. then reinstall wordpress. if it’s solve, then copy the backup files into public_html. it will notice for replace, you have to click yes. and then go to wp-config.php file and input data same as the backup wp-config.php file.

    thanks

    Hello Meanderdesign,

    Did you find a solution for your problem of mysql2date function not existing ?

    I got the same but I tried to reinstall the WP without resolution.

    Thanks

    I get the same error but ONLY when I use php7.4 I hope someone can solve this.

    Alright so this is what worked for me:
    First I copied my wp-config file to a separate directory folder as a backup (just in case I messed something up).
    Then I installed a fresh version of wordpress onto my server

    cd /tmp
    curl -LO https://wordpress.org/latest.tar.gz

    Next I extracted the file
    tar xzvf latest.tar.gz

    Then I copied the new wordpress install right into my current website directory. Using the -a flag to maintain permissions
    sudo cp -a /tmp/wordpress/. /var/www/<your-wp-directory>

    Finally I added all the files to my www-data group
    sudo chown -R www-data:www-data /var/www/<your-wp-directory>

    After that it all worked again! I used this tutorial to help me with the new wordpress install. Check it out if my instructions weren’t clear enough.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught Error: Call to undefined function mysql2date()’ is closed to new replies.