• Resolved Gone Fishin

    (@terryg-1)


    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://ww.wp.xz.cn/plugins/wp-crontrol/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    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

    (@terryg-1)

    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.