It's working with other CCK types, but not one I just added.

I'm getting the following error:

    * warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/includes/database.mysql.inc on line 400.
    * warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/includes/database.mysql.inc on line 400.

an export of my view is attached.

CommentFileSizeAuthor
#1 content.txt4.26 KBhyperlogos
view_2.txt1.08 KBhyperlogos

Comments

hyperlogos’s picture

StatusFileSize
new4.26 KB

and the content type is attached here.

yched’s picture

The mysql_real_escape_string() error is probably caused by your 'node:type' filter having no selected type.

Now, are you saying that the content type you just created does not appear in the 'node:type' list ?
Can you provide the version of cck you're using ?

hyperlogos’s picture

Yes, the content type I just created is not showing up in node:type, but another content type I have created DOES show up (and it works.)

If there is an error produced if you don't give enough arguments to a filter, then that is a sign that the filter needs to validate before producing SQL.

CCK is 5.x-1.3: content 1.90.2.36, content_copy 1.1.2.5, fieldgroup 1.1.4.19, nodereference 1.39.2.12, number 1.34.2.17, optionwidgets 1.10.2.6, text 1.41.2.9, userreference 1.30.2.11 (as per the release manager module.)

merlinofchaos’s picture

If there is an error produced if you don't give enough arguments to a
filter, then that is a sign that the filter needs to validate before
producing SQL.

This is correct. There is an issue about that.

yched’s picture

Project: Views (for Drupal 7) » Content Construction Kit (CCK)
Version: 5.x-1.5 » 5.x-1.3
Component: Code » Views Integration

About the content type not being listed :
Can you reproduce this ? Meaning, if you create another new content type, does it get listed or not ?
How was the content type created ? Through CCK import, or through 'regular' "add content type" tab ?

BTW : in Drupal 5, you can't really talk about CCK-types; content types are handled by core, CCK only deals with fields.

hyperlogos’s picture

Now I am very confused. My content type apparently disappeared from my site somehow. I re-imported it from the same content.txt file added here and everything is working. As I really have no idea WTF is going on I have to give up on this problem. No idea where it came from :(

yched’s picture

Status: Active » Fixed

closing this, then...
Would be interesting to be able to reproduce, though...

yched’s picture

This might be related to http://drupal.org/node/88223

shyamarjarapu’s picture

Did you guys use Organic Groups as well? I am using OG modules in here http://drupal.org/node/88223 and found a way to reproduce.

- Shyam
http://www.vimarsakulu.com

hyperlogos’s picture

I do not use OG.

Anonymous’s picture

Status: Fixed » Closed (fixed)