Title: Parse error in Woocommerce
Last modified: May 25, 2021

---

# Parse error in Woocommerce

 *  Resolved [Lucy](https://wordpress.org/support/users/kiddiestuff/)
 * (@kiddiestuff)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/)
 * I contacted my provider and they said the problem is with Woocommerce, so I renamed
   all the Woocommerce plugins and still can’t access my site or the admin dashboard.
   Does anyone have any idea how to fix this?
 * This is from my provider:
 *     ```
       Thank you for contacting Technical Support. I recognize how important it is to get the website issue fixed.
   
       I have accessed the website http://embroiderybylucy.com/ and was able to duplicate the issue. The file and folder permissions are set up correctly. I have enabled debug mode in wp-config.php file and received following error:
   
       Parse error: syntax error, unexpected ':', expecting '{' in /hermes/bosnaweb28a/b862/nf.kiddiestuffnmorecom/public_html/store/wp-content/plugins/woocommerce/woocommerce.php
   
       I have disabled the debug mode. The above error states that issue with the Woocommerce plugin. The best option is to consult plugin support to fix the coding issue.
   
       Alternative option is disable the plugin. A heads up, modifications done to the website using this plugin might be lost.
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-in-woocommerce%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14483102)
 * Hi there 👋
 * I want to let you know that if WooCommerce was causing it, renaming the folder
   should fix the problem. With this, we can conclude that the issue is not coming
   from WooCommerce itself.
 * So it seems that several plugins or perhaps your theme might be causing this 
   issue. I’d recommend renaming the plugin folder to see if that allows you to 
   access the WordPress admin. If not, I would recommend deactivating the theme 
   through FTP to see if that fixes it.
 * Now, I would recommend open a new topic on the following support forum, which
   specializes in Fixing WordPress sites. Here is the link:
 * [https://wordpress.org/support/forum/how-to-and-troubleshooting/](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * Cheers.
 *  Thread Starter [Lucy](https://wordpress.org/support/users/kiddiestuff/)
 * (@kiddiestuff)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14483120)
 * Thank you, I will try all those suggestions.
 *  Thread Starter [Lucy](https://wordpress.org/support/users/kiddiestuff/)
 * (@kiddiestuff)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14483289)
 * Looks like WordPress sent me back here. See the message reply below.
 *     ```
       Error indicates your woocommerce plugins to be the error.
   
       I recommend asking reporting the issue at https://wordpress.org/support/plugin/woocommerce/ so the plugin’s developers and support community can help you with this.
   
       If you need immediate access to the dashboard, then access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/plugins/ and rename the directory of your the woocommerce plugin.
       ```
   
 *  Plugin Support [Cara](https://wordpress.org/support/users/dcka/)
 * (@dcka)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14483336)
 * Hi, [@kiddiestuff](https://wordpress.org/support/users/kiddiestuff/)!
 * Thanks for trying those out! And I’m sorry you’re still running into this issue.
 * Can you please get in touch with your hosting provider about which PHP version
   your site is using? We’ve seen similar issues caused before by outdated PHP.
 * For reference, we recommend a minimum of PHP 7.3.
 *  Thread Starter [Lucy](https://wordpress.org/support/users/kiddiestuff/)
 * (@kiddiestuff)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14483386)
 * Thanks for your response. My PHP is set to 7.3. I would just be happy right now
   if I could get to the admin panel.
 * Thank you for the help.
 *  Plugin Support [Cara](https://wordpress.org/support/users/dcka/)
 * (@dcka)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14483641)
 * Can you please share with me the full error? It should reference a line that 
   we can then check.
 * Another thing for you to try immediately would be the solution from this video:
   [https://www.youtube.com/watch?v=ctpwZoceURk](https://www.youtube.com/watch?v=ctpwZoceURk)
 * The values you may see in your site’s files might be different, but it’s worth
   checking if there is a reference there to older versions of PHP.
 *  Thread Starter [Lucy](https://wordpress.org/support/users/kiddiestuff/)
 * (@kiddiestuff)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14485119)
 * Hello,
 * This is the only error I have from technical support from my provider. Hope this
   helps.
 * Parse error: syntax error, unexpected ‘:’, expecting ‘{‘ in /hermes/bosnaweb28a/
   b862/nf.kiddiestuffnmorecom/public_html/store/wp-content/plugins/woocommerce/
   woocommerce.php
 * Warning: require_once(/hermes/bosnaweb28a/b862/nf.kiddiestuffnmorecom/public_html/
   store/wp-content/plugins/woocommerce/vendor/psr/container/src/ContainerInterface.
   php): failed to open stream: No such file or directory in /hermes/bosnaweb28a/
   b862/nf.kiddiestuffnmorecom/public_html/store/wp-content/plugins/woocommerce/
   vendor/jetpack-autoloader/autoload_functions.php on line 39
    -  This reply was modified 4 years, 11 months ago by [Lucy](https://wordpress.org/support/users/kiddiestuff/).
 *  Plugin Support [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14492203)
 * Hey again!
 * Let’s try deleting the WooCommerce plugin entirely, from either FTP or if you
   have a file manager or something like that.
 * Once that’s done, check if your site admin comes back
 * Then you can try to reinstall the plugin entirely. From the error, it looks like
   it might have had a malfunction when installing the plugin and not everything
   was installed properly.
 *  Thread Starter [Lucy](https://wordpress.org/support/users/kiddiestuff/)
 * (@kiddiestuff)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14494356)
 * My site is back up and working for now. Thank you everyone for your helpful suggestions.
 *  Plugin Support [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14494957)
 * That’s wonderful. We are happy to help 😃
 * Great! I’m going to mark this as resolved – if you have any further questions,
   you can start a new thread.
 * Cheers.

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

The topic ‘Parse error in Woocommerce’ 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/)

 * 10 replies
 * 4 participants
 * Last reply from: [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-woocommerce/#post-14494957)
 * Status: resolved