Hi,
if i create a comment in a article and click on "send", i became this errors:
Notice: Undefined index: format in _syntaxhighlighter_comment_validate() (line 274 of /Library/WebServer/Documents/drupal-7.0/sites/all/modules/syntaxhighlighter/syntaxhighlighter.module).
Notice: Undefined index: in filter_list_format() (line 675 of /Library/WebServer/Documents/drupal-7.0/modules/filter/filter.module).
Warning: Invalid argument supplied for foreach() in filter_list_format() (line 675 of /Library/WebServer/Documents/drupal-7.0/modules/filter/filter.module).
Notice: Undefined index: format in comment_submit() (line 2183 of /Library/WebServer/Documents/drupal-7.0/modules/comment/comment.module).
Status messageYour comment has been queued for review by site administrators and will be published after approval.
This happends with the plain-text-"editor". The comments was saved correctly.
Comments
Comment #1
mattyoung CreditAttribution: mattyoung commentedI cannot replicate the problem. There must be something different that I didn't know about. Can you insert the following in syntaxhighlighter.module, line 273:
the function should look like this afterward:
Submit a comment and post the output in the php log here.
Comment #2
sTaX-1 CreditAttribution: sTaX-1 commentedThis extra code do nothing.
But instead I insert
and this shows me this:
The syntax highlighting filter isn't activated for plaintext...
Another thing is:
If I allow "filtered html" with the ckeditor, than filtered and plain text works without problems.
Sorry for my bad English. German is my native language but I hope you unterstand what I mean.
Comment #3
sTaX-1 CreditAttribution: sTaX-1 commentedIt seems that this is not syntaxhighlighter bug but a comment module bug.
http://drupal.org/node/813052
Comment #4
mattyoung CreditAttribution: mattyoung commentedHm...so you don't have the "format" value on your side. You have this:
But I have this:
Do you have the "Text format" dropdown right below the "Comment" textarea? That's part of the comment form and that is where the "format" value is from.
Comment #5
mattyoung CreditAttribution: mattyoung commented>It seems that this is not syntaxhighlighter bug but a comment module bug.
>http://drupal.org/node/813052
I see. I'll follow that issue and see what to do.
Thanks!
Comment #6
mattyoung CreditAttribution: mattyoung commentedI added code to check for the format key not exist when "Plain text" text processing is turn on. It's checke into HEAD. Can you test the 'dev' version?
Comment #7
sTaX-1 CreditAttribution: sTaX-1 commentedI applied the patch by hand and now all seems to work. Alle errors are gone.
Thanks for your help.
Edit: This patch: http://drupal.org/files/issues/comment_89.patch
Comment #8
mattyoung CreditAttribution: mattyoung commentedComment #9
bryancasler CreditAttribution: bryancasler commentedI was getting a similar notice without this module. The patch in #7 worked to correct it. Where did the patch in #7 come from, is this something that is going to be committed to core?