Title: cPanel cron problem: $_SERVER[&#039;argv&#039;] undefined
Last modified: August 20, 2016

---

# cPanel cron problem: $_SERVER['argv'] undefined

 *  [Jeff Cohan](https://wordpress.org/support/users/jdcohan/)
 * (@jdcohan)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/cpanel-cron-problem-_serverargv-undefined/)
 * First, let me say that the wp_cron did work for me.
 * But I’m not a newbie to cPanel cron jobs, and I have 4 running on the same domain/
   server on which I tried to activate the EAN cPanel cron job.
 * No luck, after several tries.
 * The diagnostic email I received indicated “500 Internal Server Error”.
 * The error log shows:
    `"Undefined index: argv in ean-schedule-newsletter.php,
   line 4"`
 * Then, as one would expect, line 13 failed: wp-config could not be opened.
 * Even after modifying php.ini to turn ON “register_argc_argv”, the same problem
   occured.
 * It seems that $_SERVER isn’t returning some indices. I’ve had other problems 
   in the past with my own cron-driven scripts when I tried to reference the $_SERVER
   global. And the manual at php.net warns us that this is often the case with CLI
   programs.
 * Any thoughts about a fix for this?
 * TIA,
    Jeff Cohan
 * [http://wordpress.org/extend/plugins/easy-automatic-newsletter/](http://wordpress.org/extend/plugins/easy-automatic-newsletter/)

The topic ‘cPanel cron problem: $_SERVER['argv'] undefined’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-automatic-newsletter.svg)
 * [Easy Automatic Newsletter Lite](https://wordpress.org/plugins/easy-automatic-newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-automatic-newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-automatic-newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-automatic-newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-automatic-newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-automatic-newsletter/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jeff Cohan](https://wordpress.org/support/users/jdcohan/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/cpanel-cron-problem-_serverargv-undefined/)
 * Status: not resolved