Error thrown upon submitting a comment. Comments are posted though. I'm using the dev because there was a similar bug in the supported release but comments wouldn't even post with that one.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'get_form_token' was given in /var/www/includes/menu.inc on line 348.
Comments
Comment #1
mstef commentedAlso, when trying to post another comment without reloading the page, it shows nothing but "null" when clicking "Post Comment"
Comment #2
neochief commentedAre you sure that it's related to ajax_comments? I didn't ever heared and experienced such error before. Did you installed some contrib recently?
Comment #3
mstef commentedYes of course it is: warning: array_shift() [function.array-shift]: The argument should be an array in /var/www/sites/all/modules/ajax_comments/ajax_comments.module on line 109. Referencing ajax_comments.module gave it away.
I just disabled and reenabled. Adding single comments seems to work fine. But trying to add more than without reloading the page throws the error above. Also, when trying to add more than one with a page reload, the wysiwyg editor is gone. I'm assuming it's because of the dynamic form creation.
Comment #4
neochief commentedActually, array_shift() errors don't mean anything, it's only way in which some other errors are brearing the posting routine. The real problem somewhere underneath. Sorry, but I'm afraid, you should debug this by yourself, because I can't reproduce it.
Comment #5
mstef commentedThink it could be because of exposed comment controls?
Comment #6
mstef commentedNo that isn't it.
Well it's being quite strange now. Sometimes the new comments show, sometimes they don't. Repeat comments seem to never work. I don't know what else would be causing this to happen.
Comment #7
Babalu commentedsame error here. i'm using hide submit button too
Comment #8
makopolok commentedsame error
Comment #9
mstef commentedMuch better ajax comments with Popups API - http://drupal.org/node/459222
You can also get it to work with comment replys, edits, deletes, etc...
Comment #10
ltwinner commentedim having the same error with - warning: array_shift() [function.array-shift]: The argument should be an array in /var/www/drupal/sites/all/modules/ajax_comments/ajax_comments.module on line 109.
It happens when I try and reply to a comment. If I just make a comment on the node itself there is no problem.
The Popup API is not an option I think, as it is not user friendly to have to comment through popups. It should be a simple process with the comment form on the page imo.
Comment #11
Vinc-2 commentedI've got the same problem that ltwinner described.
Error Message is:
Will try to get some more information, because I really need this module!
Edit: I just noticed that the second error with the CCK module is not showing up when i'm trying to save the comment directly, without preview. The variable $args used on Line 108 is actually empty when I try to reply to a comment. So there has to be an error with the stored form in the cache.
Edit2: I tried out the dev version and it's working for me. There has to be a difference between the two versions concerning the cache.
Comment #12
neochief commented#412368: array_shift error in ajax_comments.module