• Resolved Anise76

    (@anise76)


    I have a brand new manual installation of WP, and get the following error:

    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Learn more about debugging in WordPress.

    A previous installation had the same error, so I deleted all files from the old installation, wiped the database, cache, etc, and reinstalled from scratch, only to get the same error.

    I have received no emails, and the debug log contains the following:

    [03-Feb-2020 19:12:45 UTC] PHP Fatal error: Call to undefined function json_encode() in /home/kayscoble/public_html/wp-includes/functions.php on line 3820
    [03-Feb-2020 19:12:53 UTC] PHP Fatal error: Call to undefined function json_encode() in /home/kayscoble/public_html/wp-includes/functions.php on line 3820
    [03-Feb-2020 19:12:57 UTC] PHP Fatal error: Call to undefined function json_decode() in /home/kayscoble/public_html/wp-includes/class-wp-block-parser.php on line 232
    [03-Feb-2020 19:12:57 UTC] PHP Fatal error: Call to undefined function json_decode() in /home/kayscoble/public_html/wp-includes/class-wp-block-parser.php on line 232
    [03-Feb-2020 19:12:57 UTC] PHP Fatal error: Call to undefined function json_decode() in /home/kayscoble/public_html/wp-includes/class-wp-block-parser.php on line 232

    I have no clue how to fix this! Any suggestions, please?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It looks like your manual install missed some files in wp-includes and maybe elsewhere.

    Download a clean copy of WordPress, unzip locally, and via FTP, upload the files and subdirectories.

    Check the permissions, too. 755 on directories, 644 on files.

    Dion

    (@diondesigns)

    The version of PHP on your server appears to be missing the JSON extension. This extension is part of the PHP core, so you should contact your hosting company and have them verify that PHP is correctly installed.

    Thread Starter Anise76

    (@anise76)

    @sterndata – already checked, that, and everything is as it should be. No missing files, and all permissions correct.

    @diondesigns – I’ll try to sweet talk my host – when this problem first appeared, they refused to help.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I think Dion is correct — it’s a PHP install problem.

    Thread Starter Anise76

    (@anise76)

    @diondesigns @sterndata – thanks! My host has enabled the JSON extension, and all appears well. Appreciate your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Brand New Install, Critical Error’ is closed to new replies.