• Resolved cookingwithdog

    (@cookingwithdog)


    Hello,

    After updating SEOPress from 5.4.4 to 5.5.1, the following error showed up repeatedly on NewRelic.

    /index.php
    Error:
    Uncaught exception ‘Error’ with message ‘Call to a member function get_price() on bool’ in /wp-content/plugins/woocommerce/includes/wc-product-functions.php:990

    in wc_get_price_including_tax called at /wp-content/plugins/wp-seopress/inc/functions/variables/dynamic-variables.php (206) in include called at /wp-content/plugins/wp-seopress/seopress.php (211)

    in seopress_dyn_variables_init called at /wp-includes/class-wp-hook.php (307)

    When the plugin was rolled back to 5.4.4, the error message stopped.

    WooCommerce is the latest version 6.2.1. Do you have any thoughts about this error message?

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    it seems you have a product price incorrectly set so it doesn’t return the expected type (int or float) but a boolean (true/false) hence the error.

    Do you know from which type of page (eg: singular, archive…) you have this error please?

    Thx

    Thread Starter cookingwithdog

    (@cookingwithdog)

    Thank you for your reply.

    I checked the access log and found it happened when crawlers hit a specific URL.

    Is it possible to send the URL privately?

    Regards,

    Thread Starter cookingwithdog

    (@cookingwithdog)

    I think I can share the URL now.

    The following URL returns 500 error with the latest version 5.5.1.

    ******* (Not sure I should leave this info here so I just deleted it. You should be able to find it in the notification email.)

    Version 5.4.4 doesn’t have the issue.

    This is the only URL that returns the error.

    Thank you.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    OK I think we found the issue now.

    It’s related to JSON oembed: LinkedIn uses this URL to generate the link preview.

    And WooCommerce is not loaded hence the error.

    We have opened an issue on our private Github account to fix this.

    Thread Starter cookingwithdog

    (@cookingwithdog)

    Sounds great! Thank you so much! ??

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    We are currently investigating this issue and are not able to reproduce the bug.

    May I know your meta title defined individually from the SEO metabox and also from the global settings (SEO, Titles & metas, Post types, Products) please?

    Can you confirm your product has a price defined too?

    Thread Starter cookingwithdog

    (@cookingwithdog)

    Hi,

    I was able to reproduce the issue on a freshly installed WordPress site. Here are the steps to reproduce.

    1. Install and activate Woocommerce 6.3.1 on WordPress 5.9.2
    2. Choose United States California for Store Location
    3. Currency: USD, Currency Position: Left, Thousand separator: , Decimal separator: . Number of decimals: 2
    4. Choose “Sample Page” for Settings>Reading Settings>Your homepage displays>A static page>Homepage:
    5. Check the submitted URL is working without any issues.
    6. Install and activate SEOPress 5.5.1
    7. The URL returns 500 error
    8. If you disable Social Networks on SEOPress Dashboard, the URL works without any issues.

    Let me know if you have any questions.

    Thread Starter cookingwithdog

    (@cookingwithdog)

    Here is the URL to check.

    ******* (You should be able to find it in the notification email.)

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    We have fixed the issue.

    The patch will be shipped with our next update (5.6).

    ETA: Beginning of April

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error message after updating the plugin from 5.4.4 to 5.5.1’ is closed to new replies.