I came across this issue today whilst testing out the latest 7.x branh of the subsites module.

I was receiving the error message whilst trying to create a view that contained the subsite a node was associated with.

After looking into the code, i saw a todo item for converting the code to use the Drupal 7 db API. I updated the code which has resolved the problem. I have attached a patch for your review.

Comments

perfectweb’s picture

StatusFileSize
new1.08 KB

I stupidly got the patch back to front, and also forgot to account of pre-fixed db names. Here is an updated patch.

  • gisle committed 50950c0 on 7.x-1.x authored by perfectweb
    Issue #1398106 by perfectweb: Undefined function db_placeholders() error...
gisle’s picture

Issue summary: View changes
Status: Needs review » Closed (duplicate)
Parent issue: » #800880: Subsites: Upgrade to drupal 7 of main module