Fails on Cron & Shows incorrect server time
-
I have Cron enabled from siteground server where my website bhagawadgeeta.com is hosted. The Cron works perfectly fine with other plugins.
Its generating errors with your plugin. Report from siteground.com advanced technical help is enclosed here:
I have tested it prior to replying, if you test it manually you will see that the one without a space generates an error.
Code:bhagawad@sgp48 [~]# /usr/local/php70/bin/php-cli/home/bhagawad/public_html/wp-cron.php
-bash: /usr/local/php70/bin/php-cli/home/bhagawad/public_html/wp-cron.php: Not a directoryIt appears you have a plugin causing issues, when I run the cron manually, it runs no problems but then other times it generates an error.
Code:
bhagawad@sgp48 [~]# /usr/local/php70/bin/php-cli /home/bhagawad/public_html/wp-cron.phpEXPIRED – 1515082408
<div id=”odb-start-buttons” class=”odb-padding-left”>
<p>
<input class=”button odb-normal” type=”button” name=”change_options” value=”Change Settings” onclick=”self.location=’options-general.php?page=odb_settings_page'”>
<input class=”button odb-normal” type=”button” name=”view_log” value=”View Log File” onclick=”window.open(‘https://www.bhagawadgeeta.com/wp-content/plugins/rvg-optimize-database/logs/rvg-optimize-db-log.html’)”>
<input class=”button odb-normal” type=”button” name=”delete_log” value=”Delete Log File” onclick=”self.location=’tools.php?page=rvg-optimize-database&action=delete_log'”><input class=”button-primary button-large” type=”button” name=”start_optimization” value=”Start Optimization” onclick=”self.location=’tools.php?page=rvg-optimize-database&action=run'” class=”odb-bold” />
</p>
</div><!– /odb-start-buttons –>
<script>jQuery(‘#odb-running’).hide();</script>I disabled rvg-optimize-database and it runs without any issues each time:
Code:
bhagawad@sgp48 [~]# /usr/local/php70/bin/php-cli /home/bhagawad/public_html/wp-cron.php
bhagawad@sgp48 [~]# /usr/local/php70/bin/php-cli /home/bhagawad/public_html/wp-cron.php
bhagawad@sgp48 [~]#No output means that it ran successfully, by default the cron will not return anything.
If you require any further assistance don’t hesitate to let us know.
NEXT ISSUE: Time shown on your plugin page is the UTC time and not the server time. Not only that it shows next schedule is 31st December 2017 …. as in time from the past for next schedule.
Can you please audit this and help.
- The topic ‘Fails on Cron & Shows incorrect server time’ is closed to new replies.