Download & Extend

Undefined function db_placeholders() error in Views_handler_Field_Node_subsites.inc

Project:Subsites
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:perfectweb
Status:needs review

Issue Summary

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.

AttachmentSize
ViewsHandlerField.patch1.08 KB

Comments

#1

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

AttachmentSize
ViewsHandlerField.patch 1.08 KB
nobody click here