Title: Uncaught Error: Call to undefined method Exception::get_pinterest_code()
Last modified: April 14, 2022

---

# Uncaught Error: Call to undefined method Exception::get_pinterest_code()

 *  Resolved [Raquel](https://wordpress.org/support/users/keuls/)
 * (@keuls)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/)
 * Hi,
 * I got a heads-up from WordPress yesterday about the error below. I’ll try to 
   do a conflict test on a staging site when I have some time, but wanted to check
   first in case is something you are aware of.
 * WordPress version 5.9.3
    Current theme: Storefront (version 4.1.0) Current plugin:
   Pinterest for WooCommerce (version 1.0.11) PHP version 7.4.28
 * Error Details
    ============= An error of type E_ERROR was caused in line 98 of
   the file /home/customer/www/glazemepretty.com/public_html/wp-content/plugins/
   pinterest-for-woocommerce/src/FeedRegistration.php. Error message: Uncaught Error:
   Call to undefined method Exception::get_pinterest_code() in /home/customer/www/
   glazemepretty.com/public_html/wp-content/plugins/pinterest-for-woocommerce/src/
   FeedRegistration.php:98 Stack trace: #0 /home/customer/www/glazemepretty.com/
   public_html/wp-includes/class-wp-hook.php(307): Automattic\WooCommerce\Pinterest\
   FeedRegistration->handle_feed_registration() #1 /home/customer/www/glazemepretty.
   com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”,
   Array) #2 /home/customer/www/glazemepretty.com/public_html/wp-includes/plugin.
   php(522): WP_Hook->do_action(Array) #3 /home/customer/www/glazemepretty.com/public_html/
   wp-content/plugins/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_Action.
   php(22): do_action_ref_array(‘pinterest-for-w…’, Array) #4 /home/customer/www/
   glazemepretty.com/public_html/wp-content/plugins/woocommerce/packages/action-
   scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(65): ActionScheduler_Action-
   >execute() #5 /h`

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

 *  [Jeremy Pry](https://wordpress.org/support/users/jpry/)
 * (@jpry)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/#post-15562545)
 * Hi [@keuls](https://wordpress.org/support/users/keuls/),
 * Thank you for reporting this issue to us, and I’m sorry about the error you’re
   seeing. I’ve opened an issue for this to be addressed [on GitHub](https://github.com/woocommerce/pinterest-for-woocommerce/issues/449).
   It appears that something is causing the feed registration to fail, and the code
   isn’t properly handling that failure.
 * There are a few reasons the feed registration might fail, and to resolve that
   portion of the issue we’ll need some more information. To get that information,
   we’ll need the latest error logs from your site. Here’s what you can do to get
   those:
    1. Go to Marketing > Pinterest > Settings in your WordPress dashboard.
    2. In the “Advanced” section, ensure that the box labeled “Enable Debug Logging”
       is checked.
    3. Save the settings if necessary.
    4. Wait for the feed generation to be attempted again. It’s scheduled to try to
       register the feed about every 10 minutes
    5. In your dashboard, go to WooCommerce > Status > Logs. In the log selector drop-
       down, copy the contents of the _most recent_ logs that start with **both** `
       pinterest-for-woocommerce` and `interest-for-woocommerce-product-sync`.
 * Once we have the information from the logs, we can give you better guidance on
   next steps from here.
 *  [brittasully](https://wordpress.org/support/users/brittasully/)
 * (@brittasully)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/#post-15584809)
 * Was this ever resolved? I’m getting exactly the same error on both of my websites.
 *  Thread Starter [Raquel](https://wordpress.org/support/users/keuls/)
 * (@keuls)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/#post-15587617)
 * I’ve ended up moving to Shopify, it was just too much for me to handle all plugin
   incompatibilities in WordPress.
 *  Plugin Support [Christian](https://wordpress.org/support/users/christian1983/)
 * (@christian1983)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/#post-15597319)
 * Hey there,
 * the fix of this thread should be released soon.
 * This thread will be closed. For new issues please open a new thread
 * Best,
    Christian
 *  [biba1403](https://wordpress.org/support/users/biba1403/)
 * (@biba1403)
 * [4 years ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/#post-15664923)
 * Any news on this ? I am still getting the same error
 *  [Jeremy Pry](https://wordpress.org/support/users/jpry/)
 * (@jpry)
 * [4 years ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/#post-15664968)
 * [@biba1403](https://wordpress.org/support/users/biba1403/) Please upgrade to 
   the latest version of the plugin: `1.0.12`
 *  [biba1403](https://wordpress.org/support/users/biba1403/)
 * (@biba1403)
 * [4 years ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/#post-15664998)
 * Done, I ll keep an eye on it. Thanks

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

The topic ‘Uncaught Error: Call to undefined method Exception::get_pinterest_code()’
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/)

 * 7 replies
 * 5 participants
 * Last reply from: [biba1403](https://wordpress.org/support/users/biba1403/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-method-exceptionget_pinterest_code/#post-15664998)
 * Status: resolved