Title: Fatal Error after update
Last modified: August 31, 2016

---

# Fatal Error after update

 *  Resolved [KineticPulse](https://wordpress.org/support/users/kineticpulse/)
 * (@kineticpulse)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-after-update-47/)
 * Hi
 * Since updating to the latest version of this plugin I get the ‘white screen of
   death’ with this error in the log:
 * PHP Fatal error: Call to undefined method WC_AJAX::get_endpoint() in /[…]/wp-
   content/plugins/yith-woocommerce-compare/includes/class.yith-woocompare-frontend.
   php on line 130
 * Any ideas?
 * WC 2.3.8
 * [https://wordpress.org/plugins/yith-woocommerce-compare/](https://wordpress.org/plugins/yith-woocommerce-compare/)

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

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-after-update-47/#post-7032703)
 * hi,
    the problem is related with your WooCommerce version. The best solution 
   is to update woocommerce at least to version 2.4.0, otherwise you can try to 
   change this code WC_AJAX::get_endpoint() on class.yith-woocompare-frontend.php
   on line 130 with this WC()->ajax_url()
 * Let me know if it works.
    Regards.
 *  Thread Starter [KineticPulse](https://wordpress.org/support/users/kineticpulse/)
 * (@kineticpulse)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-after-update-47/#post-7032704)
 * Thanks – since I posted the issue I have rebuilt the site and updated to WC2.5
   which, as you say, fixes the issue
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-after-update-47/#post-7032738)
 * Hi,
    good news. Regards.
 *  [joncampbell](https://wordpress.org/support/users/joncampbell/)
 * (@joncampbell)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-after-update-47/#post-7032751)
 * You should make it so the plugin disables itself if the woo version is not compatible
   with the plugin, that way sites don’t end up breaking if they use your plugin
   with an old version of woo.

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

The topic ‘Fatal Error after update’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-compare/assets/icon.svg?rev=3042935)
 * [YITH WooCommerce Compare](https://wordpress.org/plugins/yith-woocommerce-compare/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-compare/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-compare/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-compare/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-compare/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-compare/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [joncampbell](https://wordpress.org/support/users/joncampbell/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-after-update-47/#post-7032751)
 * Status: resolved