• When I sign on instead of going to dashboard I get this message:

    Fatal error: Call to undefined function wp_json_encode() in /home/yaherdme/public_html/ya/wp-admin/includes/misc.php on line 668

    Does anyone know what this means? And what I have to do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter suckaforlife

    (@suckaforlife)

    This is what that line of code looks like in misc.php, line 668:

    echo ‘<script type=”text/javascript”>var _wpColorScheme = ‘ . wp_json_encode( array( ‘icons’ => $icon_colors ) ) . “;</script>\n”;

    I had the same issue.

    To resolve it – I downloaded the latest version of WordPress from here: https://www.ads-software.com/download/.

    I unzipped the downloaded folder and copied the functions.php file from wp-includes. Using FTP I pasted the new functions.php into the wp-includes directory onto my web hosting, when asked if I wanted to overwrite existing file I said yes.

    I now have access to the Dashboard and my blog.

    Muchas gracias fionaredmond me re sirvio!
    me canse de buscarle una solucion al tema !
    =)

    It worked for me!!!
    Thank you very much!!!

    Great, it’s work.

    Thank you!!!

    My hand was forced. Even though our self-hosted WordPress was reported as version 3.8.1 by GoDaddy, parts of it had been upgraded to version 4.1.1 without our consent. How else could wp_json_encode() show up in misc.php? This function was’nt even introduced until version 4.1.

    Please just go ahead and bite the bullet, do the upgade, and mark this as resolved, even though we will likely never find out what caused the problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error in misc.php’ is closed to new replies.