• Resolved maxence1502

    (@maxence1502)


    Hello,
    I’ve been investigating for several days : the links for renewing subscriptions, changing bank cards, are incorrect because of missing “my-account” or “checkout” in the URL.

    I’ve found the source of the problem, the getoption function returns an empty result in these cases:

    • get_option( ‘woocommerce_myaccount_page_id’ )
    • get_option( ‘woocommerce_checkout_page_id’ )

    However, these pages are well defined in Woocommerce: https://prnt.sc/mI7087qLt-AI
    And in the database : https://prnt.sc/c6eN9PgHvlKS

    Do you have any idea where this might be coming from?

Viewing 1 replies (of 1 total)
  • Hi @maxence1502,

    I appreciate your patience in investigating this issue.

    It seems like the get_option function is not returning the correct value for ‘woocommerce_myaccount_page_id’ and ‘woocommerce_checkout_page_id’.

    This can occur if these options are not correctly set in your WordPress database or if there is a conflict with other plugins.

    Here are a few options to troubleshoot the issues:

    1. Verify the page IDs: Make sure the IDs for the My Account and Checkout pages match the IDs in your WooCommerce settings.

    2. Check for plugin conflicts: Sometimes, other plugins can interfere with WooCommerce’s functionality. Try deactivating all other plugins except WooCommerce to see if the problem persists. You can do this on a test environment.

    3. Update WooCommerce: If you’re using an outdated version of WooCommerce, updating to the latest version may resolve the issue.

    If these steps do not resolve the issue, please share with us your System Status Report, which you can find via WooCommerce > Status > Get system report > Copy for support.

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Get _page_id return nothing’ is closed to new replies.