Rank Math showing Deprecated warning in PHP 8

#200017
  • Resolved Saumya Majumder
    Rank Math free

    Hi,
    I’ve recently upgraded one of my client sites to PHP v8.0.6 to take advantage of PHP 8 goodies in the code. During the development as WP_DEBUG & WP_DEBUG_DISPLAY are always enabled, I just noticed a Deprecated message that is coming from Rank Math while using it with PHP 8.

    Here is the direction message:

    Deprecated: Required parameter $i follows optional parameter $args in /home/nginx/domains/example.com/public/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php on line 34

    You guys can easily fix this. I’m just informing you guys about it so that you can fix this minor thing in the upcoming updates.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Please note that currently, we do not recommend users to switch to the higher PHP 8 version yet.

    With the new version of WordPress, there will still be security flaws with PHP 8, it’s intended that the future version should be able to work with the version without issues but as for now it will work only in “beta compatible with PHP 8”.

    This means that most core WordPress functionality will work, but unexpected bugs may still occur for some time.

    With all that said, our development team is working every day to improve our plugin, and let’s hope this error will be addressed in future updates.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    With the new version of WordPress, there will still be security flaws with PHP 8, it’s intended that the future version should be able to work with the version without issues but as for now it will work only in “beta compatible with PHP 8”.

    – It’s sad to see that you guys are saying that. But the WP core is fully PHP 8 compatible now without a single issue. And there are no security flaws with PHP 8 in fact it just shows the flows in the code, even more, when you jump to PHP 8.

    Instead of telling your customers this lie about PHP 8, you guys should work on making sure your plugin is fully compatible with PHP 8 instead of printing finger to others. When you get some time look into this GitHub thread.

    PHP 8 comes with too many amazing code features and improvements and more faster speed . You guys should recommend people to shift to it instead of asking them not to use it.

    ———————

    Anyways, thanks for your useless reply. I’ve personally dug inside your code and saw that you guys are using CMB2 as a composer dependency whose current version v2.9.0 didn’t have this bug resolved. So, I’ve contacted the CMB2 team and they have now patched it. Send this link to your development team: https://github.com/CMB2/CMB2/issues/1423 <– Make sure you pass on this link to the dev team.

    These are the things you guys are supposed to do instead of giving that useless reply you gave above, but instead, I ended up doing it.

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us and apologies if our previous reply was not helpful.

    With our Rank Math plugin, we do embed the current version 2.9.0 for CMB2. As you can see this is an existing issue here as well https://wordpress.org/support/topic/php8-deprecated-required-parameter-i-follows-optional-parameter-args/?

    Allow me to forward this to our devs team to have this updated as well in the next version.

    We are looking forward to helping you.
    Thank you.

    Hello,

    I would just like to add that when CMB2 releases the version that includes this fix we’ll be looking into updating the library in our plugins and then the issue should be fixed.

    In the meantime, if you have any other questions don’t hesitate to open a new support ticket.

    We are here to help!

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘Rank Math showing Deprecated warning in PHP 8’ is closed to new replies.