• Resolved elkswebteam

    (@elkswebteam)


    I removed some plugins that were said to be inactive and now I’m unable to reach my site.
    Any suggestions.

    HEre’s the full error message.
    Fatal error: Call to undefined function WP101\wp_json_encode() in /home4/my9to5/public_html/wp-content/plugins/wp101/includes/class-api.php on line 517

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter elkswebteam

    (@elkswebteam)

    I was able to fix this by going into the file manager and deleting the WP101.php file located at ..wp-content/plugins/wp101/

    Hi @elkswebteam,

    The function referenced is wp_json_encode(), which is WordPress core’s wrapper around PHP’s native json_encode() function. wp_json_encode() was introduced in WordPress 4.1.0, back in late-2014(!).

    Looking at the <meta name="generator" /> tag on your site’s source, it appears that your site is currently running version 4.0.12 of WordPress, which pre-dates the introduction of wp_json_encode().

    I’d recommend updating to the most recent release of WordPress as soon as you’re able, as there have been a number of major security fixes released since your last update. Once upgraded, I would suggest re-installing the WP101 Plugin (assuming you’re a subscriber), as wp101.php is responsible for bootstrapping the plugin.

    Be forewarned, however, that WordPress core introduced its new block-based editor (a.k.a. “Gutenberg”) in version 5.0, so the content editing experience has changed. Should you need more time to get authors up-to-speed, the WordPress team maintains a Classic Editor plugin to restore the older functionality.

    In the meantime, I’ll make sure that the “Requires at least” is updated within the WP101 Plugin to reflect that version 5.x of the plugin indeed requires at least WordPress 4.1.

    Thread Starter elkswebteam

    (@elkswebteam)

    Thank you for your reply Steve. I’m part of a brand new team working on the site and updating the WordPress version is high on our list. Right after getting a good Full Backup ??
    Best, Jay

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Call to undefined function WP101\wp_json_encode’ is closed to new replies.