This happens after an upgrade to D6 if the module is not yet enabled, but the updates are running.

    * user warning: Unknown column 'REQUEST_TIME' in 'field list' query: UPDATE path_redirect SET last_used = REQUEST_TIME in \sites\all\modules\path_redirect\path_redirect.install on line 171.

I believe the constant need to be moved from the path_redirect.module file to the .install file.

if (!defined('REQUEST_TIME')) {
  define('REQUEST_TIME', time());
}

Comments

dave reid’s picture

Wait...why did the update run if the module was disabled? That shouldn't happen...

hass’s picture

This happens since D6... it allows update.php to run updates for disabled modules... this is how D6 works :-). After the constant has been moved to the .install it works...

dave reid’s picture

Status: Active » Fixed

Committed to CVS just using time() rather than loading the module in the install file.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.