Title: Parse error when running wp-cron.php from crontab
Last modified: August 22, 2016

---

# Parse error when running wp-cron.php from crontab

 *  Resolved [Gone Fishin](https://wordpress.org/support/users/terryg-1/)
 * (@terryg-1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-when-running-wp-cronphp-from-crontab/)
 * Just FYI:
 * The output of a server-side cronjob calling wp-cron.php via local path was:
 * > Parse error: syntax error, unexpected ‘<‘ in /home/u388807678/public_html/wp-
   > content/plugins/wp-crontrol/wp-crontrol.php(62) : eval()’d code on line 1
   > The plugin is at the latest version.
 * [https://wordpress.org/plugins/wp-crontrol/](https://wordpress.org/plugins/wp-crontrol/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-when-running-wp-cronphp-from-crontab/#post-5292870)
 * Sounds like you have a PHP cron job present which contains invalid PHP code. 
   Can you check your PHP cron jobs?
 *  Thread Starter [Gone Fishin](https://wordpress.org/support/users/terryg-1/)
 * (@terryg-1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-when-running-wp-cronphp-from-crontab/#post-5292930)
 * My original thought, that started this thread, was that is was cp-crontrol.php
   causing the error, because it stopped when I deactivated WP Crontrol.
 * Now I think it may have been a dummy PHP cron I created with WP Crontrol while
   debugging a non-working wp-cron.php. I had set it to run once, and it is gone
   now — along with the error. (Do they need to be encapsulated with “<?php ?>”?)
 * So… I think this was a **false alarm**.
 * BTW, WP Crontrol helped me immensely in determining whether or not wp-cron had
   run. Good support response time too. Rated 5 stars 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Parse error when running wp-cron.php from crontab’ is closed to new replies.

 * ![](https://ps.w.org/wp-crontrol/assets/icon.svg?rev=3539529)
 * [WP Crontrol](https://wordpress.org/plugins/wp-crontrol/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-crontrol/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-crontrol/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-crontrol/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-crontrol/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-crontrol/reviews/)

## Tags

 * [crontab](https://wordpress.org/support/topic-tag/crontab/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [wp-cron.php](https://wordpress.org/support/topic-tag/wp-cron-php/)

 * 2 replies
 * 2 participants
 * Last reply from: [Gone Fishin](https://wordpress.org/support/users/terryg-1/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-when-running-wp-cronphp-from-crontab/#post-5292930)
 * Status: resolved