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:
- Cron command / url
$this->cron_command = attribute_escape('*/20 * * * * '. $this->getCommand() . ' ' . dirname(__FILE__) . '/cron.php?code=' . get_option('wpo_croncode'));
to:
- 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
-
Guillermo Rauch July 17th, 2008 @ 02:50 PM
- Milestone cleared.
- State changed from new to resolved
- Tag set to blocker, core
Fixed in RC4
-
Ricardo Rauch April 15th, 2010 @ 08:49 AM
- Assigned user changed from Guillermo Rauch to Ricardo Rauch
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.
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.