Posted by marcus178 on October 26, 2009 at 11:50am
Jump to:
| Project: | AJAX Comments |
| Version: | 6.x-1.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
If I have the following setting for comments:
Form below comments and optional preview
I get this error
warning: array_shift() [function.array-shift]: The argument should be an array in /sites/all/modules/ajax_comments/ajax_comments.module on line 119.
If I make preview required this error does not occur, but the Save and Preview button are not displayed properly
<span class="button-wrapper">
<span class="button">
<span>
<input id="ajax-comments-preview" class="form-submit ahah-processed" type="submit" value="Preview" name="op"/>
<input id="ajax-comments-submit" class="form-submit ahah-processed" type="submit" value="Save" name="op"/>
</span>
</span>
</span>when it should be
<span class="button-wrapper">
<span class="button">
<span>
<input id="ajax-comments-preview" class="form-submit ahah-processed" type="submit" value="Preview" name="op"/>
</span>
</span>
</span>
<span class="button-wrapper">
<span class="button">
<span>
<input id="ajax-comments-submit" class="form-submit ahah-processed" type="submit" value="Save" name="op"/>
</span>
</span>
</span>
Comments
#1
Duplicate of #412368: array_shift error in ajax_comments.module.