Critical error if WooComm not installed

[ad_1]

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 log

Seems like the code needs a check to see if WooComm is there before trying to use the OrderUtil class

  • This topic was modified 12 hours, 11 minutes ago by websavers.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer