Fix Gravity Forms & Magento 2 WordPress Integration confliction

This is a very uncommon issue, the WordPress site has the plugin Magento 2 WordPress Integration. It checks the class name exists or not in Magento 2 Autoloader. But the code seems doesn’t work very well. Also, the logging code of Gravity FormsĀ plugin is very bad, there is no way to totally disable its logging function and force it to stop to load KLogger class.

So there is only a temporary fix before they do refactor their logging code or someone finds out a better way. Just need to modify the file wp-content/plugins/gravityforms/common.php and add return to the head of 3 functions:

  1. log_error
  2. log_debug
  3. log_remote_response



Leave a Reply

Notify of