Error in wdgk_modify_template
-
Hi there – great plugin and is exactly what we need (adding a donate button on the cart page).
The plugin works fine but is causing an issue with woocommerce-delivery-notes plugin Print Invoice & Delivery Notes for WooCommerce
When I go to preview a delivery note, instead of the delivery note I get a message “There has been a critical error on this website” but this just affects the delivery note plugin (the rest of the site works fine)
If I disable Woo Donations the error goes away.
Here is what is showing in the error logs. If you can help with this it would be much appreciated.
Many thanks
2024-05-23T10:28:46+00:00 Critical Uncaught TypeError: Argument 3 passed to Woo_Donations_Public::wdgk_modify_template() must be of the type array, null given, called in /var/www/vhosts/barnowltrust.org.uk/httpdocs/wp-includes/class-wp-hook.php on line 324 and defined in /var/www/vhosts/barnowltrust.org.uk/httpdocs/wp-content/plugins/woo-donations/public/class-woo-donations-public.php:364
Additional context
{
“error”: {
“type”: 1,
“file”: “\/var\/www\/vhosts\/barnowltrust.org.uk\/httpdocs\/wp-content\/plugins\/woo-donations\/public\/class-woo-donations-public.php”,
“line”: 364
},
“backtrace”: [
“”,
“#0 \/var\/www\/vhosts\/barnowltrust.org.uk\/httpdocs\/wp-includes\/class-wp-hook.php(324): Woo_Donations_Public->wdgk_modify_template()”,
“#1 \/var\/www\/vhosts\/barnowltrust.org.uk\/httpdocs\/wp-includes\/plugin.php(205): WP_Hook->apply_filters()”,
“#2 \/var\/www\/vhosts\/barnowltrust.org.uk\/httpdocs\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(313): apply_filters()”,
“#3 \/var\/www\/vhosts\/barnowltrust.org.uk\/httpdocs\/wp-content\/plugins\/woocommerce-delivery-notes\/includes\/class-wcdn-print.php(431): wc_get_template()”,
“#4 \/var\/www\/vhosts\/barnowltrust.org.uk\/httpdocs\/wp-content\/plugins\/woocommerce-delivery-notes\/includes\/class-wcdn-print.php(385): WCDN_Print->g”
]
}
- The topic ‘Error in wdgk_modify_template’ is closed to new replies.