#38 ✓resolved
Bart

Wrong crontab command on options page

Reported by Bart | June 28th, 2008 @ 02:50 AM

The displayed command on the options page is wrong:

*/20 * * * * /usr/bin/curl /var/www/example.com/wp-content/plugins/wp-o-matic/cron.php?code=

should be:

*/20 * * * * /usr/bin/curl http://example.com/wp-content/pl...

Fix: change line 164-165 in wpomatic.php from:

  1. Cron command / url

$this->cron_command = attribute_escape('*/20 * * * * '. $this->getCommand() . ' ' . dirname(__FILE__) . '/cron.php?code=' . get_option('wpo_croncode'));

to:

  1. Cron command / url

$this->cron_command = attribute_escape('*/20 * * * * '. $this->getCommand() . ' ' . $this->pluginpath . '/cron.php?code=' . get_option('wpo_croncode'));

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

WP-o-Matic project.

People watching this ticket

Tags

Pages