Title: E_COMPILE_ERROR
Last modified: September 16, 2020

---

# E_COMPILE_ERROR

 *  Resolved [rubenferrer](https://wordpress.org/support/users/rubenferrer/)
 * (@rubenferrer)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/)
 * I can’t activate Plugin: WooCommerce (versión 4.5.2) because E_COMPILE_ERROR 
   in line 39 of the file /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/
   woocommerce/vendor/jetpack-autoloader/autoload_functions.php. Mensaje de error:
   require_once(): Failed opening required ‘/var/www/vhosts/mydomain.com/httpdocs/
   wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/WC_Admin_Notes.
   php’ (include_path=’.:/opt/plesk/php/7.3/share/pear’)
 * If I try to activate, then:
 * Ha habido un error crítico en tu web.
 * Aprende más sobre la depuración en WordPress.
 * Untill actualization of version 4.5.2 it run correctly.

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

 *  [mother.of.code](https://wordpress.org/support/users/imazed/)
 * (@imazed)
 * The Mother of Code
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13414448)
 * Hi there!
 * Can you please copy and paste the system report for this site? You can find it
   under **WP Admin > WooCommerce > Status > Get system report > Copy for support**.
 * Thanks in advance!
 *  Thread Starter [rubenferrer](https://wordpress.org/support/users/rubenferrer/)
 * (@rubenferrer)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13414687)
 * If I try to activate the plugin it sends me that message:
 * Fatal error: Uncaught Error: Call to undefined function get_woocommerce_currency()
   in /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woocommerce-gateway-
   paypal-express-checkout/includes/class-wc-gateway-ppec-settings.php:373 Stack
   trace: #0 /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woocommerce-
   gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php(323):
   WC_Gateway_PPEC_Settings->currency_has_decimal_restriction() #1 /var/www/vhosts/
   mysite.com/httpdocs/wp-includes/class-wp-hook.php(287): WC_Gateway_PPEC_Plugin-
   >activate(”) #2 /var/www/vhosts/mysite.com/httpdocs/wp-includes/class-wp-hook.
   php(311): WP_Hook->apply_filters(”, Array) #3 /var/www/vhosts/mysite.com/httpdocs/
   wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /var/www/vhosts/mysite.
   com/httpdocs/wp-admin/plugins.php(193): do_action(‘activate_woocom…’) #5 {main}
   thrown in /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woocommerce-
   gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-settings.php on
   line 373
 * So I can’t activate to look for the information you said.
 *  [Zach W](https://wordpress.org/support/users/dynamiczach/)
 * (@dynamiczach)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13415177)
 * Thanks for that information!
 * It looks like this issue is actually with the [PayPal Checkout plugin](https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/),
   not [WooCommerce](https://wordpress.org/plugins/woocommerce/) itself.
 * Please post your issue in the forum here and we’ll help you out:
 * [https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/)
 *  Thread Starter [rubenferrer](https://wordpress.org/support/users/rubenferrer/)
 * (@rubenferrer)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13415319)
 * But I have not activated that plugin in this moment.
    I’m trying only to activate
   woocommerce by now.
 *  [Zach W](https://wordpress.org/support/users/dynamiczach/)
 * (@dynamiczach)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13415399)
 * > But I have not activated that plugin in this moment.
   >  I’m trying only to activate
   > woocommerce by now.
 * Try deleting the PayPal Checkout plugin and then see if you can activate WooCommerce.
 * If not, you’ll still want to post here as the issue specifically references a
   problem with the PayPal Checkout plugin:
 * [https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/)
 *  Thread Starter [rubenferrer](https://wordpress.org/support/users/rubenferrer/)
 * (@rubenferrer)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13415803)
 * Thanks, but the problem continues:
 * Se ha producido un error del tipo E_COMPILE_ERROR en la línea 39 del archivo /
   var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woocommerce/vendor/jetpack-
   autoloader/autoload_functions.php. Mensaje de error: require_once(): Failed opening
   required ‘/var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woocommerce/
   packages/woocommerce-admin/src/Notes/WC_Admin_Notes.php’ (include_path=’.:/opt/
   plesk/php/7.3/share/pear’)
 * These error messages were still after I deleted jetpack and paypal plugins.
 *  Thread Starter [rubenferrer](https://wordpress.org/support/users/rubenferrer/)
 * (@rubenferrer)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13420743)
 * Any idea to solve this?
 * I can’t activate the plugin of woocommerce.
 *  [Zach W](https://wordpress.org/support/users/dynamiczach/)
 * (@dynamiczach)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13424732)
 * Very sorry for the delay here!
 * Please contact us at [WooCommerce.com > My Account > Support](https://woocommerce.com/my-account/create-a-ticket/?form=ticket).
   You may need to create an account before you can access that page.
 * Please include a link to this forum thread, so that we can keep track of what’s
   already been done.
 * Please note within your reply on the ticket that you are/were using “Jetpack”
   and “PayPal Checkout” but have deleted them currently while we troubleshoot this
   issue.
 * We will be able to help you further there. Thanks!
 *  [smot83](https://wordpress.org/support/users/smot83/)
 * (@smot83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13731078)
 * Hi, I have the same problem.
    I deleted PayPal Checkout plugin to try but is 
   a woocommerce issue. Please let me know. Thanks
 *  [Zach W](https://wordpress.org/support/users/dynamiczach/)
 * (@dynamiczach)
 * Automattic Happiness Engineer
 * [5 years, 6 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13731111)
 * Howdy [@smot83](https://wordpress.org/support/users/smot83/)!
 * If your site isn’t working currently, you’ll need to use FTP to view your files.
   Try going to the `wp-content/plugins` folder, then rename the woocommerce folder
   to something like `woocommerceBAK`. Then, try to access your website’s admin 
   area again.
 * Once you’re able to get in, I would recommend trying a conflict test by deactivating
   all plugins. Then, change the name of the WooCommerce folder back to `woocommerce`.
   Activate the plugin and try the update again, unless it’s already completed. 
   From there, you can activate plugins one at a time until you see the error occur
   again.
 *  [smot83](https://wordpress.org/support/users/smot83/)
 * (@smot83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13731410)
 * Hi, I tried to do that. I also deleted woocommerce and reinstalled but the website
   is very slow.
 *  [Zach W](https://wordpress.org/support/users/dynamiczach/)
 * (@dynamiczach)
 * Automattic Happiness Engineer
 * [5 years, 6 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13735756)
 * Thanks for trying that!
 * Could you please share a copy of your site’s System Status? You can find it via`
   WooCommerce > Status`. Select “Get system report” and then “Copy for support”.
   Once you’ve done that, paste it here in your response.
 *  [smot83](https://wordpress.org/support/users/smot83/)
 * (@smot83)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13735978)
 * Hi Zach,
    thank you. Yesterday I tried to install woocommerce again and I updated
   another plugin for measurements and now it seems working.

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

The topic ‘E_COMPILE_ERROR’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 13 replies
 * 4 participants
 * Last reply from: [smot83](https://wordpress.org/support/users/smot83/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/e_compile_error-16/#post-13735978)
 * Status: resolved