Title: PHP 8.1 PHP Deprecated error
Last modified: February 16, 2023

---

# PHP 8.1 PHP Deprecated error

 *  Resolved [lenasterg](https://wordpress.org/support/users/lenasterg/)
 * (@lenasterg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-8-1-php-deprecated-error/)
 * Hi. 
   Thanks for the great theme. I updated to PHP 8.1 and now when I customize
   the blog I get the following PHP errorPHP 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 176How can that be fixed?
 * 
   Thanks in advance, Lena

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Stefan Cotitosu](https://wordpress.org/support/users/stefancotitosu/)
 * (@stefancotitosu)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-8-1-php-deprecated-error/#post-16491404)
 * Hi [@lenasterg](https://wordpress.org/support/users/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 [lenasterg](https://wordpress.org/support/users/lenasterg/)
 * (@lenasterg)
 * [3 years ago](https://wordpress.org/support/topic/php-8-1-php-deprecated-error/#post-16569132)
 * Hi again. 
   I don’t have the Orbit Fox plugin installed. This problem and others
   still exist in version 3.0.29
 *  [Vytis](https://wordpress.org/support/users/bvytis/)
 * (@bvytis)
 * [3 years ago](https://wordpress.org/support/topic/php-8-1-php-deprecated-error/#post-16582448)
 * Hi [@lenasterg](https://wordpress.org/support/users/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 [lenasterg](https://wordpress.org/support/users/lenasterg/)
 * (@lenasterg)
 * [3 years ago](https://wordpress.org/support/topic/php-8-1-php-deprecated-error/#post-16584392)
 * 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
 *  [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * (@poonam9)
 * [3 years ago](https://wordpress.org/support/topic/php-8-1-php-deprecated-error/#post-16587880)
 * Hi [@lenasterg](https://wordpress.org/support/users/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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hestia/3.3.3/screenshot.png)
 * Hestia
 * [Support Threads](https://wordpress.org/support/theme/hestia/)
 * [Active Topics](https://wordpress.org/support/theme/hestia/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hestia/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hestia/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/php-8-1-php-deprecated-error/#post-16587880)
 * Status: resolved