• Resolved elearnnow

    (@elearnnow)


    Hello, multisite installation getting error-
    #0 /wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php(548): RankMath\Post::is_woocommerce_page()
    #1 /wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(462): RankMath\Paper\Paper::should_apply_shortcode()
    #2 /wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(327): RankMath\Replace_Variables\Post_Variables->get_post_content(Object(stdClass))
    #3 /wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(59): RankMath\Replace_Variables\Post_Variables->get_excerpt()
    #4 / in /wp-content/plugins/seo-by-rank-math/includes/class-post.php on line 175
    [04-Oct-2020 18:42:56 UTC] PHP Fatal error: Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/seo-by-rank-math/includes/class-post.php:175
    Thank you

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

    (@rankmath)

    Hello @elearnnow

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

    It seems like new tables are not getting created in the Database or some old plugin has left an incorrect entry.

    Please follow these steps to fix the issue:

    1. Take a complete backup of your website
    2. Install this plugin: https://ww.wp.xz.cn/plugins/code-snippets/
    3. Head over to the Snippets menu in the left sidebar and click Add New: https://i.rankmath.com/YucUZS
    4. Give that post any name and copy the below code in the Code field

    add_action(
    	'init',
    	function() {
    		delete_option( 'schema-ActionScheduler_StoreSchema' );
    	},
    );

    5. Select ‘Only run in administration area’ option and click the Save and Activate button: https://i.rankmath.com/D9iOGH
    6. Open WordPress Dashboard in a new window
    7. Then deactivate recently created snippet from here: https://i.rankmath.com/1k8KcX
    8. Then activate the Rank Math plugin again
    9. You can disable the Code Snippets plugin if you are not using it

    Here’s a video screencast:
    https://i.rankmath.com/79gPbv

    Please clear all the cache, including the server after following the above process.

    That should resolve the issue.

Viewing 1 replies (of 1 total)

The topic ‘error-RankMath\Replace_Variables\Post_Variables->get_excerpt(’ is closed to new replies.