• AE1360

    (@ae1360)


    Hey guys. I’ve checked every thread and tried everything I think to fix this.

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

    Only thing that works is rolling back to 3.9.1 by copying the old files back over.

    Tried automatic update from dashboard, it works but gives this error when it completes.

    -Renamed plugins folder
    -Renamed theme folder
    -Renamed just the basic theme
    -Replaced functions.php with new copy
    -Replaced everything with new copy
    -Ran upgrade after every attempt (though is says database is updated already every time)

    The only thing I haven’t tried is upgrading to 4.0 or 4.1 first then doing then, but I think it would just compound this. I’ve read a lot of threads and just can’t get any of the solutions to work. I first attempted to upgrade this past weekend and it didn’t work so I rolled back. The whole site was throwing errors. Now I tried again and it is only my dashboard. The site itself works fine.

    Any insight?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    – “Fatal error: Call to undefined function” errors after doing an update indicates an incomplete update.
    – try MANUAL updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old copies of files & folder on your server before uploading the new ones. Read the Manual Update directions first.
    If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong.

    Thread Starter AE1360

    (@ae1360)

    I have already done that.

    I have backed up and gone back to the older version. I have tried it again, and it repeats it. I have done auto updates and manual updates. I have overwritten just functions.php and overwritten the whole thing (minus content and config). I have also deleted the folders and reuploaded all the files.

    I just need a solution, as I said… I have a backup and I have gone back. I am attempting to upgrade again.

    Thread Starter AE1360

    (@ae1360)

    Anyone…? I really could use a solution other than the backup and manual install again (done it more than once). I’ve tried every option that has been listed by every person on here.

    Thread Starter AE1360

    (@ae1360)

    Anyone on this…please?

    Thread Starter AE1360

    (@ae1360)

    Anyone? C’mon is there nobody that can assist on this?

    I recently tried manually updating to 4.1.1, and received the error to a call to the undefined function wp_json_encode, in wp-includes/update.php. There were 3 lines in setting an array variable, calling the wp_json_encode(). Since, it appears to be a new function call/name, I removed the wp_, and it fixed my one problem, which was getting into my Plugins. I’m wondering if this is an issue with older versions of PHP — we are on 5.2.4. I hope this might help. But, I’m sure this is not an appropriate fix — just a work-around. Maybe, WP can eventually fix or shed some light on this issue. It would be nice to upgrade to the latest PHP, MySQL, etc., but it’s not currently an option.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Call to undefined function wp_json_encode() after 4.1.1 update’ is closed to new replies.