[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
  • Shortcodes
  • APIs
    • ALL action and filter hooks
  • Support
  • Blog
  • #
  • &
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • I
  • J
  • L
  • M
  • N
  • O
  • P
  • Q
  • R
  • S
  • T
  • U
  • V
  • W
  • [

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

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Google+ (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to email this to a friend (Opens in new window)

Published: December 4, 2012 | Last updated: December 4, 2012

Filed Under: 1.17, 1.7, News, oik, oik-nivo-slider Tagged With: Fix, PHP 5.3.2 or less

Information

Component:

Recent plugin updates

oik-nivo-slider v1.15.1 oik-nivo-slider fixes the "Unable to locate routine to expand shortcode" message, that appeared in some versions of v1.15.0. ...
oik-bwtrace v2.1.1 Upgrade to oik-bwtrace v2.1.1 for PHP 7.2 support. ...
oik v3.2.3 Upgrade if you're using PHP 7.2 ...
oik-libs v0.0.7 oik-libs v0.0.7 is reconciled with oik v3.2.3 and tested with WordPress 4.9.1 and PHP 7.0. ...
oik-css v0.9.0 Upgrade to oik-css v0.9.0 for improvements to the [bw_geshi] shortcode. Now depends on oik v3.2.3.  ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Documentation

  • Shortcodes
  • Examples
  • Tutorials
  • APIs

Support

  • Contact
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: oikplug@oik-plugins.com

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2018. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 4.9. PHP: 7.0.29. Memory limit: 512M

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.