I have this :

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 c.timestamp, c.cid, c.subject AS comment_title FROM comments c WHERE c.status = 0 AND c.subject LIKE '%%' ORDER BY in /.../modules/commentreference/commentreference.module on line 533.

CommentFileSizeAuthor
#3 485248.patch2.72 KBswentel

Comments

swentel’s picture

So, this is after submitting a new field which is comment reference ?
Did you choose autocomplete or select box ? And did you provide a default value ?

swentel’s picture

Ok, I can reproduce the error when I choose the default_value with an autocomplete widget.
Note, it doesn't happen if you re-edit the field, looking for a solution now.

swentel’s picture

Status: Active » Needs review
StatusFileSize
new2.72 KB

Can you try out the patch attached, should fix the issue. Note, only happens on creation, autocomplete en trying to select a default value.

pixelpreview@gmail.com’s picture

yes i will try the patch, you are right
the warning is only when i create the cck after it disappear definitively

pixelpreview@gmail.com’s picture

thank you the patch it is perfect :-)

It will be fine in the future to have a little admin to modify the display for the comment reference module.
actualy i have modified your theme function because i want all the comment (user name, date, comment and title) with no link on the display.

I use your comment module to pick up a comment and show it in my body like a super comment :-)

thank you for your rapidity :-)

swentel’s picture

Hmm, that's actually a nice feature, can you post that theming function otherwhise, I'll add an extra formatter function to include in the next release!

swentel’s picture

Status: Needs review » Fixed

Fix committed to drupal 6 branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.