• Resolved richgiangnx

    (@richgiangnx)


    Hello,
    I am using OpenLitespeed web server. Today I tried to upgrade my server to version php8.1 and php8.2 and I received the following error message.

    Deprecated: Calling static trait method RankMath\Helpers\Conditional::is_heartbeat is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/class-modules.php on line 31
    
    Deprecated: Calling static trait method RankMath\Helpers\Conditional::is_rest is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-video.php on line 32
    
    Deprecated: Calling static trait method RankMath\Helpers\Conditional::is_woocommerce_active is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/rank-math-pro.php on line 358
    
    Deprecated: Calling static trait method RankMath\Helpers\WordPress::get_request_action is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/redirections/class-schedule.php on line 353
    
    Deprecated: Calling static trait method RankMath\Helpers\Param::get is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/404-monitor/class-monitor-pro.php on line 113
    
    Deprecated: Calling static trait method RankMath\Helpers\Param::get is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/analytics/class-keywords.php on line 61
    
    Deprecated: Calling static trait method RankMath\Helpers\Arr::from_string is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/class-common.php on line 130
    
    Deprecated: Calling static trait method RankMath\Helpers\Param::get is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/analytics/class-analytics.php on line 411
    
    Deprecated: Calling static trait method RankMath\Helpers\HTML::extract_attributes is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-frontend.php on line 389
    
    Deprecated: Calling static trait method RankMath\Helpers\Str::starts_with is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-frontend.php on line 180
    
    Deprecated: Calling static trait method RankMath\Helpers\Str::starts_with is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-frontend.php on line 461
    
    Deprecated: Calling static trait method RankMath\Helpers\Arr::from_string is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/class-common.php on line 108
    
    Deprecated: Calling static trait method RankMath\Helpers\Param::get is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/plugin-update/class-plugin-update.php on line 241
    
    Deprecated: Calling static trait method RankMath\Helpers\Url::get_current_url is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math-pro/includes/class-common.php on line 63
    
    Deprecated: Calling static trait method RankMath\Helpers\Url::get_scheme is deprecated, it should only be called on a class using the trait in /usr/local/lsws/mydomain.com/html/wp-content/plugins/seo-by-rank-math/includes/helpers/class-url.php on line 116

    Then I had to downgrade my php to 8.0 to get everything working again. Please release a patch for your plugin. I’m very grateful for that. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Creative Slice

    (@creativeslice)

    We’re running into this same issue. Rank Math 1.0.205 and Rank Math Pro 3.0.48 are currently NOT COMPATIBLE with PHP 8.1+

    🙁

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @richgiangnx,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.

    We released a quick Beta update you can try to see if that helps.

    Please enable the Beta update by following this:https://rankmath.com/kb/version-control/#beta-updates
    Screenshot for reference: https://i.rankmath.com/i/zJFYaH

    If you are unable to see an update, please clear Rank Math’s transients from: WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients
    Screenshot for reference: https://i.rankmath.com/Pbu5J6

    Please clear the caches, server, and WordPress after updating.

    You can disable the Beta updates once you update to the latest version and if the issue is fixed.

    Please note that some options are only available when you enable the Advanced Mode in Rank Math. If it’s not showing, you must have chosen to use Easy Mode.

    You can follow the steps in this link to switch to Advanced Mode:

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter richgiangnx

    (@richgiangnx)

    I have followed your instructions. However, the beta version can only fix errors for the regular Rank Math plugin. Rank Math Pro plugin still crashes. And I had to deactivate my Rank Math Pro plugin for everything to return to normal. However, that means I can no longer use the functions of the Pro version.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @richgiangnx,

    Once you update the Free plugin to the beta version, you should also see a beta update for the PRO version. Please enable the PRO version, and if there is no update available, navigate to WP Dashboard > Rank Math SEO > Dashboard > Help and disconnect & reconnect your Rank Math account. Then navigate to WP Dashboard > Rank Math SEO > Status & Tools > Database Tools and Clear Rank Math Transients.

    You should be able to update the PRO plugin to the beta version and fix the warnings after that.

    Let us know how that goes. Looking forward to helping you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Compatibility issue with php8.1 and php8.2 versions’ is closed to new replies.