Forum

Thread tagged as: Problem, Configuration, Hosting

Scheduled tasks not running

Hi guys, I'm still trying to get Cron jobs to run on our site, and while a test job will run (sending email every minute), and I can run scheduled tasks from the link in Perch settings. The Scheduled tasks don't seem to update automatically.

We're trying to have the Twitter app update every-so-often.

Would you guys have any clues as to what I might not be doing? (Diagnostic report below)

Diagnostics report
HEALTH CHECK

Perch is up to date
PHP 5.5.20 is up to date
MySQL 5.1.73-log is up to date
Image processing available
SUMMARY INFORMATION

Perch: 2.7.9, PHP: 5.5.20, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.7.9), assets (2.7.9), categories (2.7.9), perch_cm (1), perch_forms (1.8.2), perch_gallery (2.8.5), perch_backup (1.2), perch_twitter (3.5.1), perch_upgrade (1.4)
App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_forms/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_twitter/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_categories/runtime.php'); ?>
PERCH_LOGINPATH: /hulk
PERCH_PATH: /homepages/29/d444027171/htdocs/2015/hulk
PERCH_CORE: /homepages/29/d444027171/htdocs/2015/hulk/core
PERCH_RESFILEPATH: /homepages/29/d444027171/htdocs/2015/hulk/resources
Image manipulation: GD
PHP limits: Max upload 40M, Max POST 8M, Memory: 120M, Total max file upload: 8M
Resource folder writeable: Yes
HTTP_HOST: www.scottishdentalshow.co.uk
DOCUMENT_ROOT: /kunden/homepages/29/d444027171/htdocs/2015
REQUEST_URI: /hulk/core/settings/diagnostics/
SCRIPT_NAME: /hulk/core/settings/diagnostics/index.php
Paul McGinnity

Paul McGinnity 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you checked your error logs?

Hi Drew,

Sorry about the delay, I had issues with the error log. The error we're getting is…

[28-Jan-2015 09:15:05] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'DIR/../runtime/runtime.php' (include_path='.:/usr/lib/php') in /homepages/29/d444027171/htdocs/2015/hulk/core/scheduled/run.php on line 2

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Is PHP at the commandline also running greater than 5.3? I've seen setups where the version of PHP is set via cPanel so the site is running one version and the cron jobs another.

Might be a question for your host. Or if you can log in via SSH try:

php -v

To see which version is running.

Done that, looks like it's running 4.4.9! I'll get back on to the host.

Thanks guys, we're now running scheduled tasks!