Warning: Attempt to read property “taxonomy” on null

#626155
  • Resolved Anonymous
    Rank Math free

    Hello,

    I keep getting exceptions on sentry of:
    Warning: Attempt to read property “taxonomy” on null

    public function can_add_global_entities( $data = [], $is_product_archive = false ) {
    if ( ! $is_product_archive && ( is_category() || is_tag() || is_tax() ) ) {
    $queried_object = get_queried_object();
    return ! Helper::get_settings( 'titles.remove_' . $queried_object->taxonomy . '_snippet_data' ) && ! $this->do_filter( 'snippet/remove_taxonomy_data', false, $queried_object->taxonomy );
    }

    the problem is that $queried_object = get_queried_object(); it returns me null and then complains here $queried_object->taxonomy

    A check should be put in, and then I don’t know why it returns null, what does that entail? when is this method executed? what does this method do?

    I will send you the stack trace, server and wordpress information.

    Stack Trace:
    ErrorException: Warning: Attempt to read property “taxonomy” on null
    #22 /wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(373): RankMathSchemaJsonLD::can_add_global_entities
    #21 /wp-content/plugins/seo-by-rank-math/includes/modules/local-seo/class-local-seo.php(106): RankMathLocal_SeoLocal_Seo::organization_or_person
    #20 /wp-includes/class-wp-hook.php(310): WP_Hook::apply_filters
    #19 /wp-includes/plugin.php(256): apply_filters_ref_array
    #18 /wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): RankMathSchemaJsonLD::do_filter
    #17 /wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(151): RankMathSchemaJsonLD::json_ld
    #16 /wp-includes/class-wp-hook.php(310): WP_Hook::apply_filters
    #15 /wp-includes/class-wp-hook.php(334): WP_Hook::do_action
    #14 /wp-includes/plugin.php(565): do_action_ref_array
    #13 /wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): RankMathFrontendHead::do_action
    #12 /wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(172): RankMathFrontendHead::head
    #11 /wp-includes/class-wp-hook.php(310): WP_Hook::apply_filters
    #10 /wp-includes/class-wp-hook.php(334): WP_Hook::do_action
    #9 /wp-includes/plugin.php(517): do_action
    #8 /wp-includes/general-template.php(3053): wp_head
    #7 /wp-content/themes/flatsome-child/header.php(23): require_once
    #6 /wp-includes/template.php(785): load_template
    #5 /wp-includes/template.php(720): locate_template
    #4 /wp-includes/general-template.php(48): get_header
    #3 /wp-content/themes/flatsome/woocommerce/archive-product.php(21): include
    #2 /wp-includes/template-loader.php(106): require_once
    #1 /wp-blog-header.php(19): require
    #0 /index.php(17): null

    Info WordPress:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.forap.it
    Site address (URL): https://www.forap.it
    WC Version: 8.0.3
    REST API Version: ✔ 8.0.3
    WC Blocks Version: ✔ 10.6.6
    Action Scheduler Version: ✔ 3.6.2
    Log Directory Writable: ✔
    WP Version: 6.3.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: –
    Language: it_IT
    External object cache: ✔
    
    ### Server Environment ###
    
    Server Info: nginx/1.22.1
    PHP Version: 8.0.28
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 10.4.28-MariaDB-1:10.4.28+maria~ubu2004-log
    Max Upload Size: 64 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 8.0.3
    WC Database Prefix: wpif_
    Dimensione totale database: 205.59MB
    Dimensione dati database: 180.11MB
    Dimensione indice database: 25.48MB
    wpif_woocommerce_sessions: Dati: 131.16MB + indice: 6.50MB + motore InnoDB
    wpif_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wpif_woocommerce_order_items: Dati: 0.16MB + indice: 0.06MB + motore InnoDB
    wpif_woocommerce_order_itemmeta: Dati: 2.52MB + indice: 0.91MB + motore InnoDB
    wpif_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wpif_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_actionscheduler_actions: Dati: 1.45MB + indice: 0.66MB + motore InnoDB
    wpif_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_actionscheduler_logs: Dati: 0.52MB + indice: 0.33MB + motore InnoDB
    wpif_chaty_contact_form_leads: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_comments: Dati: 1.52MB + indice: 0.38MB + motore InnoDB
    wpif_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_mailchimp_carts: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_mailchimp_jobs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_options: Dati: 3.44MB + indice: 4.08MB + motore InnoDB
    wpif_postmeta: Dati: 12.52MB + indice: 8.03MB + motore InnoDB
    wpif_posts: Dati: 20.52MB + indice: 0.83MB + motore InnoDB
    wpif_rank_math_404_logs: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_rank_math_analytics_gsc: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wpif_rank_math_analytics_objects: Dati: 0.17MB + indice: 0.08MB + motore InnoDB
    wpif_rank_math_internal_links: Dati: 1.52MB + indice: 0.25MB + motore InnoDB
    wpif_rank_math_internal_meta: Dati: 0.06MB + indice: 0.00MB + motore InnoDB
    wpif_rank_math_redirections: Dati: 0.23MB + indice: 0.02MB + motore InnoDB
    wpif_rank_math_redirections_cache: Dati: 0.13MB + indice: 0.05MB + motore InnoDB
    wpif_social_users: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_termmeta: Dati: 0.13MB + indice: 0.06MB + motore InnoDB
    wpif_terms: Dati: 0.08MB + indice: 0.09MB + motore InnoDB
    wpif_term_relationships: Dati: 0.27MB + indice: 0.16MB + motore InnoDB
    wpif_term_taxonomy: Dati: 0.08MB + indice: 0.09MB + motore InnoDB
    wpif_tm_taskmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_tm_tasks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_usermeta: Dati: 1.52MB + indice: 0.59MB + motore InnoDB
    wpif_users: Dati: 0.08MB + indice: 0.05MB + motore InnoDB
    wpif_wc_admin_notes: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wc_customer_lookup: Dati: 0.05MB + indice: 0.03MB + motore InnoDB
    wpif_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_wc_orders: Dati: 0.02MB + indice: 0.11MB + motore InnoDB
    wpif_wc_orders_meta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_wc_order_addresses: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wpif_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_wc_order_operational_data: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wpif_wc_order_product_lookup: Dati: 0.16MB + indice: 0.19MB + motore InnoDB
    wpif_wc_order_stats: Dati: 0.06MB + indice: 0.05MB + motore InnoDB
    wpif_wc_order_tax_lookup: Dati: 0.05MB + indice: 0.03MB + motore InnoDB
    wpif_wc_product_attributes_lookup: Dati: 0.30MB + indice: 0.30MB + motore InnoDB
    wpif_wc_product_download_directories: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_wc_product_meta_lookup: Dati: 0.39MB + indice: 0.59MB + motore InnoDB
    wpif_wc_rate_limits: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_wpda_csv_uploads: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wpda_logging: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wpda_media: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wpda_menus: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wpda_project: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_wpda_project_page: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_wpda_project_table: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wpda_publisher: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_wpda_table_design: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wpda_table_settings: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wpmailsmtp_debug_events: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_wpmailsmtp_tasks_meta: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wpif_yith_wcwl: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wpif_yith_wcwl_lists: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    
    ### Post Type Counts ###
    
    attachment: 774
    custom_css: 2
    email_newsletter: 2
    mc4wp-form: 1
    nav_menu_item: 94
    page: 526
    popup: 2
    popup_theme: 8
    post: 1
    product: 276
    product_variation: 2721
    pscw-size-chart: 12
    revision: 1
    seedprod: 5
    shop_coupon: 103
    shop_order: 354
    shop_order_refund: 3
    size-chart: 11
    wcpa_pt_forms: 4
    wp_global_styles: 1
    wpcf7_contact_form: 1
    yith-wcbm-badge: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (26) ###
    
    Advanced Cron Manager: by BracketSpace – 2.5.2
    Better Search Replace: by WP Engine – 1.4.2
    Chaty: by Premio – 3.1.4
    Classic Editor: by Contributori WordPress – 1.6.3
    Contact Form 7: by Takayuki Miyoshi – 5.8
    GTM4WP: by Thomas Geiger – 1.18.1
    MC4WP: Mailchimp for WordPress: by ibericode – 4.9.7
    Nextend Social Login: by Nextendweb – 3.1.9
    Nginx Helper: by rtCamp – 2.2.3
    Product Size Chart for WooCommerce: by VillaTheme – 1.1.5
    Redis Object Cache: by Till Krüss – 2.4.4
    Retail Forap: by Filippo Mazzamuto – 1.0.0
    Retainful - Abandoned Cart Recovery Emails and Next Order Coupons: by Retainful – 2.6.23
    Scalapay Easy Installment Gateway: by Scalapay – 1.1.32
    Rank Math SEO: by Rank Math – 1.0.122
    Trustpilot-reviews: by Trustpilot – 2.5.925
    WooCommerce Stripe Gateway: by WooCommerce – 7.5.0
    WooCommerce PayPal Payments: by WooCommerce – 2.2.2
    WooCommerce: by Automattic – 8.0.3
    WP Data Access: by Passionate Programmers B.V. – 5.3.16
    WP Mail SMTP: by WP Mail SMTP – 3.9.0
    WP-Optimize - Clean, Compress, Cache: by David Anderson
    Ruhani Rabin
    Team Updraft – 3.2.18
    
    WordPress Sentry: by Alex Bouma – 6.23.0
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.9
    
    YITH Request a Quote for WooCommerce: by YITH – 2.24.1
    YITH WooCommerce Wishlist: by YITH – 3.24.0
    
    ### Inactive Plugins (1) ###
    
    Variation Swatches for WooCommerce: by Emran Ahmed – 2.0.25
    
    ### Dropin Plugins (1) ###
    
    object-cache.php: Redis Object Cache Drop-In
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: –
    HPOS feature screen enabled: –
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –
    
    ### WC Pages ###
    
    Shop base: #66 - /shop/
    Carrello: #65 - /cart/
    Pagamento: #64 - /checkout/
    Il mio account: #63 - /my-account/
    Termini e condizioni: #1722 - /termini-e-condizioni/
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.16
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.17.6
    Parent Theme Author URL: https://uxthemes.com
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome-child/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome-child/woocommerce/emails/admin-cancelled-order.php
    flatsome-child/woocommerce/emails/admin-failed-order.php
    flatsome-child/woocommerce/emails/admin-new-order.php
    flatsome-child/woocommerce/emails/customer-completed-order.php
    flatsome-child/woocommerce/emails/customer-invoice.php
    flatsome-child/woocommerce/emails/customer-new-account.php
    flatsome-child/woocommerce/emails/customer-note.php
    flatsome-child/woocommerce/emails/customer-on-hold-order.php
    flatsome-child/woocommerce/emails/customer-processing-order.php
    flatsome-child/woocommerce/emails/customer-refunded-order.php
    flatsome-child/woocommerce/emails/customer-reset-password.php
    flatsome-child/woocommerce/emails/email-addresses.php
    flatsome-child/woocommerce/emails/email-footer.php versione 3.7.0 è obsoleta. La versione attuale è 7.4.0
    flatsome-child/woocommerce/emails/email-header.php versione 4.0.0 è obsoleta. La versione attuale è 7.4.0
    flatsome-child/woocommerce/emails/email-order-details.php
    flatsome-child/woocommerce/emails/email-order-items.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/rating.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome-child/woocommerce/single-product/add-to-cart/variable.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome-child/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome-child/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome-child/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome-child/woocommerce/single-product.php
    
    Outdated Templates: ❌
    					
    					
    						Scopri come aggiornare
    
    ### WooCommerce PayPal Payments ###
    
    Onboarded: ✔
    Shop country code: IT
    WooCommerce currency supported: ✔
    Advanced Card Processing available in country: ✔
    Pay Later messaging available in country: ✔
    Webhook status: –
    PayPal Vault enabled: –
    ACDC Vault enabled: –
    Logging enabled: –
    Reference Transactions: –
    Used PayPal Checkout plugin: ✔
    Tracking enabled: ✔
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    product-variation-management
    settings
    async-product-editor-category-field
    
    Daily Cron: ✔ Next scheduled: 2023-09-01 22:11:56 +02:00
    Options: ✔
    Notes: 20
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 1.112
    Oldest: 2023-08-01 13:22:31 +0200
    Newest: 2023-09-01 10:16:22 +0200
    
    Failed: 742
    Oldest: 2022-11-05 13:05:04 +0100
    Newest: 2023-08-23 15:46:11 +0200
    
    Pending: 5
    Oldest: 2023-09-01 13:35:04 +0200
    Newest: 2023-09-07 18:14:41 +0200
    
    ### Status report information ###
    
    Generated at: 2023-09-01 10:55:21 +02:00
    
Viewing 15 replies - 1 through 15 (of 16 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.

    From your error logs, it seems that the issue is coming from one of the schema/schema templates.

    Can you please confirm if the warning messages only occur when you are working with our schema generator?

    Currently, we can’t replicate this error on our end so we may need more information from your end, Please enable WordPress debugging mode by following this guide and see where the warning is showing on the frontend.

    We really look forward to hearing back from you.

    Anonymous
    Rank Math free

    hi thanks for the reply. what would the schema model be? how do i use the pattern generator? where should I go to replicate the problem? I need more information please.

    Anonymous
    Rank Math free

    I saw that in the rank math configuration the schema type is set to article is this correct? should it be on the product?

    Hello,

    It does look like it’s coming somewhere from the schema. Usually, this happens due to incompatibilities but it looks like everything is updated as well as our plugin.

    Would you kindly enable debugging mode on your WordPress website so we can take a closer look? You can also ask your hosting for help and they should be able to set this up for you. You can also set up your wp-config.php file and add these filters there so it will be enabled:
    https://wordpress.org/documentation/article/debugging-in-wordpress/#example-wp-config-php-for-debugging

    However, this would be better if the troubleshooting was done on the Staging site as the errors that appear on the front end may show up on the live site. Would you also create a staging site for us as well so we can check where the error is coming from without affecting the live site?
    https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    Most hosting offers setting up staging sites as well so they may be able to help you set-up one for us.

    Once the staging site is up and running, kindly share the credentials needed to log in to the staging site. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Anonymous
    Rank Math free

    I sent you the data to access the staging site, I entered inside wp_config.php these constants as per your request.

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );

    Hello,

    Thank you for your patience.

    We’ve tried logging in to your site, but either /wp-admin or /wp-login.php is not working.

    Could you please share the login URL as well so we can check?

    Looking forward to helping you.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I tried looking for the issue on your website admin but I wasn’t able to replicate the issue.

    Can you please record a video screencast from your end replicating the error? This will help us locate the issue and resolve it. You may use this handy tool https://loom.com to share your video screencast.

    Also, please share your FTP login here so we can enable the debugging mode and look for any error log files.

    Looking forward to helping you.

    Anonymous
    Rank Math free

    I just wrote to you to better understand the problem… since I don’t know how to duplicate the problem either, I can only tell you that I don’t always receive notifications from sentries regarding this exception. Is there a job that runs every certain amount of time on rank math ?

    Hello,

    This is not coming from any cron job, but rather from the plugin when it tries to add the global Schema entities to a particular page when it’s loaded by any user.

    If the query get_queried_object() is returning null it means that is not a WordPress object and as such the Schema data cannot be generated for that particular page or set of pages.

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

    Anonymous
    Rank Math free

    What are the reasons why get_queried_object() returns null ?
    It would not be correct to put a check:

    if ( ! $is_product_archive && ( is_category() || is_tag() || is_tax() ) ) {
    			$queried_object = get_queried_object();
    			if (!empty($queried_object)) {
    				return ! Helper::get_settings( 'titles.remove_' . $queried_object->taxonomy . '_snippet_data' ) && ! $this->do_filter( 'snippet/remove_taxonomy_data', false, $queried_object->taxonomy );
    			}
    		}

    We need to understand what is right to return true or false if get_queried_object() is null

    Hello,

    We didn’t add a check to this function because every page on a WordPress installation should be an object and as such the function should always return a value.

    If it’s not returning one on your website is because there is some page that is incorrectly created and not an actual object, but that is something that we cannot check exactly which one is causing this.

    In any case, this is just a warning and won’t cause any issues with the website or the Rank Math plugin.

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

    Anonymous
    Rank Math free

    My logs are full of these too:

    
    [04-Oct-2023 09:30:04 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/opengraph/class-slack.php on line 168
    [04-Oct-2023 09:30:04 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 373
    [04-Oct-2023 09:30:04 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 373
    [04-Oct-2023 09:30:04 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 373
    [04-Oct-2023 09:30:04 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 373
    [05-Oct-2023 10:43:52 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/opengraph/class-slack.php on line 168
    [05-Oct-2023 10:43:52 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 373
    [05-Oct-2023 10:43:52 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 373
    [05-Oct-2023 10:43:52 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 373
    [05-Oct-2023 10:43:52 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /web/app/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 373

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 16 total)

The ticket ‘Warning: Attempt to read property “taxonomy” on null’ is closed to new replies.