Site logo

[Resolved] Barns2 Document Library Pro Conflict

Home Forums Support [Resolved] Barns2 Document Library Pro Conflict

Home Forums Support Barns2 Document Library Pro Conflict

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 234

    I’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.

    #2541881
    Clayton

    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.

    #2541886
    Leo
    Staff
    Customer Support

    Thanks for sharing the workaround solution!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.