WordPress.org

Support

Support » Plugins and Hacks » [Resolved] json_encode issue on PHP

[Resolved] json_encode issue on PHP

  • Hi,

    The recent new version broke on PHP installs before 5.3…

    <br />
    <b>Warning</b>:  json_encode() expects exactly 1 parameter, 2 given in <b>.../wp-content/plugins/json-api/singletons/response.php</b> on line <b>40</b><br />

    (Which when it’s supposed to be returning a JSON response rather than HTML causes some interesting issues 🙂 )

    I was able to fix it short term by editing the plugin and removing the second parameter, but I expect others to come across this, and also don’t want to have to make the fix each time the plugin is updated.

    Cheers!

    http://wordpress.org/extend/plugins/json-api/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] json_encode issue on PHP’ is closed to new replies.