• Resolved jaspix

    (@jaspix)


    When trying to enter the wp-admin dashboard I got an error and the wordpress message: “WordPress caught an error with one of your plugins, Pinterest for WooCommerce.”

    This is the log I got

    Error Details
    =============
    An error of type E_ERROR was caused in line 37 of the file /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/src/Crypto.php. Error message: Uncaught Error: Undefined constant "AUTH_KEY" in /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/src/Crypto.php:37
    Stack trace:
    #0 /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/src/Crypto.php(75): Automattic\WooCommerce\Pinterest\Crypto->__construct()
    #1 /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/src/Crypto.php(129): Automattic\WooCommerce\Pinterest\Crypto::get_key()
    #2 /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/class-pinterest-for-woocommerce.php(591): Automattic\WooCommerce\Pinterest\Crypto::decrypt()
    #3 /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/class-pinterest-for-woocommerce.php(970): Pinterest_For_Woocommerce::get_token()
    #4 /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/class-pinterest-for-woocommerce.php(981): Pinterest_For_Woocommerce::is_connected()
    #5 /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/class-pinterest-for-woocommerce.php(960): Pinterest_For_Woocommerce::is_business_connected()
    #6 /home/kawaiisale.com/public_html/wp-content/plugins/pinterest-for-woocommerce/includes/admin/class-pinterest-for-woocommerce-admin.php(212): Pinterest_For_Woocommerce::is_setup_complete()
    #7 /home/kawaiisale.com/public_html/wp-includes/class-wp-hook.php(307): Pinterest_For_Woocommerce_Admin->add_menu_items()
    #8 /home/kawaiisale.com/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters()
    #9 /home/kawaiisale.com/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Marketing.php(106): apply_filters()
    #10 /home/kawaiisale.com/public_html/wp-includes/class-wp-hook.php(307): Automattic\WooCommerce\Internal\Admin\Marketing->register_pages()
    #11 /home/kawaiisale.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #12 /home/kawaiisale.com/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
    #13 /home/kawaiisale.com/public_html/wp-admin/includes/menu.php(155): do_action()
    #14 /home/kawaiisale.com/public_html/wp-admin/menu.php(394): require_once('...')
    #15 /home/kawaiisale.com/public_html/wp-admin/admin.php(158): require('...')
    #16 /home/kawaiisale.com/public_html/wp-admin/index.php(10): require_once('...')
    #17 {main}
      thrown

    Extra info:
    WordPress version 6.0.2
    Active theme: Salient Kawaii Sale (version 1.0.0)
    Current plugin: Pinterest for WooCommerce (version 1.2.2)
    PHP version 8.1.6

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Christian

    (@christian1983)

    Hey @jaspix,

    Hope you are doing well!

    From what I can see, the constant AUTH_KEY is not defined on your wp-config.php file. This key is needed by the plugin.

    you can generate the key here and then define it on your wp-config.php file, adding a line like:
    define('AUTH_KEY', '<key>');

    Best,
    Christian

    Thread Starter jaspix

    (@jaspix)

    That fixed it. Thank you!

    • This reply was modified 2 years, 1 month ago by jaspix.
    Plugin Support Christian

    (@christian1983)

    Happy to hear!

    Would you mind taking a minute to leave your?feedback?on your experience with the plugin? Your insights are incredibly valuable and will help us make sure we serve you and other amazing customers well in the future.

    Thank you for taking the time to share your opinion. It makes such a difference in how we show up and serve others!

    Best,
    Christian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Crashed admin site’ is closed to new replies.