Home › Forums › WoodMart support forum › Checkout error
Checkout error
- This topic has 1 reply, 2 voices, and was last updated 10 months, 1 week ago by
Artem Temos.
-
AuthorPosts
-
September 18, 2024 at 1:45 pm #598280
JohnParticipantHello guys,
I faced an issue on the website after updating the theme.
When I try to make an order, on checkout, I will recevied a message that the order isn’t placed and check the payment method but the order it’s placed but will not go to the thank you page and you will receive that message.This is the error line code:
#0 /home/public_html/wp-includes/class-wp-hook.php(324): woodmart_enqueue_emails_styles(‘\r\n/* GENERAL ST…’)
#1 /home/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘\r\n/* GENERAL ST…’, Array)
#2 /home/public_html/wp-content/plugins/woocommerce-email-control/ec-email-control.php(1059): apply_filters(‘woocommerce_ema…’, ‘\r\n/* GENERAL ST…’)
#3 /home/public_html/wp-content/plugins/woocommerce-email-control/ec-email-control.php(1005): WC_Email_Control->ec_style_inline_for_old_wc(‘<!DOCTYPE html>…’)
#4 /home/public_html/wp-includes/class-wp-hook.php(324): WC_Email_Control->ec_style_inline(‘<!DOCTYPE html>…’)
#5 /home/pu in /home/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php on line 2578
[18-Sep-2024 10:27:26 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function woodmart_enqueue_emails_styles(), 1 passed in /home/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php:2578Menaged to fix it with:
function woodmart_enqueue_emails_styles( $css, $email = null ) {
// Define the list of emails to apply the styles to
$woodmart_emails_list = apply_filters( ‘woodmart_emails_list’, array() );// Check if the email class exists in the list
if ( $email && in_array( get_class( $email ), $woodmart_emails_list, true ) ) {
ob_start();
wc_get_template( ’emails/wd-email-styles.php’ );
$css .= ob_get_clean();
}return $css;
}add_filter( ‘woocommerce_email_styles’, ‘woodmart_enqueue_emails_styles’, 10, 2 );”
Attached the plugins we have installed on the website. https://imgur.com/a/Rctk2N3
Please let me know if you need more details for this.
Thank you!
September 18, 2024 at 3:03 pm #598306
Artem TemosKeymasterHello,
Please disable any plugins not directly related to our theme and provide us with your admin access details. We will log in to your dashboard and investigate the issue. Please ensure that you only keep the following plugins that are necessary for our theme to work correctly:
– WoodMart core
– WooCommerce
– Elementor/WPBakery Page BuilderThank you in advance.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register