Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #71118
    Łukasz Sakiewicz
    Participant
    Premium Member

    I’ve just updated php on my servoer to 8.2 version and I’m getting a lot of errors like this:

    Deprecated: Creation of dynamic property ACF::$fields is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/fields.php on line 138

     

    Deprecated: Creation of dynamic property acf_loop::$loops is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/loop.php on line 28

     

    Deprecated: Creation of dynamic property ACF::$loop is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/loop.php on line 269

     

    Deprecated: Creation of dynamic property ACF::$revisions is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/revisions.php on line 397

     

    Deprecated: Creation of dynamic property acf_validation::$errors is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/validation.php on line 28

     

    Deprecated: Creation of dynamic property ACF::$validation is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/validation.php on line 214

     

    Deprecated: Creation of dynamic property acf_form_customizer::$preview_values is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/forms/form-customizer.php on line 28

     

    Deprecated: Creation of dynamic property acf_form_customizer::$preview_fields is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/forms/form-customizer.php on line 29

     

    Deprecated: Creation of dynamic property acf_form_customizer::$preview_errors is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/forms/form-customizer.php on line 30

     

    Deprecated: Creation of dynamic property ACF::$form_front is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/forms/form-front.php on line 598

     

    Deprecated: Creation of dynamic property acf_form_widget::$preview_values is deprecated in /wp-content/themes/ashe-pro-premium/plugins/acf-pro/includes/forms/form-widget.php on line 34

     

    There is many more errors like this. I’ve deactivated other plugins but no result. I have also other websites on this server but different themes and there was no problems after upgrading to PHP 8.2

    Any solutions?

    #71120
    Jon Cressey
    Participant
    Premium Member

    Good luck – it takes them a long time to get back to you!

    Chat GPT4 has some suggestions:

    The errors you’re encountering are related to the use of deprecated code in the ACF (Advanced Custom Fields) plugin. These warnings indicate that certain properties and methods used in the plugin are no longer supported in PHP 8.2, causing compatibility issues. To resolve this problem, you have a few options:

     

    1. Check for plugin updates: Make sure you’re using the latest version of the ACF plugin. The developers may have released an update that addresses these compatibility issues. Check the ACF website or the plugin’s page in the WordPress Plugin Directory for any available updates.

     

    2. Contact the plugin developer: If you’re already using the latest version of the ACF plugin and the issue persists, it’s recommended to reach out to the plugin developer or support team. They are best equipped to address compatibility problems and may provide guidance or release a patch specifically for PHP 8.2 compatibility.

     

    3. Roll back PHP version: If the ACF plugin’s developer has not released an update yet, or you need an immediate solution, you can consider reverting the PHP version on your server to a previous one that is compatible with the plugin. This can be done by contacting your hosting provider and requesting them to change the PHP version for your server.

     

    It’s worth noting that downgrading PHP may only be a temporary solution, as it’s generally recommended to keep your PHP version up to date for security and performance reasons. Therefore, it’s crucial to keep an eye on ACF updates and implement them once they become available.

     

    Lastly, if you have a development or staging environment, it’s a good practice to test updates and changes before applying them to a live site. This allows you to identify and resolve any compatibility issues without affecting your production site.

    #71183
    Łukasz Sakiewicz
    Participant
    Premium Member

    Thank you very much. This plugin is paid and it is a part of the Ashe Pro theme. Therefore I can’t update the plugin itself. It seems either Ashe is using plugin without update or the plugin is not working with PHP8. Anyway, this problem should be solved by WP-Royal.

    #71259
    Nick
    Keymaster
    WP Royal Team

    Please Update to the Latest Theme version, PHP issues must be fixed.

    Kind Regards,
    Nick

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.