• Resolved Jarko Piironen

    (@ipajen)


    ### Environment
    – WordPress: 6.2-RC4
    – PHP: 8.2.3
    – Server: LiteSpeed
    – Database: mysqli (Server: 10.4.28-MariaDB / Client: mysqlnd 8.2.3)
    – Plugins:
    ??* Database Cleaner: Clean, Optimize & Repair 0.8.3

    Testing your plugin for the first time and got this when activating:

    The plugin generated 241 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    Would be great if you can fix the PHP 8.2 dynamic property warning.

    Creation of dynamic property Meow_DBCLNR_Support::$core is deprecated
    wp-content/plugins/database-cleaner/classes/support.php:25

Viewing 4 replies - 1 through 4 (of 4 total)
  • You should not be using PHP 8.2 right now because WordPress is not fully compatible with it, and also not many of the plugins and themes!

    For me, I use PHP version until the security support expires. For example, PHP 7.4 security support has expired so I believe I should be using PHP 8.0 right now for WordPress, and when PHP 8.0 security support expiration is near, I will move to PHP 8.1.

    That’s how we should be doing! Rest is up to you!!

    • This reply was modified 1 year, 12 months ago by Skrlance.
    Thread Starter Jarko Piironen

    (@ipajen)

    Definitely don’t agree with you. I have used PHP 8.1 in production with WordPress over a year without problem. If a theme or plug-in is not supporting 8.1

    it’s time to look for a better alternative of that plug-in or theme. WordPress 6.2 that will come tomorrow will have most of the deprecated warnings fixed and works great with PHP 8.2. also most of the plugins that I use have updated so the works with PHP 8.2 with some exceptions. but yes there are themes and plugins that haven’t updated for 8.x but those should be replaced and not be used after November 28, 2022. As the 7.4 don’t get any security updates anymore. But if you use extended support by cloudlinux then it’s a another story.

    Newer PHP versions has better features and are quicker and makes the site go faster.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    I am the developer of the plugin @ipajen ?? I am not really here to debate about which version of PHP we should use in production, but it looks like to me that 8.2 is available on WordPress.com so it’s better to make the plugins compatible with it ASAP.

    Indeed, I didn’t know about this deprecation. I am going to release a new version now, with the fixes. Let me know if there are more deprecated issues. Please give a try to 0.8.4 ??

    Thread Starter Jarko Piironen

    (@ipajen)

    @tigroumeow Thanks, the warnings is gone in 0.8.4 and I cant see any others for now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 8.2 deprecated warning dynamic property’ is closed to new replies.