Title: PHP 8 compatibility
Last modified: September 15, 2021

---

# PHP 8 compatibility

 *  [eclev91](https://wordpress.org/support/users/eclev91/)
 * (@eclev91)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-8-compatibility-35/)
 * The plugin needs updated to remove warnings on PHP 8:
 * `( ! ) Warning: The magic method WP_Hotjar::__wakeup() must have public visibility
   in .../plugins/hotjar/hotjar.php on line 50`

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

 *  [safderimam18](https://wordpress.org/support/users/safderimam18/)
 * (@safderimam18)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-compatibility-35/#post-14987644)
 * private function __wakeup() {}
 * Change to
 * public function __wakeup() {}
 * Its working fine
 *  [Ronaldt](https://wordpress.org/support/users/neejoh/)
 * (@neejoh)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-compatibility-35/#post-14987652)
 * That works, simple fix until this plugin will be updated (if ever).
 *  [Maxime Michaud](https://wordpress.org/support/users/maximemichaud/)
 * (@maximemichaud)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-compatibility-35/#post-15056434)
 * Thank you !
 *  [Corey Salzano](https://wordpress.org/support/users/salzano/)
 * (@salzano)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-8-compatibility-35/#post-15494105)
 * I have also seen this PHP Warning.
 * `[25-Mar-2022 02:16:31 UTC] PHP Warning: The magic method WP_Hotjar::__wakeup()
   must have public visibility in /Users/Ore/Sites/labsite/wp-content/plugins/hotjar/
   hotjar.php on line 50`
    -  This reply was modified 4 years, 2 months ago by [Corey Salzano](https://wordpress.org/support/users/salzano/).
 *  [DensitySK](https://wordpress.org/support/users/densitysk/)
 * (@densitysk)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-8-compatibility-35/#post-15558600)
 * same issue here. It would be great if Hotjar finally fixes this

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

The topic ‘PHP 8 compatibility’ is closed to new replies.

 * ![](https://ps.w.org/hotjar/assets/icon-256x256.png?rev=2617027)
 * [Hotjar](https://wordpress.org/plugins/hotjar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hotjar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hotjar/)
 * [Active Topics](https://wordpress.org/support/plugin/hotjar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hotjar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hotjar/reviews/)

 * 5 replies
 * 6 participants
 * Last reply from: [DensitySK](https://wordpress.org/support/users/densitysk/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/php-8-compatibility-35/#post-15558600)
 * Status: not resolved