I grabbed cod_support from cvs and used drush make on the drupal.org make file. The installation is complete, proceed to your new site message also contains the following errors:

* user warning: Unknown column 'users' in 'where clause' query: DELETE FROM path_redirect WHERE users/ezra AND user/1 in /Users/ezra/Developer/htdocs/dev/contrib/cod/sites/all/modules/contrib/path_redirect/path_redirect.module on line 486.
* user warning: Unknown column 'users' in 'where clause' query: SELECT * FROM path_redirect WHERE users/ezra in /Users/ezra/Developer/htdocs/dev/contrib/cod/sites/all/modules/contrib/path_redirect/path_redirect.module on line 391.

CommentFileSizeAuthor
#1 889630-path-redirect-backtrace.txt314.88 KBezra-g

Comments

ezra-g’s picture

Title: Path_redirect errors after cod installation » Path_redirect errors after COD installation
Project: Conference Organizing Distribution » Path redirect
StatusFileSize
new314.88 KB

I can reproduce this bug with a fresh install of the COD install profile/distribution.

The queries here are missing table names and conditions. This seems to be caused by an out of date $schema in _path_redirect_build_conditions().

I forced a schema refresh at the top of _path_redirect_build_conditions() by making the conditional:

  if (TRUE) {
    $schema = drupal_get_schema('path_redirect', TRUE);
  }

and a fresh install worked without errors.

Fwiw, attached is the debug backtrace so you can follow along at home.

Obviously, this isn't a permanent solution but helps demonstrate the problem. Any suggestions on where path_redirect would force the schema to refresh, or alternatively how I could force a refresh in in the COD install profile/distribution?

Thanks!

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

This should be mostly fixed with #849222: Pathauto/Path_redirect problem during profile-based installation where we stop any redirect processing if the MAINTENANCE_MODE constant is defined at all.

Are users being deleted in the install profile? That sounds really, really odd. Or it sounds like Pathauto is creating redirects. What exactly is going on with users in this case?

ezra-g’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Marking this as a duplicate of #849222: Pathauto/Path_redirect problem during profile-based installation. The original patch there resolves the issue for me. Chatting with davereid in IRC about committing that :).