oik-plugins
WordPress plugins and themes

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 line

This post offers three solutions.

Not recommended
Fix the code yourself. Not recommended – but it was the first solution given in the forum
Proposed solution
Install the latest version of oik, using the oik options > Plugins admin pages.

See Upgrade to a new version of oik from oik-plugins

Longer term
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

Information
Recent plugin updates
oik v2.5 oik v2.5, tested with WordPress 4.2 and WordPress MultiSite 4.2, is now available on wordpress.org and oik-plugins ...
oik-clone v1.0-beta.0422 Improved support for larger media files. Improved mapping of informal relationships in post content.  ...
oik-clone v0.9 oik-clone v0.9 has improved mapping of informal relationships in post content. ...
oik-clone v0.8 oik-clone v0.8 adds support for mapping of informal relationships in post content.  ...
oik-bob-bing-wide v1.30 oik-bob-bing-wide v1.30 introduces pagination to the [bw_csv] shortcode, with the posts_per_page= parameter. Also, using the uo= parameter you can choose how the CSV data is displayed; as a table, ordered list, unordered list or definition list. ...