This is probably not a bug, but I'm not sure how to fix this.

Access to update.php Protected
CTools CSS Cache Exists
Configuration file Protected
Cron maintenance tasks Never run
Cron has not run. For more information, see the online handbook entry for configuring cron jobs. You can run cron manually.
Database updates Up to date
File system Writable (public download method)
GD library Not installed
The GD library for PHP is missing or outdated. Please check the PHP image documentation for information on how to correct this.
MySQL database 5.0.67
PHP 5.2.6
PHP memory limit 512M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Not enabled
Update notifications are not enabled. It is highly recommended that you enable the update status module from the module administration page in order to stay up-to-date on new releases. For more information please read the Update status handbook page.
Web server Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7l DAV/2 mod_pubcookie/3.3.2b wisc-17 mod_jk/1.2.23 PHP/5.2.6
Zlib library Enabled

I have been trying to run cron manually through admin in drupal but it continually says, Attempting to re-run cron while it is already running.

I deleted cron_semaphore, there was no cron_last as cron had never run before.
Tried to rerun cron many times but to no avail.

I followed the instructions on truncating all my cache_ tables. This also did not stop these errors. After deleting cron_semaphore I gained more errors, and these seemed very strange indeed, it seemed as if scripts were not able to access my php.ini file..? I get the following errors after running cron after deleting cron_semaphore

