• Resolved NewClarity

    (@newclarity)


    Your plugin throws the following error when WP_DEBUG is set to true:

    Notice: Undefined variable: engine in /Users/mikeschinkel/Sites/wp34/public_html/wp-content/plugins/swiftype-search/class-swiftype-plugin.php on line 219

    If you add the following line right after public function check_engine_initialized() it’ll keep an error from being thrown:

    $engine = false;

    Hope this helps.

    https://www.ads-software.com/extend/plugins/swiftype-search/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter NewClarity

    (@newclarity)

    Oops, it appears there are more:

    Notice: Undefined variable: reponse_code in /Users/mikeschinkel/Sites/wp34/public_html/wp-content/plugins/swiftype-search/class-swiftype-client.php on line 267 Notice: Undefined variable: document_type in /Users/mikeschinkel/Sites/wp34/public_html/wp-content/plugins/swiftype-search/class-swiftype-plugin.php on line 227

    Suggestion: Add the following line at the top of your /wp-config.php file for the sites which you are using to develop and test this plugin (doing so is pretty much a best-practice for plugin development on WordPress):

    define('WP_DEBUG', true );

    Plugin Author matthewtyriley

    (@matthewtyriley)

    Thanks for the suggestion. I just pushed a fix for the issue you mention and fixed a couple of other small things that Debug uncovered.

    Plugin Author matthewtyriley

    (@matthewtyriley)

    Resolving this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Swiftype Search] Undefined variables with WP_DEBUG set’ is closed to new replies.