Title: error on php cli mode
Last modified: December 12, 2017

---

# error on php cli mode

 *  [harukochi](https://wordpress.org/support/users/harukochi/)
 * (@harukochi)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/error-on-php-cli-mode/)
 * Hi,
    In PHP CLI mode I received the following error.
 * Warning: strpos(): Empty needle in /home/****/wp-content/plugins/better-amp/includes/
   functions/core-functions.php on line 671
 * $_SERVER[‘SCRIPT_FILENAME’] is empty in CLI mode,
    so please work even if it 
   is empty.
 * Regards,

The topic ‘error on php cli mode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/better-amp_635660.svg)
 * [Better AMP - WordPress Complete AMP](https://wordpress.org/plugins/better-amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-amp/)
 * [Active Topics](https://wordpress.org/support/plugin/better-amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-amp/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [harukochi](https://wordpress.org/support/users/harukochi/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/error-on-php-cli-mode/)
 * Status: not resolved