• Resolved davidj81

    (@davidj81)


    Hola, al hacer un pedido y pagarlo por paypal, aparece este error en la pagina de confirmación del pedido:
    Notice: post_status ha sido llamada de forma incorrecta. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/helik/page.php'), get_template_part, locate_template, load_template, require('/themes/helik/template-parts/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, WC_Shortcodes::checkout, WC_Shortcodes::shortcode_wrapper, WC_Shortcode_Checkout::output, WC_Shortcode_Checkout::order_received, wc_get_template, include('/plugins/woocommerce/templates/checkout/thankyou.php'), do_action('woocommerce_thankyou_paypal'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Gateway_Paypal_PDT_Handler->check_response, WC_Gateway_Paypal_Response->payment_complete, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_changed'), WP_Hook->do_action, WP_Hook->apply_filter in /home/newfasio/public_html/ideahome.es/wp-includes/functions.php on line 5311

    El pedido se hace y se recibe el pago. Pero como puedo quitar este error?
    Gracias

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @davidj81,

    From the backtrace you sent, it looks like there is a function with direct access to property post_status of $order that is no longer allowed in WooCommerce. This kind of problem is usually caused by deprecated functions / conflict with your theme or with another plugin. The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same behavior after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    Reactivate the theme first and check again. Then, go on and reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here:

    https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Please make sure you have a backup in place of your site and database. If something goes wrong, it’s nice to know that you can restore your site to the previous state.

    Thanks.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not heard back from you in a while so I’ll go ahead and mark this thread as resolved. Hopefully, you were able to find a way forward with the issue.

    We’ll be here if and/or when you are ready to continue.

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

The topic ‘Error pago paypal’ is closed to new replies.