• Resolved Lena Stergatou

    (@lenasterg)


    Hi.
    Thanks for the great theme.
    I updated to PHP 8.1 and now when I customize the blog I get the following PHP error

    PHP Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /wp-content/themes/hestia/inc/customizer/controls/custom-controls/repeater/class-hestia-repeater.php on line 176

    How can that be fixed?


    Thanks in advance,
    Lena

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @lenasterg,

    Thank you for using Hestia, and I’m sorry to hear about the difficulties encountered.

    I’ve tried replicating the issue on an instance with PHP 8.1 and I couldn’t. Please make sure that you are using the latest version of the Hestia theme, 3.0.27, and Orbit Fox plugin, 2.10.22.

    Does the problem persists with these versions?

    Regards,
    Stefan

    Thread Starter Lena Stergatou

    (@lenasterg)

    Hi again.
    I don’t have the Orbit Fox plugin installed.
    This problem and others still exist in version 3.0.29

    Hi @lenasterg,

    Thank you for the confirmation.

    We still can’t replicate this but I reported the problem to our development team, with PHP 8.1+ it’s expected to check if the value is not empty before running json_decode() function which wasn’t needed before and in your case some value in customizer is empty (which isn’t expected) but of course we need to patch this.

    I believe this doesn’t break any functionality so until it’s fixed you can turn off showing warnings in your WordPress (which is recommend for production website) to prevent seeing this warning.

    Thanks!

    Thread Starter Lena Stergatou

    (@lenasterg)

    Hi, thanks for looking into it.
    Please, let the developers know that I use the theme in a multisite WordPress installation (maybe it’s useful for the debugging process).

    Bests, Lena

    Hi @lenasterg,

    Sure, they are already working on it. The next update of theme will fix this issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8.1 PHP Deprecated error’ is closed to new replies.