• Resolved wanderingexplorer

    (@wanderingexplorer)


    Hello @rankmath

    I am running PHP7.3 and the latest version of the RankMath plugin 1.0.39.1

    I am getting over 40 PHP errors caused by line 188 of class-woocommerce.php (wp-content/plugins/seo-by-rank-math/includes/modules/woocommerce/class-woocommerce.php:188). It’s because you have an undefined variable “$original_link”.

    Here is the exact line to look at:

    $is_language_switcher = ( class_exists( 'Sitepress' ) && strpos( $original_link, 'lang=' ) );

    Please could you get one of the dev team to take a look at this ASAP.

    Thanks in advance for your help.

Viewing 1 replies (of 1 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @wanderingexplorer

    Thank you for contacting the support and sorry for the issue you are facing.

    Can you please change the line to this and see if that helps?
    $is_language_switcher = ( class_exists( 'Sitepress' ) && strpos( $link, 'lang=' ) );

    Also, we have notified the developers and the same shall be fixed in one of the upcoming updates.

    We seek your patience and understanding in this matter.

    In the meantime, if there’s anything else we can help you with, please let us know.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Error in Woocommerce Module: Undefined variable: original_link’ is closed to new replies.