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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | content.txt | 4.26 KB | hyperlogos |
| view_2.txt | 1.08 KB | hyperlogos |
Comments
Comment #1
hyperlogos commentedand the content type is attached here.
Comment #2
yched commentedThe 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 ?
Comment #3
hyperlogos commentedYes, 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.)
Comment #4
merlinofchaos commentedIf 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.
Comment #5
yched commentedAbout 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.
Comment #6
hyperlogos commentedNow 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 :(
Comment #7
yched commentedclosing this, then...
Would be interesting to be able to reproduce, though...
Comment #8
yched commentedThis might be related to http://drupal.org/node/88223
Comment #9
shyamarjarapu commentedDid 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
Comment #10
hyperlogos commentedI do not use OG.
Comment #11
(not verified) commented