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
(but I’m not a developer 😉 )
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
@tomdude: would be nice, if you can adopt these changes in next update
@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.