• Resolved suresh b

    (@suneth2)


    Fatal error: Uncaught TypeError: json_decode() expects parameter 1 to be string, bool given in /var/www/html/wp-content/plugins/maxbuttons/classes/installation.php:107 Stack trace: #0 /var/www/html/wp-content/plugins/maxbuttons/classes/installation.php(107): json_decode(false, true) #1 /var/www/html/wp-content/plugins/maxbuttons/classes/installation.php(60): MaxButtons\maxInstall::updateFA() #2 /var/www/html/wp-content/plugins/maxbuttons/classes/installation.php(13): MaxButtons\maxInstall::activate_plugin() #3 /var/www/html/wp-includes/class-wp-hook.php(324): MaxButtons\maxInstall::activation_hook(”) #4 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #5 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/html/wp-admin/plugins.php(194): do_action(‘activate_maxbut…’) #7 {main} thrown in /var/www/html/wp-content/plugins/maxbuttons/classes/installation.php on line 107

    WordPress Version 6.4.2 I’m getting this error any idea how to fix this, Thank You!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter suresh b

    (@suneth2)

    anyway i applied fix and plugin works fine now, checked variable $icondata is a valid string,

    if (is_string($icondata) && ! is_array($icondata) && ! is_null($icondata) )
    {
    $icondata = json_decode($icondata, true);




    • This reply was modified 11 months, 2 weeks ago by suresh b.
    Plugin Author Bas Schuiling

    (@basszje)

    Thanks for letting us know, I’ll take a look at it. I think the problem might be the previous unserialize is failing, hence the boolean issue there.

    This could only occur if for some reason you have data in the icon field ( in database ) which is serialized, but doesn’t unserialize properly, so you might want to check if everything is fine there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting a fetal error on activation’ is closed to new replies.