Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2006 at 21:42 UTC
Updated:
29 Dec 2006 at 17:06 UTC
I installed today's version 4.7 of cck.
when i make a view and go to the url i get
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home /public_html /includes/database.mysql.inc on line 349.
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home /public_html /includes/database.mysql.inc on line 349.
after i pick a value and hit submit, the error does not seem to return on subsequent visits to the same view. this is for an exposed filter.
Comments
Comment #1
mwu commentedwhen I added an exposed filter,
I got the errors above plus
warning: (blah)
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 ''')' at line 1 query: SELECT count(node.nid) FROM node node LEFT JOIN node_data_field_location node_data_field_location ON node.vid = node_data_field_location.vid LEFT JOIN node_content_photo3_listing node_data_field_photo1 ON node.vid = node_data_field_photo1.vid LEFT JOIN node_content_photo3_listing node_data_field_photo2_name ON node.vid = node_data_field_photo2_name.vid WHERE (node_data_field_location.field_location_value OR '') AND (. '') in /home/public_html/includes/database.mysql.inc on line 120.
warning: (blah)
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 ''') ORDER BY node_data_field_photo2_name.field_photo2_name_value ASC LIMIT ' at line 1 query: SELECT node.nid, node.title AS node_title, node.changed AS node_changed, node_data_field_photo2_name.field_photo2_name_value AS node_data_field_photo2_name_field_photo2_name_value, node_data_field_location.field_location_value AS node_data_field_location_field_location_value, node_data_field_photo1.field_photo1_value AS node_data_field_photo1_field_photo1_value, node.changed AS node_changed FROM node node LEFT JOIN node_data_field_location node_data_field_location ON node.vid = node_data_field_location.vid LEFT JOIN node_content_photo3_listing node_data_field_photo1 ON node.vid = node_data_field_photo1.vid LEFT JOIN node_content_photo3_listing node_data_field_photo2_name ON node.vid = node_data_field_photo2_name.vid WHERE (node_data_field_locatio in /home/public_html/includes/database.mysql.inc on line 120.
Comment #2
fagoupdate both modules, then clear your cache (submitting your admin/modules page) and try again.
Comment #3
(not verified) commentedComment #4
mwu commentedThis problem occurs on a clean install. so it would not have been caused by the lack of running update.php.
Comment #5
irishsuperfly commentedWas this issue ever really resolved? I've run into these error messages and every search I've done, it seems the threads get closed without a solution. I can disable CCK and Views, delete every node and View associated with them, then recreate my setup and it works without errors. The moment I start adjusting the View settings is when these errors reappear. I have installed the latest releases of both CCK and Views, run update.php, resubmitted the modules page.... I'm using Drupal 4.7.4 with no other add-on modules.