• Resolved Ahmad Al Hariri

    (@studyshoot)


    After installing the SEO Plugin Rank math, I got this Error while Updating or Submitting a New Post

    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    … Any help

    [13-Aug-2020 11:23:57 UTC] PHP Notice: Trying to get property ‘description’ of non-object in /home/yemhbgmy/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-base.php on line 106

    #6 /home/yemhbgmy/public_html/wp-i in /home/yemhbgmy/public_html/wp-content/mu-plugins/endurance-page-cache.php on line 801
    AND FOR THE Cash Plugin I am using the W3 Total Cash

    Thanks alot

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

    (@rankmath)

    Hello @studyshoot

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

    Assuming you are using the latest version of all the plugins, themes and WordPress (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    Thread Starter Ahmad Al Hariri

    (@studyshoot)

    I have done this already and I have found the Problem which was with ACF + Custom post type..
    I tried to Enable the Gutenberg Editor on the Custom post type ‘show_in_rest’ => true, and that works fine, returning to the Classic Editor which used by ACF Plugin is getting me back through the same Problem …
    Thanks

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @studyshoot

    How are you creating the Custom Post Types?

    Looking forward to helping you. Thank you.

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello,

    Assuming you are using the latest version of all the themes, plugins, & WordPress and the issue is fixed, we are closing this topic.

    If that is not the case, please feel free to open a new support topic or reply to this one and we will be more than happy to assist.

    Thank you.

    Thread Starter Ahmad Al Hariri

    (@studyshoot)

    I am using the Custom post type using the WordPress register_post_type Functions;
    I got this Error while updating a new Post using the a None Gutenberg Editor
    /plugins/seo-by-rank-math/includes/replace-variables/class-base.php

    also I got the Update Failed – Jason Error – while using the Gutenberg Editor …
    The Problem is, it is happened while just updating old Posts and not create new posts

    Thanks You.

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @studyshoot

    Can you please share the register_post_type code so we can try to reproduce the issue on our setup?

    The error you are getting is in the get_the_terms function of replacing variables. We had already added a condition there to check if the terms are empty.

    Looking forward to helping you. Thank you.

    Thread Starter Ahmad Al Hariri

    (@studyshoot)

    function studyshoot_grants_post_type()
    {
    	$args = array( 
    		'labels'=> array(
    	'name'=>'Grants',
    	'singular_name'=> 'Grant',
    		),
    		'hierarchical'=> false,
    		 'show_in_rest' => true,
     		'public'=> true,
    		'has_archive'=> true,
    		'menu_icon'=>'dashicons-welcome-learn-more',
    		'supports'=> array( 'title', 'author', 'thumbnail', 'editor' ),
    		'slug' => '/grants',
    		'rewrite' => true,
            'capability_type' => 'post',
    	);
    register_post_type('grants', $args);
    }
    add_action('init', 'studyshoot_grants_post_type');
    
    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @studyshoot

    Even after adding the code and creating a new Post in the Grants post type, we couldn’t reproduce the issue.

    Can you please also run the conflict check?
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Please record a video screencast and share it with us.

    Looking forward to helping you. Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘critical error on your website Caused by Rank math’ is closed to new replies.