This topic has 5 replies, 2 voices, and was last updated 7 years by Kieran_SQ.

  • Author
  • #178859
     olufemishield
    Participant

    Hi, I just noticed my store redirects people to page 404 after order for a product is made at checkout.

    Though the product gets ordered but instead of redirecting to store “my-account” page, it redirects to page 404.

    I enquired from my host provider and they were able to send a log of the problem below.

    COPY CODE
    [03-Nov-2017 15:07:45 UTC] is_internal_meta_key was called incorrectly. Generic add/update/get meta methods should not be used for internal meta data, including "_subscription_switch_data". Use getters and setters. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, do_action('woocommerce_checkout_order_processed'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Subscriptions_Checkout::process_checkout, WC_Subscriptions_Checkout::create_subscription, wcs_copy_order_meta, wcs_set_objects_property, WC_Data->update_meta_data, WC_Data->add_meta_data, WC_Data->is_internal_meta_key, wc_doing_it_wrong. This message was added in version 3.2.0.
    [03-Nov-2017 15:07:45 UTC] The The "woocommerce_add_order_item_meta" hook uses out of date data structures and function is deprecated since version 3.2.3. Replace with woocommerce_new_order_item.
    #178888
     olufemishield
    Participant
    This reply has been set as private.
    #178906
     Kieran_SQ
    Moderator

    Hi,

    Thanks for contacting us about issues you’re having with 404 errors. You stated you were receiving 404 Errors, is this still the case or are you only getting the one error now regarding WC_Cart::get_cart_url?

    We no longer use WC_Cart::get_cart_url in the theme instead we use wc_get_cart_url as per the debugger suggestion. You should try completely purging your site’s cache, CDN and local cache to see if this continues.

    If all you are now receiving is a printed error on the front-end and not a 404 you could try turning off error reporting on the front-end. You can read more on doing this here https://aristath.github.io/blog/wp-hide-php-errors.

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #178926
     olufemishield
    Participant

    Hi Kieran, the problem now is that it doesn’t show anything at checkout and no product is ordered.

    #178931
     olufemishield
    Participant

    I also deleted the cart page and recreated it and I have the same issue with the cart page (displays no content and shows a second error)

    Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /home/houseofshield/public_html/wp-includes/functions.php on line 3831

    Notice: WC_Cart::get_checkout_url is deprecated since version 2.5! Use wc_get_checkout_url instead. in /home/houseofshield/public_html/wp-includes/functions.php on line 3831

    #178959
     Kieran_SQ
    Moderator

    Hi,

    Please update this ticket with an admin username and password that I can use to access your site.

    Also, please share with me your latest PHP error log for the last 48hrs, if this is a large amount of text please upload it in a .txt file

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?