Title: Fatal error when connecting
Last modified: March 16, 2022

---

# Fatal error when connecting

 *  Resolved [flushdrew](https://wordpress.org/support/users/flushdrew/)
 * (@flushdrew)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-connecting/)
 * Hello,
 * I have the following fatal error when redirecting to the site after connexion:
 * [16-Mar-2022 14:38:57 UTC] PHP Fatal error: Uncaught Error: Undefined constant‘
   AUTH_KEY’ in /www/xxxxxxxxx/public/wp-content/plugins/pinterest-for-woocommerce/
   src/Crypto.php:37
    Stack trace: #0 /www/xxxxxxxxxx/public/wp-content/plugins/
   pinterest-for-woocommerce/src/Crypto.php(75): Automattic\WooCommerce\Pinterest\
   Crypto->__construct() #1 /www/xxxxxxxxxx/public/wp-content/plugins/pinterest-
   for-woocommerce/src/Crypto.php(113): Automattic\WooCommerce\Pinterest\Crypto::
   get_key() #2 /www/xxxxxxxxxx/public/wp-content/plugins/pinterest-for-woocommerce/
   class-pinterest-for-woocommerce.php(579): Automattic\WooCommerce\Pinterest\Crypto::
   encrypt(‘MTQ2ODQxNDo2MTg…’) #3 /www/xxxxxxxxxxx/public/wp-content/plugins/pinterest-
   for-woocommerce/src/API/Auth.php(111): Pinterest_For_Woocommerce::save_token(
   Array) #4 /www/xxxxxxxxxxx/public/wp-includes/rest-api/class-wp-rest-server.php(
   1141): Automattic\WooCommerce\Pinterest\API\Auth->oauth_callback(Object(WP_REST_Request))#
   5 /www/xxxxxxxxxxx/public/wp-inc in /www/xxxxxxxxxx/public/wp-content/plugins/
   pinterest-for-woocommerce/src/Crypto.php on line 37
 * Any idea how to fix it please ?
 * Thank you

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

 *  Plugin Support [Christian](https://wordpress.org/support/users/christian1983/)
 * (@christian1983)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-connecting/#post-15468303)
 * Hey [@flushdrew](https://wordpress.org/support/users/flushdrew/) ,
 * Hope you are doing well!
 * try to check the following link [conflict test](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)
   on a Staging site, could be some plugin or even the Theme you are using. We need
   to isolate the problem first.
 * If you can’t find the issue, please contact us at WooCommerce.com > My Account
   > Support. 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. We will be able to help you further there.
 * Best,
    Christian
 *  Plugin Support [Christian](https://wordpress.org/support/users/christian1983/)
 * (@christian1983)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-connecting/#post-15596976)
 * Hey there,
 * Since we haven’t heard back from the OP in a while, I’m going to mark this as
   resolved – if you have any further questions, you can start a new thread.
 * Best,
    Christian

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

The topic ‘Fatal error when connecting’ is closed to new replies.

 * ![](https://ps.w.org/pinterest-for-woocommerce/assets/icon.svg?rev=2619817)
 * [Pinterest for WooCommerce](https://wordpress.org/plugins/pinterest-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Christian](https://wordpress.org/support/users/christian1983/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-connecting/#post-15596976)
 * Status: resolved