- This topic has 2 replies, 2 voices, and was last updated 3 years, 2 months ago by
Leo.
-
AuthorPosts
-
February 21, 2023 at 4:48 pm #2541877
Clayton
Hey guys,
I’ve got a weird one. I’m running GeneratePress with WooCommerce and a plugin called Document Library Pro. Recently (maybe within the last week or so) I started getting the following critical error on the website where the [doc_library] shortcode is used.
I’ve done some testing in a staging environment and it seems related to GeneratePress and or WooCommerce. This is admittedly a very complex site running a lot of plugins but I’ve narrowed it down to WooCommerce and or GP Premium. If I deactivate WooCommerce, I no longer get the error, however the Document Library Pro plugin doesn’t output the table.
If I GP Premium everything works fine with WooCommerce active. My hunch is that WooCommerce updated something that started to cause the conflict because it looks like GP Premium hasn’t had an update in a while. This is the WooCommerce error I’m getting.
Fatal error: Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\Blocks\BlockTypes\ClassicTemplate::add_alignment_class_to_wrapper() must be of the type string, null given, called in /home/nginx/domains/thebetternutritionprogram.com/public/wp-includes/class-wp-hook.php on line 309 and defined in /home/nginx/domains/thebetternutritionprogram.com/public/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/ClassicTemplate.php:234 Stack trace: #0 /home/nginx/domains/thebetternutritionprogram.com/public/wp-includes/class-wp-hook.php(309): Automattic\WooCommerce\Blocks\BlockTypes\ClassicTemplate->add_alignment_class_to_wrapper() #1 /home/nginx/domains/thebetternutritionprogram.com/public/wp-includes/plugin.php(191): WP_Hook->apply_filters() #2 /home/nginx/domains/thebetternutritionprogram.com/public/wp-includes/class-wp-block.php(284): apply_filters() #3 /home/nginx/domains/thebetternutritionprogram.com/public/wp-includes/class-wp-block.php(241): WP_Block->render() #4 /home/nginx/domains/thebett in /home/nginx/domains/thebetternutritionprogram.com/public/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/ClassicTemplate.php on line 234I’ve reached out to the plugin support and WooCommerce support. WooCommerce wasn’t all that helpful and Barn2 is still looking into the issue but I thought it was worth posting here to see if you guys might have any insight.
Somehow it is related to WooCommerce and GP Premium conflicting in a way with Document Library Pro. Any input would be greatly appreciated.
February 21, 2023 at 4:59 pm #2541881Clayton
It is specifically related to Element → Content Template. If I bypass that everything works fine so for now that is what I am doing. I was using an element to create a content template on that page and a few other pages. Just FYI.
February 21, 2023 at 5:03 pm #2541886Leo
StaffCustomer SupportThanks for sharing the workaround solution!
-
AuthorPosts
- You must be logged in to reply to this topic.