• Resolved kris110846

    (@kris110846)


    Error log entry as below :-

    PHP Fatal error: Uncaught Error: Call to a member function date() on null in /home/racebolt/public_html/wp-content/plugins/woocommerce/templates/myaccount/my-orders.php:59
    Stack trace:
    #0 /home/racebolt/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(211): include()
    #1 /home/racebolt/public_html/wp-content/plugins/fusion-shortcodes.php(322): wc_get_template(‘myaccount/my-or…’, Array)
    #2 /home/racebolt/public_html/wp-includes/shortcodes.php(325): shortcode_my_orders(”, ”, ‘my_orders’)
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /home/racebolt/public_html/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(my_ord…’, ‘do_shortcode_ta…’, ‘[my_orders]\n<sp…’)
    #5 /home/racebolt/public_html/wp-content/themes/flatsome/inc/helpers/helpers-shortcode.php(195): do_shortcode(‘[my_orders]\n<sp…’)
    #6 /home/racebolt/public_html/wp-includes/class-wp-hook.php(286): flatsome_contentfix(‘[my_orders]\n<sp…’)
    #7 /home/racebolt/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filt in /home/racebolt/public_html/wp-content/plugins/woocommerce/templates/myaccount/my-orders.php on line 59.
    Using latest versions of WC, WP and Flatsome theme. According to the file my-orders.php is depreciated and not used any more. Can anyone tell me whether this is an error in WC or a Theme error.

Viewing 1 replies (of 1 total)
  • Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hi @kris110846,

    This kind of problem is usually caused by either a conflict with your theme or with another plugin. Based on the stack trace you’ve provided, there’s a good chance that your theme is at fault here.
    ?
    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 problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each one, until you find the one causing the conflict. You can find a more detailed explanation on how to do a conflict test here.

Viewing 1 replies (of 1 total)
  • The topic ‘Errors in Error log’ is closed to new replies.