• Resolved hebhansen

    (@hebhansen)


    I am trying to add a manual order and I get white screen and this error:

    2024-09-26T09:07:59+00:00 Critical Uncaught Error: Call to a member function date() on null in /my-site/wp-content/plugins/code-snippets/php/snippet-ops.php(582) : eval()'d code:36  
    Additional context
    {
    "error": {
    "type": 1,
    "file": "/my-site/wp-content/plugins/code-snippets/php/snippet-ops.php(582) : eval()'d code",
    "line": 36
    },
    "backtrace": [
    "",
    "#0 /my-site/wp-includes/class-wp-hook.php(326): change_woocommerce_order_number(4458)",
    "#1 /my-site/wp-includes/plugin.php(205): WP_Hook->apply_filters(4458, Array)",
    "#2 /my-site/wp-content/plugins/woocommerce/includes/class-wc-order.php(528): apply_filters('woocommerce_ord...', 4458, Object(Automattic\WooCommerce\Admin\Overrides\Order))",
    "#3 /my-site/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(222): WC_Order->get_order_number()",
    "#4 /my-site/wp-admin/includes/template.php(1456): WC_Meta_Box_Order_Data::output(Object(WP_Post), Array)",
    "#5 /my-site/wp-admin/edit-form-advanced.php(723): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))",
    "#6 /my-site/wp-admin/post-new.php(75): require('/my-site/...')",
    "#7 {main}",
    "thrown"
    ]
    }

    How can I fix

    • This topic was modified 3 weeks, 4 days ago by hebhansen.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi @hebhansen ,

    The critical error you shared points to a custom coding snippet being added where the code isn’t correct. Specifically, it’s pointing to a date() function used in the settings of this plugin: plugins/code-snippets

    You’d need to review the code to make sure it’s compatible with the latest version of WooCommerce. If you’re unsure what that entails, we’d recommend getting in touch with a web developer to take a closer look at that code snippet.

    As an interim solution, you could also deactivate the Code Snippets plugin (or that snippet specifically) and then try adding a manual order again.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi there,

    I’m marking this topic as “resolved” due to recent inactivity. If more assistance is needed, feel free to post back here or open a new topic ( https://www.ads-software.com/support/plugin/woocommerce/#new-topic-0 ).

    Thanks!

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