• ib1222

    (@ib1222)


    Hey, since 1 month I am getting these errors in our phperrorlog / debug log. Customers used to get this in front-end also. Please how to fix that these errors don’t come anymore? It comes everyday, mostly after a customer buys.

    These 2 errors:

    [28-May-2024 08:02:48 UTC] PHP Notice: Functie order_currency werd verkeerd aangeroepen. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/Divi/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’), WP_Hook->do_action, WP_Hook->apply_filters, tradetracker_tracking, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Lees Foutopsporing in WordPress voor meer informatie. (Dit bericht is toegevoegd in versie 3.0.) in /home/customer/www/(MYSITE)/public_html/wp-includes/functions.php on line 6078

    [28-May-2024 08:02:48 UTC] PHP Deprecated: Functie get_used_coupons is sinds versie 3.7 verouderd! Gebruik in plaats daarvan WC_Abstract_Order::get_coupon_codes. in /home/customer/www/(MYSITE)/public_html/wp-includes/functions.php on line 6078

Viewing 3 replies - 1 through 3 (of 3 total)
  • Stef

    (@serafinnyc)

    Do you have access to your Config file @ib1222 ? you can simply go there and turn off debug mode

    Look for a link that says

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );

    and change it to

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', false );

    If you see another line that has

    define( 'WP_DEBUG_LOG', true ); // set this to false

    Lastly, if you see

    // Disable display of errors and warnings
    define( 'WP_DEBUG_DISPLAY', false ); // make sure this is set to false
    @ini_set( 'display_errors', 0 ); // make sure this is set to 0
    Thread Starter ib1222

    (@ib1222)

    Hey, thank you. Yes I do have access. But this will turn off all errors and problems, so then we can’t see the problems on site. That’s not what we want. We want to identify problems and fix/resolve it… otherwise site will break and problems.

    Hey there, @ib1222! Thanks for contacting us. I’m happy to help you.

    Do you have any custom code on your website?

    Can you please share the System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support so we can take a look?

    Looking forward to your reply.

    Have a wonderful day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.