• I get the following error when running the plugin with PHP 8.2:

    Deprecated: Creation of dynamic property acf_plugin_font_awesome::$settings is deprecated

    Could you add an attribute #[AllowDynamicProperties] above the main class name to silent the deprecation please? (Or even better, make the property not dynamic).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    Hey @pjehan,

    I will try and address this with the next release. If I recall the way I pass those settings into the class was also giving me problems when trying to update the method used to include this field in ACF. But it is going to take some restructuring and a lot of testing to change it. I don’t currently have an ETA for that but I am anticipating having more time to look into it this summer.

    Hi Matt,


    I’m still getting issues with this, has this been resolved and I’m doing something wrong?

    This is my error message: “Deprecated: Creation of dynamic property acf_plugin_font_awesome::$settings is deprecated in?/wp-content/plugins/advanced-custom-fields-font-awesome/acf-font-awesome.php?on line?80

    Plugin Author Matt Keys

    (@mattkeys)

    There have not been any new releases of this plugin to address this. I’m still buried on other work right now.

    This shouldn’t effect plugin functionality it is just annoying, but if it is a larger issue for you, you could modify the class as @pjehan above suggests to silence this warning.

    The more longterm fix is to rewrite this so the property isn’t dynamic but I’m not able to do that right now. But when that update eventually comes it would overwrite any changes you make to the plugin manually right now.

    • This reply was modified 1 year, 8 months ago by Matt Keys.

    Hi,

    WPEngine will be moving its customers from PHP 8.0 to 8.2 before Nov this year. They aren’t offering the option to upgrade to PHP 8.1. When we try to upgrade to 8.2, we get this error as well.

    https://php.watch/versions/8.2/dynamic-properties-deprecated

    Deprecated: Creation of dynamic property acf_plugin_font_awesome::$settings is deprecated in /nas/content/live/bhamdev/wp-content/plugins/advanced-custom-fields-font-awesome/acf-font-awesome.php on line 80

    Plugin Author Matt Keys

    (@mattkeys)

    There is a minor update today, v4.0.6 that hopes to address this issue. Let me know if you are all still running into any php warnings.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deprecated warning with PHP 8.2’ is closed to new replies.