Attempted update and log file says (using pgsql):

The following updates returned messages
pathauto module
Update #7005

Failed: PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens: SELECT v.name AS name FROM {variable} v WHERE ( (name ILIKE :db_condition_placeholder_0 ESCAPE '\') OR (name ILIKE :db_condition_placeholder_1 ESCAPE '\') ); Array ( [:db_condition_placeholder_0] => pathauto\_taxonomy\_term\_%pattern [:db_condition_placeholder_1] => pathauto\_forum\_%pattern ) in pathauto_update_7005() (line 159 of ........modules/pathauto/pathauto.install).

Please advise or correct, thank you.

Comments

dave reid’s picture

That is very confusing. There are two parameters, and two placeholder texts. They do match. I didn't have trouble running this update hook (and so has no one else) so I wonder if something is going wrong only on your install.

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)
dave reid’s picture

I also just tested this on my PostgreSQL install of Drupal 7 and the update worked just fine.

threading_signals’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Worked around the issue by installing the dev version, which does not fix it but closing this ticket, since it cannot be reproduced by the maintainer. Thank you anyway.