Home Forums WoodMart support forum Multiple fatal errors after updates – DraftOrders + woodmart_get_default_image

Multiple fatal errors after updates – DraftOrders + woodmart_get_default_image

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #694474

    paveld73
    Participant

    Hi,
    We are facing several critical errors after recent updates of WooCommerce and WoodMart.
    The website goes down randomly with different fatal errors related to Action Scheduler and missing WoodMart functions.

    Errors observed:

    1. Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, function “as_next_scheduled_action” not found
    2. Fatal error: Call to undefined function woodmart_get_default_image_sizes()
    3. Fatal error: Call to undefined function as_has_scheduled_action()
    4. Fatal error: Call to undefined function as_get_datetime_object()

    Environment:

    WordPress (latest version)

    WooCommerce (latest)

    WoodMart (latest)

    PHP 8.x

    Plugins: WP Rocket, WoodMart Core, Drip Gang Sheet (custom plugin), PIC Plugin (product image customization)

    What we’ve tried:

    Full cache purge (WP Rocket + server)

    Deactivated all plugins except WooCommerce + WoodMart

    Reinstalled WooCommerce (including Action Scheduler package)

    Switched to Storefront → all errors disappear

    Reinstalled WoodMart from ThemeForest (fresh copy)

    Additional notes:

    The as_* functions (Action Scheduler) seem to be unavailable during theme init.

    The woodmart_get_default_image_sizes() error happens during init hook in woodmart_register_page_metaboxes.

    The issues occur intermittently when both Drip Gang Sheet and PIC Plugin are active.

    Could you please check if there is any known issue with the latest WoodMart version loading WooCommerce hooks or Action Scheduler too early, or any compatibility issue with DraftOrders, Drip Gang Sheet, or PIC Plugin?

    Thank you very much for your help!

    #694485

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for contacting our support center.

    To better assist you, could you kindly test the functionality with default WordPress themes such as TwentyTwenty or WooCommerce Storefront? This will help us determine whether the issue stems from our theme or elsewhere.

    Regards

    #694501

    paveld73
    Participant

    Hi Artem,

    I already tested with the default WordPress themes (Twenty Twenty-Four and Storefront) everything works fine there.

    The issue only happens when WoodMart + WooCommerce + the GangSheet plugin are active at the same time.
    If I deactivate either WooCommerce or GangSheet, the site works normally again.

    So it seems to be a conflict between WoodMart and WooCommerce, possibly triggered by how the theme calls woodmart_get_default_image() or another WooCommerce-related function.

    Could you please check if there are any recent changes in WoodMart that affect image handling or WooCommerce hooks?

    #694555

    Artem Temos
    Keymaster

    Hello,

    Since the errors only occur when WoodMart and the Drip Gang Sheet plugin are active together, it is very likely a compatibility issue caused by the custom plugin. WoodMart’s core functions and WooCommerce hooks are stable and have not introduced changes that would cause such fatal errors.

    We recommend consulting with the developers of the Drip Gang Sheet plugin to investigate how it interacts with WooCommerce and WoodMart, especially regarding the timing of WooCommerce hooks and image functions. They may need to adjust their plugin’s initialization to ensure compatibility.

    Regards

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