Notice: Trying to get property ‘post_content’ of non-object in /

#670198
  • Resolved dombergen
    Rank Math free

    Notice: Trying to get property ‘post_content’ of non-object in /home/www/www.sunnahcure.co.uk/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510

    Notice: Trying to get property ‘ID’ of non-object in /home/www/www.sunnahcure.co.uk/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510

    Notice: Trying to get property ‘post_content’ of non-object in /home/www/www.sunnahcure.co.uk/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510

    Notice: Trying to get property ‘ID’ of non-object in /home/www/www.sunnahcure.co.uk/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510

    I get this Error, please help

    
    ### rank-math ###
    
    version: 1.0.205
    database_version: 1
    plugin_plan: Free
    0: undefined
    1: undefined
    2: undefined
    active_modules: link-counter, analytics, seo-analysis, sitemap, rich-snippet, woocommerce, content-ai, instant-indexing, local-seo, role-manager, 404-monitor, redirections, image-seo
    refresh_token: Token exists
    permissions: 
    	Search Console: Given
    rank_math_404_logs: 32 KB
    rank_math_redirections: 32 KB
    rank_math_redirections_cache: 32 KB
    rank_math_internal_links: 96 KB
    rank_math_internal_meta: 16 KB
    rank_math_analytics_gsc: 8 MB
    rank_math_analytics_objects: 80 KB
    rank_math_analytics_inspections: 192 KB
    
    ### wp-core ###
    
    version: 6.3.2
    site_language: en_GB
    user_language: en_GB
    timezone: Europe/London
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 31
    dotorg_communication: true
    
    ### wp-dropins (1) ###
    
    advanced-cache.php: true
    
    ### wp-active-theme ###
    
    name: Astra (astra)
    version: 4.4.0 (latest version: 4.4.1)
    author: Brainstorm Force
    author_website: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    parent_theme: none
    theme_features: core-block-patterns, astra_hooks, widgets-block-editor, align-wide, automatic-feed-links, title-tag, post-thumbnails, starter-content, html5, post-formats, custom-logo, customize-selective-refresh-widgets, editor-style, woocommerce, rank-math-breadcrumbs, amp, infinite-scroll, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, widgets, menus
    theme_path: /home/www/www.sunnahcure.co.uk/wp-content/themes/astra
    auto_update: Enabled
    
    ### wp-mu-plugins (1) ###
    
    aios-firewall-loader.php: author: (undefined), version: (undefined)
    
    ### wp-plugins-active (25) ###
    
    All In One WP Security: version: 5.2.5, author: All In One WP Security & Firewall Team, Auto-updates disabled
    Astra Pro: version: 4.4.0, author: Brainstorm Force, Auto-updates disabled
    Category Order and Taxonomy Terms Order: version: 1.7.9, author: Nsp-Code, Auto-updates disabled
    Checkout Field Editor for WooCommerce: version: 1.9.1, author: ThemeHigh (latest version: 2.0.0), Auto-updates disabled
    Code Snippets: version: 3.5.0, author: Code Snippets Pro (latest version: 3.6.1), Auto-updates disabled
    CookieYes | GDPR Cookie Consent: version: 3.1.6, author: CookieYes, Auto-updates disabled
    Elementor: version: 3.17.2, author: Elementor.com (latest version: 3.17.3), Auto-updates disabled
    Elementor Pro: version: 3.17.1, author: Elementor.com, Auto-updates disabled
    Enable Standard PayPal for WooCommerce: version: 1.0.0, author: Vik Cheema, Auto-updates disabled
    Facebook for WooCommerce: version: 3.1.2, author: Facebook (latest version: 3.1.3), Auto-updates disabled
    Google Analytics for WordPress by MonsterInsights: version: 8.20.1, author: MonsterInsights, Auto-updates disabled
    Google Listings and Ads: version: 2.5.10, author: WooCommerce (latest version: 2.5.11), Auto-updates disabled
    GTM4WP: version: 1.18.1, author: Thomas Geiger, Auto-updates disabled
    Header Footer Code Manager: version: 1.1.36, author: 99robots, Auto-updates disabled
    Jetpack: version: 12.7.1, author: Automattic (latest version: 12.8), Auto-updates disabled
    Mailchimp for WooCommerce: version: 3.2, author: Mailchimp, Auto-updates disabled
    Premium Starter Templates: version: 3.4.5, author: Brainstorm Force, Auto-updates disabled
    Product Feed PRO for WooCommerce: version: 13.0.7, author: AdTribes.io (latest version: 13.0.8), Auto-updates disabled
    Rank Math SEO: version: 1.0.205, author: Rank Math, Auto-updates disabled
    SliceWP: version: 1.1.4, author: SliceWP, Auto-updates disabled
    Ultimate Addons for Elementor: version: 1.36.24, author: Brainstorm Force (latest version: 1.36.25), Auto-updates disabled
    WooCommerce: version: 8.2.1, author: Automattic (latest version: 8.2.2), Auto-updates disabled
    WooCommerce Payments: version: 6.7.1, author: Automattic, Auto-updates disabled
    WPC Free Shipping Bar for WooCommerce: version: 1.3.0, author: WPClever, Auto-updates disabled
    WP Rocket: version: 3.15.3, author: WP Media, Auto-updates disabled
    
    ### wp-server ###
    
    server_architecture: Linux 5.10.0-25-amd64 x86_64
    httpd_software: Apache
    php_version: 7.4.33 64bit
    php_sapi: apache2handler
    max_input_variables: 1000
    time_limit: 100
    memory_limit: 256M
    max_input_time: 100
    upload_max_filesize: 150M
    php_post_max_size: 150M
    curl_version: 7.74.0 OpenSSL/1.1.1w
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true
    current: 2023-11-10T08:32:34+00:00
    utc-time: Friday, 10-Nov-23 08:32:34 UTC
    server-time: 2023-11-10T08:32:33+00:00
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.11.4-MariaDB-1:10.11.4+maria~deb11-log
    client_version: mysqlnd 7.4.33
    max_allowed_packet: 134217728
    max_connections: 350
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/www/www.sunnahcure.co.uk/wp-content
    WP_PLUGIN_DIR: /home/www/www.sunnahcure.co.uk/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please confirm if you’re using a template or Elementor template for your shop page?

    If so, then you can try to add the following filter on your website and see if that works for you:

    add_filter( 'rank_math/opengraph/pre_set_content_image', function( $return ) {
    	if(is_shop()){
    		return true; // Set to true if you don't want to set image from Content.
    	}
    });

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes.

    Thank you.

    Thank you very much. Fast Support !

    Hello,

    We’re delighted to hear that this issue has been resolved. We appreciate your kind words and your support.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Notice: Trying to get property ‘post_content’ of non-object in /’ is closed to new replies.