• Hi there,
    the plugin triggers some annoying PHP notices when executing WP CLI commands, due to some variables not being set in command-line request:

    
    Notice: Undefined index: SERVER_PORT in [...]/wp-content/plugins/ajax-search-lite/includes/functions/functions.php on line 570
    Notice: Undefined index: SERVER_NAME in [...]/wp-content/plugins/ajax-search-lite/includes/functions/functions.php on line 571
    Notice: Undefined index: SERVER_PORT in [...]/wp-content/plugins/ajax-search-lite/includes/functions/functions.php on line 571
    

    This can be easily fixed by using isset(...) before trying to access the $_SERVER array elements. I hope you can fix this. I’d be glad to provide a pull request if you have a public Git repo.

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Thank you, I will make sure to correct this for the upcoming release.

    Best,
    Ernest M.

Viewing 1 replies (of 1 total)
  • The topic ‘Issues with WP CLI’ is closed to new replies.