Support for node preview
Paraplegic Racehorse - February 20, 2009 - 02:29
| Project: | Storm |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Am I the only person for whom the create forms load without a save, submit or preview option at the bottom of the form? Any ideas on how to put them there myself?

#1
It seems I solved my own issue. Removing
form.stormcomponent_node_form #edit-previewfromstorm.cssdid the trick. This may have been achievable by editing the content types, but I was logged in as the site-admin (superuser) and still didn't see these buttons.#2
Marked #392610: Save button missing to add new content as a duplicate of this.
#3
I find that if I click the preview button, I get the error
Fatal error: Unsupported operand types in /includes/common.inc on line 1273My thoughts are that it will be good to show the preview button, so this needs sorting out first. As mentioned in other issues, whether the save button shows depends on the require preview configuration setting in Drupal core.
#4
Combining #521972: Storm requires that Preview for content be optional. into this issue...
#5
Braindump for night:
Error message is
Fatal error: Unsupported operand types in /[path]/includes/common.inc on line 1283The error is only triggered on the nodes that contain dates, and the line in
common.incis$timestamp += $timezone;as part offunction format_date.The function
format_dateis called from each storm 'view' theme function for each date item. Format_date is also called from _form functions via_storm_gmtimestamp_to_date. If both of these calls are removed, the error does not occur.#6
The problem is caused by the way that Storm converts dates to and from timestamps and arrays. As a consequence, for some reason an array is being sent on node preview.
I'm getting a bit lost in the realm of timestamps->dates and vice versa. Would anybody care to put a pair of fresh eyes over to see if there is an easy way of solving this? I do wonder why we need all of the conversions too...