Title: Fatal Error: Require File
Last modified: June 16, 2022

---

# Fatal Error: Require File

 *  Resolved [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-require-file/)
 * Hello,
 * I’m getting the following Fatal Error when updating or installing a fresh copy
   of this plugin:
 * `Fatal error: require_once(): Failed opening required 'wp-content\plugins\yith-
   woocommerce-gift-cards/includes/class-yith-woocommerce-gift-cards.php'`
 * It looks like the `YITH_YWGC_DIR` constant holds onto the plugin’s root directory
   of the plugin but the `class-yith-woocommerce-gift-cards.php` file is in a `lib`
   directory. The root functions.php requires seem to be 1 directory off.
    -  This topic was modified 3 years, 12 months ago by [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/).

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

 *  Thread Starter [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-require-file/#post-15743755)
 * The latest update seems to have fixed this. Thanks for pushing it so quickly!
 *  [scookmb](https://wordpress.org/support/users/scookmb/)
 * (@scookmb)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-require-file/#post-15744370)
 * The latest update as in 3.15 or is there one later? The most recent update caused
   PayPal Express to fail and sent multiple errors when trying to checkout. Not 
   just buying a gift card, but for any purchase with the Yith Gift Card installed,
   PayPall does not work. I disabled the gift Card plug-in and now PayPal is working.
   You may want to check to make sure your checkouts are not being affected.
 * Given the gift card plugin is disabled, any idea when a new fix will be released?
 *  Thread Starter [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-require-file/#post-15744376)
 * [@scookmb](https://wordpress.org/support/users/scookmb/) I’m not the plugin developer.
   2.10.0 fixed my issue. If you have a separate issue I’d recommend creating a 
   new topic.

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

The topic ‘Fatal Error: Require File’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-gift-cards/assets/icon-256x256.gif?rev=
   3227932)
 * [YITH WooCommerce Gift Cards](https://wordpress.org/plugins/yith-woocommerce-gift-cards/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-gift-cards/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-require-file/#post-15744376)
 * Status: resolved