E_COMPILE_ERROR with Storefront Theme
-
Error Details
=============
An error of type E_COMPILE_ERROR was caused in line 27 of the file /services/webpages/c/l/clockittoya.ca/public/wp/wp-content/themes/storefront/functions.php. Error message: require(): Failed opening required ‘inc/class-storefront.php’ (include_path=’.’)
-
Sorry forgot to include the following info:
\\WordPress version 5.7.2
Current theme: Storefront (version 3.7.0) Current plugin: (version ) PHP version 7.4.19\Thanks for any help you can provide on this error.
MikeHi Mike @cuttycliffy!
Can you also let us know which version of WooCommerce you’re using?
Based on the error message though, there may be an issue with the Storefront install. Do you remember any updates or changes to your site before the error started happening?
You may want to download a fresh copy of Storefront here and try reinstalling again.
Let us know if that helps!
Hi Cara,
Thank you for the reply.
WordPress version 5.7.2
Current theme: Storefront (version 3.7.0)
PHP version 7.4.19I do not remember any changes except adding google recaptcha. Do you happen to know if using recaptcha causes issues with Storefront? Maybe there is a better plugin?
Thanks so much for your help.
MikeHi Mike @cuttycliffy,
Thank you for that information!
To be clear though, are you not using the WooCommerce plugin?
I do not remember any changes except adding google recaptcha. Do you happen to know if using recaptcha causes issues with Storefront? Maybe there is a better plugin?
I’m not aware of any Storefront issues specific to Google ReCaptcha. That said, there are many different ReCaptcha plugins. I’m not familiar with which one would be better either. However, if you suspect that the one you have is causing the error, can you see if temporarily disabling it makes the error go away?
Can you also try reinstalling Storefront in case something’s wrong with the install? And please let us know how that goes too!
Sorry about that Cara. Yes I am using the WooCommerce plugin – Version 5.4.1. Will I lose my specific setup information, product pictures, etc…if I reinstall Storefront?
Thanks for all your help!
MikeHi @cuttycliffy,
Thanks for confirming your WooCommerce version!
The settings should be stored in the database, so reinstalling Storefront should not remove any specific set up information.
Having said that, have you made any changes to the theme’s files or folders directly? If you hav made any changes, they would be deleted if you reinstall Storefront.
I recommend first making a full back of your site, then try reinstalling Storefront.
Please let us know how that goes!
Okay thanks Niall. I will try that now and update this thread with the results. Appreciate the help!
Mike
It appears I am still getting the same error:
Error Details
=============
An error of type E_COMPILE_ERROR was caused in line 27 of the file /services/webpages/c/l/clockittoya.ca/public/wp/wp-content/themes/storefront/functions.php. Error message: require(): Failed opening required ‘inc/class-storefront.php’ (include_path=’.’)I unzipped and copied all files from the Storefront link you provided via FTP and overwrote the exiting Storefront files. I also compared the functions.php and inc/class-storefront.php php files and they are identical. Do you have some other ideas I can try to fix this issue? My website users sporadically get the error:
“There has been a critical error on this website”
Thanks,
MikeHi Mike @cuttycliffy!
Thank you for keeping us updated on your issue. I went looking for similar issues, and judging by the reference to
E_COMPILE_ERROR, the WooCommerce installation on your site may have some missing files. Can you try reinstalling WooCommerce if that helps?Also, can you check if you have a separate WooCommerce Admin plugin in your plugins list under WP Admin > Plugins? If yes, which version is it?
Hello Cara,
I do not have WooCommerce Admin installed. After I updated Storefront, I am getting an error when I click on “Appearance”, than “Customize” for that theme. – “There has been a critical error on this website. Please check your site admin email inbox for instructions.”
Do you think it will still help reinstalling WooCommerce?
Thanks for all your help on this…
MikeHi there,
I do not have WooCommerce Admin.
Thanks,
MikeHi Mike @cuttycliffy,
I’m sorry to hear you’re still having issues on your site.
Do you think it will still help reinstalling WooCommerce?
Yes, it would be helpful to rule out a faulty WooCommerce installation right away.
Can you also clarify, just so we’re on the same page, have you already deactivated the Google ReCaptcha plugin you installed?
Also, it would be helpful to pinpoint the exact instances when you receive errors on your site. You’ve mentioned the following before:
My website users sporadically get the error:
“There has been a critical error on this website”
Are users still getting the error? If yes, does it only happen when visiting certain pages on your site?
The
E_COMPILE_ERRORcan be tricky to diagnose, so if you can send us a copy of your System Status Report, that could help us get a better idea of your site setup. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it into your reply here.Hi Cara,
My users are not seeing the error anymore. I am just getting the error when I try to click on customize for the storefront theme. I also get the error when I click on background and header. I deactivated the Google ReCaptcha plugin and still get the error.
Here is the latest error:
2021-07-05T00:05:12+00:00 CRITICAL require(): Failed opening required ‘inc/class-storefront.php’ (include_path=’.’) in /services/webpages/c/l/clockittoya.ca/public/wp/wp-content/themes/storefront/functions.php on line 27
The inc/class-storefront.php is present in /wp/wp-content/themes/storefront/inc
******************************************************`Here is the system status report:
### WordPress Environment ### WordPress address (URL): http://clockittoya.ca/wp Site address (URL): http://clockittoya.ca/wp WC Version: 5.4.1 REST API Version: ✔ 5.4.1 WC Blocks Version: ✔ 5.1.0 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 2.3.1 Log Directory Writable: ✔ WP Version: 5.7.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.19 PHP Post Max Size: 256 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.64.1 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.7.31-log Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 5.4.1 WC Database Prefix: wp_ Total Database Size: 229.68MB Database Data Size: 159.54MB Database Index Size: 70.14MB wp_woocommerce_sessions: Data: 5.56MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 4.40MB + Index: 2.91MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 42.10MB + Index: 31.35MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 0.39MB + Index: 0.17MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 0.27MB + Index: 0.18MB + Engine MyISAM wp_commentmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_comments: Data: 0.74MB + Index: 0.38MB + Engine MyISAM wp_es_deliverreport: Data: 0.75MB + Index: 0.08MB + Engine MyISAM wp_es_emaillist: Data: 0.07MB + Index: 0.01MB + Engine MyISAM wp_es_notification: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_es_sentdetails: Data: 0.03MB + Index: 0.00MB + Engine MyISAM wp_es_subscriber_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_fmera_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_fmera_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_actions: Data: 1.12MB + Index: 2.67MB + Engine MyISAM wp_ig_blocked_emails: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_campaigns: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_ig_contactmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_contacts: Data: 0.13MB + Index: 0.11MB + Engine MyISAM wp_ig_contacts_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_contact_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_lists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_lists_contacts: Data: 0.08MB + Index: 0.03MB + Engine MyISAM wp_ig_mailing_queue: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_ig_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_sending_queue: Data: 3.70MB + Index: 0.30MB + Engine MyISAM wp_ig_temp_import: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_unsubscribe_feedback: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_wc_cart: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_wc_guests: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_workflows: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ig_workflows_queue: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 7.11MB + Index: 2.07MB + Engine MyISAM wp_postmeta: Data: 57.40MB + Index: 19.51MB + Engine MyISAM wp_posts: Data: 24.71MB + Index: 2.50MB + Engine MyISAM wp_rm_fields: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_rm_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_front_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_paypal_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_paypal_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_rules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_sent_mails: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_sessions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_rm_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_submission_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rm_task_exe_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_say_what_strings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_terms: Data: 0.01MB + Index: 0.03MB + Engine MyISAM wp_term_relationships: Data: 0.66MB + Index: 1.52MB + Engine MyISAM wp_term_taxonomy: Data: 0.03MB + Index: 0.01MB + Engine MyISAM wp_UPCP_Catalogues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Catalogue_Items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Custom_Fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Fields_Meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Item_Images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_SubCategories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Tagged_Items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Tags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Tag_Groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_UPCP_Videos: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_usermeta: Data: 5.89MB + Index: 2.34MB + Engine MyISAM wp_users: Data: 0.16MB + Index: 0.17MB + Engine MyISAM wp_user_registration_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.07MB + Index: 0.07MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 3.37MB + Index: 2.88MB + Engine MyISAM wp_wc_order_stats: Data: 0.07MB + Index: 0.04MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_product_meta_lookup: Data: 0.59MB + Index: 0.74MB + Engine MyISAM wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### attachment: 9700 custom_css: 1 es_template: 27 jetpack_migration: 2 jp_img_sitemap: 10 jp_img_sitemap_index: 2 jp_sitemap: 2 jp_sitemap_master: 2 nav_menu_item: 12 page: 9 post: 3 product: 9092 revision: 775 shop_order: 2291 tablepress_table: 2 um_directory: 1 um_form: 3 um_role: 2 user_registration: 1 ### Security ### Secure connection (HTTPS): ❌ Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ✔ ### Active Plugins (23) ### Akismet Anti-Spam: by Automattic – 4.1.9 Autoptimize: by Frank Goossens (futtta) – 2.8.4 Decorator - WooCommerce Email Customizer: by WebToffee – 1.1.0 Email Subscribers & Newsletters: by Icegram – 4.7.5.1 Email Text Customizer for WooCommerce: by EnigmaWeb – 1.0.3 FMA Additional Registration Attributes(Free): by FME Addons – 1.0.4 GTranslate: by Translate AI Multilingual Solutions – 2.8.64 WooCommerce Custom Account Fields: by Iconic – 1.0.0 Jetpack: by Automattic – 9.8.1 Login No Captcha reCAPTCHA (Google): by Robert Peake and Contributors – 1.6.11 Manage Notification E-mails: by Virgial Berveling – 1.8.0 Multiple Admin Email Addresses: by Nimrod Cohen – 1.1.2 TablePress: by Tobias Bäthge – 1.13 Category Order and Taxonomy Terms Order: by Nsp-Code – 1.5.7.5 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.56 Woo Custom Emails: by wp3sixty – 2.2 WooCommerce Extra Product Sorting Options: by SkyVerge – 2.9.0 Booster for WooCommerce: by Pluggabl LLC – 5.4.2 More Sorting Options for WooCommerce: by WP Wham – 3.2.8 WooCommerce Remove Product Sorting: by SkyVerge – 1.1.1 WooCommerce: by Automattic – 5.4.1 Media Library Categories: by Jeffrey-WP – 1.9.9 Smush: by WPMU DEV – 3.8.7 ### Inactive Plugins (1) ### WP Healthcheck: by Tiago Hillebrandt – 1.3.3 ### Settings ### API Enabled: ✔ Force SSL: – Currency: CAD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: simple (simple) grouped (grouped) variable (variable) external (external) Taxonomies: Product Visibility: exclude-from-search (exclude-from-search) exclude-from-catalog (exclude-from-catalog) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #30 - / Cart: #31 - /cart/ Checkout: #32 - /checkout/ My account: #33 - /my-account/ Terms and conditions: #79 - /terms/ ### Theme ### Name: Storefront Version: 3.7.0 Author URL: https://woocommerce.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### More Sorting Settings ### More Sorting for WooCommerce: no Custom Sorting: yes Sort by date (ascending): Sort by date (descending): Sort by title: A to Z: Sort by title: A to Z Sort by title: Z to A: Sort by slug: A to Z: Sort by slug: Z to A: Sort by SKU: low to high: Sort by SKU: high to low: Sort by SKU: no Sort by stock quantity: low to high: Sort by stock quantity: high to low: Sort by total sales: low to high: Sort by total sales: high to low: Sort by last modified date: oldest to newest: Sort by last modified date: newest to oldest: Sort by author ID (ascending): Sort by author ID (descending): Sort by product ID (ascending): Sort by product ID (descending): Sort by number of comments (ascending): Sort by number of comments (descending): Random sorting: No sorting: Custom Meta Sorting: no Total Options: 1 Enable/Disable: yes Type: meta_value Meta Key: Secondary Sorting: none Order: asc Parameter: custom_sorting_1 Title: Custom Meta Sorting #1 Default Sorting Options: no Default sorting: Default sorting Sort by popularity: Sort by popularity Remove "Sort by popularity": no Sort by average rating: Sort by average rating Remove "Sort by average rating": no Sort by newness: Sort by newness Remove "Sort by newness": yes Sort by price: low to high: Sort by price: low to high Remove "Sort by price: low to high": no Sort by price: high to low: Sort by price: high to low Remove "Sort by price: high to low": no Rearrange Sorting: no Rearrange Sorting: menu_order popularity rating date price price-desc date-asc date-desc title-asc title-desc name-asc name-desc sku-asc sku-desc stock_quantity-asc stock_quantity-desc total_sales-asc total_sales-desc modified-asc modified-desc author-asc author-desc product_id-asc product_id-desc comment_count-asc comment_count-desc rand none Remove All Sorting (Including WooCommerce Default): no Enable/Disable: no Theme: avada ### Action Scheduler ### Complete: 612 Oldest: 2021-06-04 08:06:13 -0300 Newest: 2021-07-05 00:49:34 -0300 ### Status report information ### Generated at: 2021-07-05 00:53:56 -03:00Thanks,
MikeThank you for that, @cuttycliffy!
I have a few things for you to check.
First, you already said that the
inc/class-storefront.phpexists. Can you also confirm that it is not corrupted?Next, can you please go over these with your hosting provider?
- Increase your site’s PHP Time Limit from 30 to at least 300
- Check the permissions on your site’s files/folders to make sure they can be opened
Hi, @cuttycliffy!
We haven’t heard back from you in a while, so I’m going to mark this thread as resolved. However, we’ll be here if/when you’re ready to continue.
The topic ‘E_COMPILE_ERROR with Storefront Theme’ is closed to new replies.
