Critical error if WooComm not installed
-
Using version 3.3.54. While editing posts, get this critical error in the logs:
AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Class “Automattic\WooCommerce\Utilities\OrderUtil” not found in /httpdocs/wp-content/plugins/wp-event-solution/core/woocommerce/hooks.php:1618\nStack trace:\n#0 /httpdocs/wp-includes/class-wp-hook.php(326): Etn\Core\Woocommerce\Hooks->etn_order_page_metabox_init()\n#1 /httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#2 /httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#3 /httpdocs/wp-admin/includes/meta-boxes.php(1714): do_action()\n#4 /httpdocs/wp-admin/edit-form-blocks.php(276): register_and_do_post_meta_boxes()\n#5 /httpdocs/wp-admin/post.php(187): require(‘…’)\n#6 {main}\n thrown in /httpdocs/wp-content/plugins/wp-event-solution/core/woocommerce/hooks.php on line 1618′, referer: https://domain/wp-admin/edit.php
Server error logSeems like the code needs a check to see if WooComm is there before trying to use the OrderUtil class
- The topic ‘Critical error if WooComm not installed’ is closed to new replies.