error php 4 Oct 2009 - 12:45 require_once(./modules/panels/includes/plugins.i ... Anonymous
error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/node/node.pages.inc) [ error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/node/node.pages.inc) [ error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/node/node.pages.inc) [ error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/node/node.admin.inc) [ error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/node/node.admin.inc) [ error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/node/node.admin.inc) [ error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/menu/menu.admin.inc) [ error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/flashnode/flashnode.import. ... Anonymous
error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/filter/filter.pages.inc) ... Anonymous
error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/filter/filter.admin.inc) ... Anonymous
error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/filter/filter.admin.inc) ... Anonymous
error php 4 Oct 2009 - 12:45 include_once() [ error php 4 Oct 2009 - 12:45 include_once(modules/block/block.admin.inc) ... Anonymous

Type php
Date Sunday, October 4, 2009 - 12:45
User Anonymous
Location http://{domain}/cron.php
Referrer
Message include_once(modules/block/block.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /Users/petra/Sites/includes/theme.inc on line 283.
Severity error
Hostname ******
Operations

and after i get the failed to open stream error, i get

Type php
Date Sunday, October 4, 2009 - 12:45
User Anonymous
Location http://{domain}/cron.php
Referrer
Message include_once() [function.include]: Failed opening 'modules/block/block.admin.inc' for inclusion (include_path='.:/Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php') in /Users/petra/Sites/includes/theme.inc on line 283.
Severity error
Hostname ******
Operations

I'm slightly confused as to what this all means, I truncated the watchdog table etc.. basically did everything that the cron documentation said to do if cron was not running properly.

I had installed poormanscron but I had disabled it as it was not helping. I have demo site, devel, and journal running as well as a host of other modules.

Comments

dman’s picture

Message include_once() [function.include]: Failed opening 'modules/block/block.admin.inc' for inclusion (include_path='.:/Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php') in /Users/petra/Sites/includes/theme.inc on line 283.
Which PHP distro are you using? That's not the Apple built-in, or the Entropy bundle. Doesn't look like a hand-rolled version, and I don't know what MAMP looks like but ?

Anyway at the minimum, it does look indeed like something is wrong with the way it's treating its include paths. Which is really strange if Drupal in general is working, but just not cron.php. I can't imagine it's anything to do with permissions unless you are running Suexec ... ?
Any more clues in the PHP eror log? (possibly /var/log/php* )

crandallr’s picture

Hi! hanks for the ideas, I'm using PHP/5.2.6, I'm not sure what it is, I just took over this server a few days ago but I think its included in the generic mac os x server build.

Im not running with cgi, though I am running SSI. I don't believe I'm running Suexec.. but that brings up an interesting question if mac server is restricting my permissions to run cron somewhere else..

First Cron Run

I'm wondering what common.inc does? I looked at line 21 and it calls to something

/**
 * Return status for saving which involved an update to an existing item.
 */
define('SAVED_UPDATED', 2);
[Mon Oct 05 11:02:32 2009] [error] [client 144.92.163.77] PHP Fatal error: Call to a member function getAll() on a non-object in /Users/petra/Sites/includes/common.inc(1655) : eval()'d code on line 21
[Mon Oct 05 11:02:32 2009] [error] [client 144.92.163.77] PHP Fatal error: require_once() [function.require]: Failed opening required './modules/panels/includes/plugins.inc' (include_path='.:/Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php:/Users/petra/Sites/sites/all/modules/activitystream/activitystream_flickr/PEAR') in /Users/petra/Sites/modules/panels/panels.module on line 278

Second Cron Run

[Mon Oct 05 11:14:50 2009] [error] [client 144.92.163.77] PHP Fatal error: Call to a member function getAll() on a non-object in /Users/petra/Sites/includes/common.inc(1655) : eval()'d code on line 21
[Mon Oct 05 11:14:50 2009] [error] [client 144.92.163.77] PHP Fatal error: require_once() [function.require]: Failed opening required './modules/panels/includes/plugins.inc' (include_path='.:/Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php:/Users/petra/Sites/sites/all/modules/activitystream/activitystream_flickr/PEAR') in /Users/petra/Sites/modules/panels/panels.module on line 278

crandallr’s picture

The annoying thing is that the php ini file is located in that directory arghh! I have no clue what is wrong here, the php file is readable, ive increased the max execution time and other vars for php but obviously it dosen't matter if the php file isn't being read. I've taken off allowoverrides and going directly by the server http.conf and so forth but I am still getting the same errors, the include path seems to be correct but its not getting it but other php scripts work just fine, just not cron.

I'm also getting this as well..

Cron run exceeded the time limit and was aborted.

Cron has been running for more than an hour and is most likely stuck.

I have no clue as to where to start to fix this. I'm going to create the php log to look at the errors but I think server admin had already done that.. I'll just make sure but anwyays.

Anyone have a good direction to start in?

crandallr’s picture

this is what php outputs on cron run

Fatal error: Call to a member function getAll() on a non-object in /Users/petra/Sites/includes/common.inc(1655) : eval()'d code on line 21

Fatal error: require_once() [function.require]: Failed opening required './modules/panels/includes/plugins.inc' (include_path='.:/Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php:/Users/petra/Sites/sites/all/modules/activitystream/activitystream_flickr/PEAR') in /Users/petra/Sites/modules/panels/panels.module on line 278

crandallr’s picture

As i understand it drupal_cron_run() is all the cron good stuff
the cron_semaphore and etc is done here

  else {
    // Register shutdown callback
    register_shutdown_function('drupal_cron_cleanup');

    // Lock cron semaphore
    variable_set('cron_semaphore', time());

    // Iterate through the modules calling their cron handlers (if any):
    module_invoke_all('cron');

    // Record cron time
    variable_set('cron_last', time());
    watchdog('cron', 'Cron run completed.', array(), WATCHDOG_NOTICE);

    // Release cron semaphore
    variable_del('cron_semaphore');

    // Return TRUE so other functions can check if it did run successfully
    return TRUE;
  }
}
?>

now cron times out because it is stuck on something and cant include the php.ini file or something with common.inc i have no clue, but after it timeouts it sets semaphore, then iterates through the modules, where a huge amount of errors are caused, all the same in nature that they cant include php. The problem is I can't find out what is causing line 21 of common.inc to return a fatal error, this has to do with

<?php
// $Id: common.inc,v 1.756.2.57 2009/07/01 20:51:55 goba Exp $

/**
 * @file
 * Common functions that many Drupal modules will need to reference.
 *
 * The functions that are critical and need to be available even when serving
 * a cached page are instead located in bootstrap.inc.
 */

/**
 * Return status for saving which involved creating a new item.
 */
define('SAVED_NEW', 1);

/**
 * Return status for saving which involved an update to an existing item.
 */
define('SAVED_UPDATED', 2);

It is hanging up on saved updated?

"Return status for saving which involved an update to an existing item." is the definition of this function, did something go wrong with an update? very confused.. could someone give me a direction to go in..?

crandallr’s picture

I commented out all three lines and line 21 in common.inc and still received the same error...

crandallr’s picture

Status: Active » Closed (fixed)

Found out that someone had inserted a rogue php script trying to access some nonexistent database. Great deal of work for a piece of code not belonging in a node in the first place.