Fix for Warning: json_encode() expects exactly 1 parameter, 2 given
If you have installed oik-nivo-slider version 1.7 and oik version 1.17 AND are running your website on a version of PHP lower than 5.3.3, then you could get the following Warning message from the [nivo] shortcode.
Warning: json_encode() expects exactly 1 parameter, 2 given in /wp-content/plugins/oik/bobbfunc.inc on lineThis post offers three solutions.
Fix the code yourself. Not recommended – but it was the first solution given in the forum
Install the latest version of oik, using the oik options > Plugins admin pages. See Upgrade to a new version of oik from oik-plugins
Upgrade your version of PHP to 5.3.3 or higher. This is the best long term solution as this will allow the oik base plugin to use the functionality implemented in PHP 5.3.3 for the json_encode() API
2 Responses to Fix for Warning: json_encode() expects exactly 1 parameter, 2 given
Leave a Reply
You must be logged in to post a comment.