• Resolved mayday295

    (@mayday295)


    Hello I’m getting a critical error when previewing any emails with any orders.

    See below for exact error:

    Fatal error: Uncaught Error: Call to undefined method WOOCOS_Email::trigger() in /home/509551.cloudwaysapps.com/qygaaguzyc/public_html/wp-content/plugins/woo-preview-emails/includes/Main.php:296 Stack trace: #0 /home/509551.cloudwaysapps.com/qygaaguzyc/public_html/wp-includes/class-wp-hook.php(308): Codemanas\WooPreviewEmails\Main->email_preview_output() #1 /home/509551.cloudwaysapps.com/qygaaguzyc/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #2 /home/509551.cloudwaysapps.com/qygaaguzyc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /home/509551.cloudwaysapps.com/qygaaguzyc/public_html/wp-admin/admin.php(175): do_action() #4 {main} thrown in?/home/509551.cloudwaysapps.com/qygaaguzyc/public_html/wp-content/plugins/woo-preview-emails/includes/Main.php?on line?296

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author digamberpradhan

    (@digamberpradhan)

    Hmm – the error indicates the WCOOS_Email::trigger is being called.
    Are there any plugins being that would trigger emails?

    Thread Starter mayday295

    (@mayday295)

    So after further testing it seems it fails on my custom statuses only (of which, more than half are custom). I run a rental site, so I have a workflow for processing the orders that is not the standard (processing/completed/etc). Any way to register these statuses so they function with your plugin? I have emails templated for all of them, and they work fine, would just like to be able to preview more quickly than sending in an order to review.

    Plugin Author digamberpradhan

    (@digamberpradhan)

    @mayday295
    The email if registered properly and if it doesn’t have specific arguments it – should work as expected.

    Can you please give me an example of – Creating a custom status and associated email. That way I can test it out – otherwise – it’s just conjecture on my part.

    I’ve just encountered the same error. I have Custom Order Statuses for WooCommerce plugin and I have created some custom order statuses. The plugin seems to be abandoned but works fine.

    Error:

    PHP Fatal error: Uncaught Error: Call to undefined method WOOCOS_Email::trigger() in \wp-content\plugins\woo-preview-emails\includes\Main.php:315

    The plugin has the WOOCOS_Email class (similar but different from WCOOS_Email).

    The plugin appears to use woocos_trigger( $orderID, $current_order_status ) to send its emails but $current_order_status seems to be an object from its options in wp_options.

    It would probably be messy to accommodate this.

    gordonlangley

    (@gordonlangley)

    Hello – I’m getting a similar issue when I try and preview third party emails from a plugin called SUMO subscriptions – such a same as these extra emails are the ones I am really trying to preview – love the plugin – very useful!

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function SUMOSubs_Abstract_Email::trigger(), 1 passed in /home/fmdev/public_html/wp-content/plugins/woo-preview-emails/includes/Main.php on line 288 and exactly 3 expected in /home/fmdev/public_html/wp-content/plugins/sumosubscriptions/includes/abstracts/abstract-sumosubs-email.php:133 Stack trace: #0 /home/fmdev/public_html/wp-content/plugins/woo-preview-emails/includes/Main.php(288): SUMOSubs_Abstract_Email->trigger() #1 /home/fmdev/public_html/wp-includes/class-wp-hook.php(324): Codemanas\WooPreviewEmails\Main->email_preview_output() #2 /home/fmdev/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/fmdev/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/fmdev/public_html/wp-admin/admin.php(175): do_action() #5 {main} thrown in?/home/fmdev/public_html/wp-content/plugins/sumosubscriptions/includes/abstracts/abstract-sumosubs-email.php?on line?133

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Critical Error Previewing Any Emails’ is closed to new replies.