Title: Plugin giving error
Last modified: January 12, 2022

---

# Plugin giving error

 *  Resolved [avinashk30](https://wordpress.org/support/users/avinashk30/)
 * (@avinashk30)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-error-2/)
 * The plugin is throwing up some errors while activated. The errors go away when
   deactivated. I’ve provided the screenshot below.
 * [https://ibb.co/9nwKjV3](https://ibb.co/9nwKjV3)

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

 *  [Praveen a11n](https://wordpress.org/support/users/spraveenitpro/)
 * (@spraveenitpro)
 * Automattic Happiness Engineer
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-error-2/#post-15246685)
 * Hi [@avinashk30](https://wordpress.org/support/users/avinashk30/)
 * Looks like your WP_debug is turned on causing background notices to get displayed,
   can you please turn it off like this and let us know?
 * You can disable debugging and learn more about that here: [https://wordpress.org/support/article/editing-wp-config-php/](https://wordpress.org/support/article/editing-wp-config-php/)
 * To do this:
 * 1. You will need to login to your site via FTP
    2. download the wp-config.php
   file, This file is located in the root of your WordPress file directory and contains
   your website’s base configuration details, such as database-connection information.
   3. duplicate this file to create a backup 4. edit the below line of code as specified
   below 5. save and re-upload this file to your site.
 * Just in case anything went wrong, you would have a backup of the original file
   that you can re-upload if needed.
 * Find this snippet with in the wp-config.php:
 *     ```
       define('WP_DEBUG', true);
       ```
   
 * Replace that with the below snippet in your wp-config.php located within
    your
   WordPress Folder, this snippet would turn on the errors and error log for WordPress
   and help in debugging.
 *     ```
       // disable WP_DEBUG mode
       define('WP_DEBUG', false);
       ```
   
 *  [kierrapalmer](https://wordpress.org/support/users/kierrapalmer/)
 * (@kierrapalmer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-error-2/#post-15250566)
 * Turning off debug logs is not actually a fix, it just hides the depreciation 
   error. Is there an actual fix in the works?
 *  Plugin Support [Chris M. – a11n](https://wordpress.org/support/users/csmcneill/)
 * (@csmcneill)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-error-2/#post-15250798)
 * Hi [@avinashk30](https://wordpress.org/support/users/avinashk30/) and [@kierrapalmer](https://wordpress.org/support/users/kierrapalmer/),
 * This issue is a bug with how Square for WooCommerce interacts with version 6.1
   of the WooCommerce plugin. Reverting to WooCommerce 6.0 has resolved this issue
   for other merchants.
 * You can find the issue on our public GitHub repository here: [https://github.com/woocommerce/woocommerce/issues/31638](https://github.com/woocommerce/woocommerce/issues/31638)
 * You can find the files for version 6.0 of the WooCommerce plugin here: [https://downloads.wordpress.org/plugin/woocommerce.6.0.0.zip](https://downloads.wordpress.org/plugin/woocommerce.6.0.0.zip)
 * You can find directions for how to revert to a previous version of WooCommerce
   here: [https://woocommerce.com/document/installing-uninstalling-woocommerce/#reverting-to-a-previous-version-of-woocommerce](https://woocommerce.com/document/installing-uninstalling-woocommerce/#reverting-to-a-previous-version-of-woocommerce)
 * I hope this helps!
 *  Thread Starter [avinashk30](https://wordpress.org/support/users/avinashk30/)
 * (@avinashk30)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-error-2/#post-15253072)
 * [@csmcneill](https://wordpress.org/support/users/csmcneill/) Can I not downgrade
   to WooCommerce 6.0 and the plugin still be functional? Everything seems to be
   working fine on the website. I just want to make sure if downgrading is an absolute
   necessity.
 *  Plugin Support [Brad P. a11n](https://wordpress.org/support/users/snaacks/)
 * (@snaacks)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-error-2/#post-15254200)
 * Hi [@avinashk30](https://wordpress.org/support/users/avinashk30/)
 * The suggestion to downgrade is offered as a workaround to remove the unexpected
   errors you’re receiving with the current version of WooCommerce and Square. This
   is not required of you but is something we suggest when dealing with this specific
   issue. If you’re okay with how the site is behaving currently, not having any
   issues processing payments, and you wish to continue as is that is completely
   up to you.
 * Regardless of whether or not you choose to downgrade, I do suggest keeping an
   eye on the GitHub issue for any updates:
 * [https://github.com/woocommerce/woocommerce/issues/31638](https://github.com/woocommerce/woocommerce/issues/31638)

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

The topic ‘Plugin giving error’ is closed to new replies.

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

 * 5 replies
 * 5 participants
 * Last reply from: [Brad P. a11n](https://wordpress.org/support/users/snaacks/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-error-2/#post-15254200)
 * Status: resolved