resolved - errors magically dis-appeared!

Glowingtree - November 22, 2007 - 17:46
Project:Views Filter Block
Version:5.x-1.3
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

I added a field to an existing CCK/content type (prayerpost) that already had a view (view A), it was a drop down list field. I created a filter in an additional view (view B) so the following situation exists. If a certain "term" (not sure if related to taxonomy module) is selected in the drop down list of the cck type field, than that piece of content gets sent to view B (a block). However, I did that, and tried selecting the specified term in an existing peice of content, and the original view that contained the cck type mentioned above didnt come up when the URL was selected, just error "user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT IN ('25') OR .tid IS NULL))' at line 1 query: (WHICH WENT ON TO SAY...)

SELECT count( DISTINCT(node.nid)) FROM node node WHERE (node.type IN ('prayerpost')) AND ((.tid NOT IN ('25') OR .tid IS NULL)) in /path/to/me/database/includes/database.mysql.inc on line 172.

I was told by someone on forums (tanoshimi )that it should read something more like this...

SELECT count( DISTINCT(node.nid)) FROM node INNER JOIN term_node ON node.nid = term_node.nid WHERE (node.type IN ('prayerpost')) AND ((term_node.tid NOT IN ('25') OR term_node.tid IS NULL))

so not sure why views module is confused or what caused this, a bug or my own error? Not sure if this related but just before this bit of drupalling the versions of Mysql and PHP changed due to host switch-over.. MySQL version 4.0.16 to 5.0.48 / PHP version 4.3.11. to 5.1.6-3 not sure if that has anything to do with it. i.e. sql syntax.

please help..

#1

Glowingtree - November 22, 2007 - 17:54

and also, is the suggested alternative correct? im not sure if this has anything to do with taxonomy or vocabulary terms.
the "terms" listed in the drop down list field weren't visibly connected to taxonomy module, but correct me if I'm wrong

#2

Glowingtree - November 22, 2007 - 18:12

did a "find and replace" search in database.mysql.inc for supposed problem line supposedly, nothing of the sort exists, im baffled as to the source of this error..

#3

Glowingtree - November 28, 2007 - 17:08
Title:possible bug in Views filter functionality - or mysql version incompatibility? Not sure, no PHP editing was done to cause this » resolved - errors magically dis-appeared!
Priority:normal» minor
Status:active» closed

they left as Mysteriously as they arrived - sometimes drupal just doesnt make any sense

 
 

Drupal is a registered trademark of Dries Buytaert.