Title: Fatal error when checking the box
Last modified: November 10, 2022

---

# Fatal error when checking the box

 *  Resolved [Anastasia](https://wordpress.org/support/users/anastasia08/)
 * (@anastasia08)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-checking-the-box/)
 * We are having the black friday now and wanted to show discounted prices wight
   on the site, as we checked the box “Discounted Price Becomes “Sale Price” (Recommended!)”
   as you recommend.
 * As a result, the cart shows the following fatal error and it is impossible to
   make the order.
 * Fatal error: require_once(): Failed opening required ‘B2BKING_DIRpublic/class-
   b2bking-helper.php’ (include_path=’.:’) in /var/www/u0423292/data/www/mymileo.
   ru/wp-content/plugins/b2bking-wholesale-for-woocommerce/public/class-b2bking-
   dynamic-rules.php on line 4912
 * Why does it happen and how can we fix it?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Anastasia](https://wordpress.org/support/users/anastasia08/)
 * (@anastasia08)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-checking-the-box/#post-16187197)
 * Here is additional what apprears in the cart when we check in the box to show
   prices as discounted:
 *     ```
       Warning: Use of undefined constant B2BKING_DIR - assumed 'B2BKING_DIR' (this will throw an Error in a future version of PHP) in /var/www/u0423292/data/www/mymileo.ru/wp-content/plugins/b2bking-wholesale-for-woocommerce/public/class-b2bking-dynamic-rules.php on line 4912
   
       Warning: require_once(B2BKING_DIRpublic/class-b2bking-helper.php): failed to open stream: No such file or directory in /var/www/u0423292/data/www/mymileo.ru/wp-content/plugins/b2bking-wholesale-for-woocommerce/public/class-b2bking-dynamic-rules.php on line 4912
       ```
   
 * Thanks for your feedback in advance
 *  Plugin Author [WebWizards](https://wordpress.org/support/users/webwizardsdev/)
 * (@webwizardsdev)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-checking-the-box/#post-16187657)
 * Thank you for letting me know,
 * I have now released an update which I believe can fix it. It is version 4.2.34
 * If you do not see the update available in the backend, you can delete the plugin
   and re-install it, to get the latest version.
 * Please check and let me know if that solves it for you,
 *  Thread Starter [Anastasia](https://wordpress.org/support/users/anastasia08/)
 * (@anastasia08)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-checking-the-box/#post-16191278)
 * Thank you very much for the update. We have updated our version. Now it doesn’t
   show the fatal error, but the total cart shows the prices without the discount….
   Is it possible to fix somehow..? Thanks a lot in advance

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error when checking the box’ is closed to new replies.

 * ![](https://ps.w.org/b2bking-wholesale-for-woocommerce/assets/icon-256x256.gif?
   rev=3025903)
 * [B2BKing — Ultimate WooCommerce B2B and Wholesale Plugin — Wholesale Prices, Bulk Order Form & More](https://wordpress.org/plugins/b2bking-wholesale-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/b2bking-wholesale-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/b2bking-wholesale-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/b2bking-wholesale-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/b2bking-wholesale-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/b2bking-wholesale-for-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Anastasia](https://wordpress.org/support/users/anastasia08/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-checking-the-box/#post-16191278)
 * Status: resolved