• Hello Humans,

    I am using this plugin and there are things more recent versions of PHP moan about. It’s the dynamic creation of properties in classes. Since the GitHub seems to be deleted, I am trying to post my patch here.

    In all-in-one-favicon.php, find:

    class AllInOneFavicon {

    Add after that:

    public $aioFaviconSettings;
    public $aioFaviconFrontendMap;
    public $aioFaviconBackendMap;

    In includes/aio-favicon-backend.php, find:

    class AioFaviconBackend {

    Add after that:

    public $aioFaviconSettings;
    public $aioFaviconDefaultSettings;
    public $donationLoader;
    public $faviconRenderHelper;
    public $faviconFrontendMap;
    public $faviconBackendMap;
    public $faviconMap;

    In includes/favicon-render-helper.php, find:

    class FaviconRenderHelper {

    Add after that:

    public $aioFaviconSettings;
    public $aioFaviconType;

    It is deprecated now, so it will be removed at some point in the future but it still fills the logs if you are on PHP 8.2 or newer.

    Maybe that helps someone, maybe this even makes its way into the code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @alduinwf Thank you. I was about to start working out the fixes myself so you saved me heaps of time:-)

    Found you also need to add:

    In includes/aio-favicon-frontend.php, find:

    class AioFaviconFrontend {

    Add after that:

    public $faviconRenderHelper;
    public $aioFaviconSettings;

    Cheers…Steve

    • This reply was modified 8 months, 1 week ago by Steve Parry.
    Thread Starter alduinwf

    (@alduinwf)

    Hi @vidarparry,

    good catch, thank you for adding this ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.2 compatibility patch’ is closed to new replies.