Title: PHP 8
Last modified: December 9, 2020

---

# PHP 8

 *  [Ralf R.](https://wordpress.org/support/users/ralfreymann/)
 * (@ralfreymann)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-8-2/)
 * When trying PHP 8 with new wordpress 5.6 it shows this error:
 * Warning: The magic method GAINWP_Manager::__wakeup() must have public visibility
   in /homepages/21/d725653560/htdocs/smartphone-angebote-de/wp-content/plugins/
   ga-in/gainwp.php on line 78
 * Will there be any changes to make plugin working with php 8?

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

 *  [Jos Klever](https://wordpress.org/support/users/josklever/)
 * (@josklever)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-8-2/#post-13839493)
 * This is hopefully quite easy to fix by changing “private” to “public” for this
   function. Reference: [https://www.php.net/manual/en/language.oop5.magic.php](https://www.php.net/manual/en/language.oop5.magic.php)
   (
   but I’m not a developer 😉 )
 *  [ThomTra](https://wordpress.org/support/users/thomtra/)
 * (@thomtra)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-2/#post-13921208)
 * I have done the necessary changes in two files to gain php 8 compatibility: gainwp.
   php, gapi.php
 * Here you can copy paste the contents: [https://gist.github.com/ThomasTr/608084bfcbe89e54a04b23e9a25e2fd6](https://gist.github.com/ThomasTr/608084bfcbe89e54a04b23e9a25e2fd6)
 * [@tomdude](https://wordpress.org/support/users/tomdude/): would be nice, if you
   can adopt these changes in next update
 *  [Abigailm](https://wordpress.org/support/users/abigailm/)
 * (@abigailm)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/php-8-2/#post-14354936)
 * [@thomtra](https://wordpress.org/support/users/thomtra/) – thank you so much 
   for posting the patched files to github. I have just begun very slowly rolling
   out PHP8 on some of my sites so that I can have a headstart on catching & debugging
   problems with themes & plugin. So I have confirmed that your changes work well.
 * Unfortunately, it looks like this plugin is no longer being supported, so I will
   probably have to migrate to a different plugin in any case — but at least you
   have provided a workable solution in the interim.

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

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

 * ![](https://ps.w.org/ga-in/assets/icon-256x256.png?rev=1893724)
 * [GAinWP Google Analytics Integration for WordPress](https://wordpress.org/plugins/ga-in/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ga-in/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ga-in/)
 * [Active Topics](https://wordpress.org/support/plugin/ga-in/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ga-in/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ga-in/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Abigailm](https://wordpress.org/support/users/abigailm/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/php-8-2/#post-14354936)
 * Status: not resolved