Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Save and Preview only works once

Zack Sheppard's Avatar

Zack Sheppard

16 Jul, 2015 05:19 PM

Hi all,

I'm having an issue where the Save and Preview feature only works one time. After I use the button once, more changes are reflected until I Publish. I also tried using the Share preview link in a new Incognito window but had the same result.

EE v2.10.1
Better Workflow 1.6.4.2

I'll also attach a list of my other extensions. Thanks!

  1. 1 Posted by Zack Sheppard on 16 Jul, 2015 05:27 PM

    Zack Sheppard's Avatar

    Sorry, one other problem I just noticed. Changes to Assets in Grid fields aren't showing in preview. Is that a common issue?

  2. Support Staff 2 Posted by Malcolm Elswort... on 17 Jul, 2015 09:34 AM

    Malcolm Elsworth's Avatar

    Hi Zack,

    I'm sorry you are having problems using Better Workflow.

    On this first issue, are you getting any JavaScript errors? Please enable logging in BWF setting and open your console.

    As for the second point, I'm afraid the Grid fieldtype is not supported by BWF.

    Best wishes,
    Malcolm

  3. 3 Posted by Zack Sheppard on 17 Jul, 2015 04:20 PM

    Zack Sheppard's Avatar

    Hi Malcom,

    Thanks for the info on the Grid. Good to know!

    For the preview problem. I enabled JS logging. No errors but here are the logs

    1) Edit title and description field
    2) Click Save and Preview. Changes are showing. Below is the resulting JS logging

    XHR finished loading: GET "http://bkm.dev/admin.php?/cp/content_publish/entry_form&channel_id=12&entry…9be8796a2e29ab3e2&ajax_structure_get_entry_url&channel_id=12&entry_id=1971".H.support.ajax.H.ajaxTransport.send @ jquery.js?v=1428937856:24H.extend.ajax @ jquery.js?v=1428937856:24H.each.H.(anonymous function) @ jquery.js?v=1428937856:23H.extend.getJSON @ jquery.js?v=1428937856:23PreviewBox._cmpStructure @ preview.js?1.6.4.2:552PreviewBox._openPreviewWindow @ preview.js?1.6.4.2:298(anonymous function) @ preview.js?1.6.4.2:530H.event.dispatch @ jquery.js?v=1428937856:17H.event.add.a.handle.s @ jquery.js?v=1428937856:16
    better-workflow.js?1.6.4.2:44 Better Workflow: isNewEntry: 'false'
    better-workflow.js?1.6.4.2:44 Better Workflow: ajaxSave callback method called on: 'bwf_epEditor_0'
    better-workflow.js?1.6.4.2:44 Better Workflow: ajaxSave callback method called on: 'bwf_wygwam_1'
    better-workflow.js?1.6.4.2:44 Better Workflow: ajaxSave callback method called on: 'bwf_eeRTR_2'
    better-workflow.js?1.6.4.2:44 Better Workflow: EE RTE based field col_id_68 processed pre ajax save
    better-workflow.js?1.6.4.2:44 Better Workflow: EE RTE based field col_id_72 processed pre ajax save
    better-workflow.js?1.6.4.2:44 Better Workflow: EE RTE based field field_id_81 processed pre ajax save
    better-workflow.js?1.6.4.2:44 Better Workflow: EE RTE based field field_id_75 processed pre ajax save
    better-workflow.js?1.6.4.2:44 Better Workflow: form data posted to server using jQuery ajax
    jquery.js?v=1428937856:24 XHR finished loading: POST "http://bkm.dev/admin.php?/cp/content_publish/entry_form&channel_id=12&entry…ntzOjEwOiJjaGFubmVsX2lkIjtzOjI6IjEyIjt9&S=16bf113b24383459be8796a2e29ab3e2".H.support.ajax.H.ajaxTransport.send @ jquery.js?v=1428937856:24H.extend.ajax @ jquery.js?v=1428937856:24PreviewBox._saveEntryForPreview @ preview.js?1.6.4.2:150(anonymous function) @ preview.js?1.6.4.2:303(anonymous function) @ preview.js?1.6.4.2:553H.Callbacks.d @ jquery.js?v=1428937856:16H.Callbacks.p.fireWith @ jquery.js?v=1428937856:16r @ jquery.js?v=1428937856:24H.support.ajax.H.ajaxTransport.send.r @ jquery.js?v=1428937856:24
    better-workflow.js?1.6.4.2:44 Better Workflow: success method called within jQuery ajax
    better-workflow.js?1.6.4.2:44 Better Workflow: response received from ajax: {"response":"ok"}
    better-workflow.js?1.6.4.2:44 Better Workflow: response received from ajax passed _isValidJSON test
    better-workflow.js?1.6.4.2:44 Better Workflow: Parsed preview template: '/Education/page/1971'
    better-workflow.js?1.6.4.2:44 Better Workflow: Parsed buttonValue: '/Education/page/1971?bwf_dp=t&bwf_entry_id=1971'
    jquery.js?v=1428937856:24 XHR finished loading: GET "http://bkm.dev/admin.php?/cp/content_publish/entry_form&channel_id=12&entry…=16bf113b24383459be8796a2e29ab3e2&ajax_set_auth_token=y&rand=1437149525893".H.support.ajax.H.ajaxTransport.send @ jquery.js?v=1428937856:24H.extend.ajax @ jquery.js?v=1428937856:24H.each.H.(anonymous function) @ jquery.js?v=1428937856:23H.extend.getJSON @ jquery.js?v=1428937856:23PreviewBox._setAuthToken @ preview.js?1.6.4.2:323PreviewBox._appendIframe @ preview.js?1.6.4.2:246(anonymous function) @ preview.js?1.6.4.2:304PreviewBox._saveEntryForPreview.$.ajax.success @ preview.js?1.6.4.2:180H.Callbacks.d @ jquery.js?v=1428937856:16H.Callbacks.p.fireWith @ jquery.js?v=1428937856:16r @ jquery.js?v=1428937856:24H.support.ajax.H.ajaxTransport.send.r @ jquery.js?v=1428937856:24
    better-workflow.js?1.6.4.2:44 Better Workflow: append external preview URL controls to preview modal
    

    3) Close Preview with the [X] Logs show:

    XHR finished loading: POST "http://bkm.dev/admin.php?S=16bf113b24383459be8796a2e29ab3e2&D=cp&C=content_publish&M=autosave".H.support.ajax.H.ajaxTransport.send @ jquery.js?v=1428937856:24H.extend.ajax @ jquery.js?v=1428937856:24e @ admin.php?S=16bf113b24383459be8796a2e29ab3e2&D=cp&C=javascript&M=combo_load&ui=datepicker,resizable…:196
    jquery.js?v=1428937856:24 XHR finished loading: GET "http://bkm.dev/admin.php?/cp/content_publish/entry_form&channel_id=12&entry…ntzOjEwOiJjaGFubmVsX2lkIjtzOjI6IjEyIjt9&S=16bf113b24383459be8796a2e29ab3e2".H.support.ajax.H.ajaxTransport.send @ jquery.js?v=1428937856:24H.extend.ajax @ jquery.js?v=1428937856:24PreviewBox._getUpdatedPublishHTML @ preview.js?1.6.4.2:385PreviewBox._previewDialogClose @ preview.js?1.6.4.2:369PreviewBox._appendPreviewDialog.$.dialog.close @ preview.js?1.6.4.2:59t.Widget._trigger @ admin.php?S=16bf113b24383459be8796a2e29ab3e2&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,po…:21i.widget.close @ admin.php?/cp/content_publish/entry_form&channel_id=12&entry_id=1971&&filter=YToxOntzOjEwOiJjaGFubm…:1742(anonymous function) @ admin.php?/cp/content_publish/entry_form&channel_id=12&entry_id=1971&&filter=YToxOntzOjEwOiJjaGFubm…:1742H.event.dispatch @ jquery.js?v=1428937856:17H.event.add.a.handle.s @ jquery.js?v=1428937856:16
    better-workflow.js?1.6.4.2:44 Better Workflow: _updatePublishView() method called in preview.js
    better-workflow.js?1.6.4.2:44 Better Workflow: BWF Draft exists for this entry: 'true'
    better-workflow.js?1.6.4.2:44 Better Workflow: Button group found for current entry state: 'open|draft'
    better-workflow.js?1.6.4.2:44 Better Workflow: 'Publish' button added to control bar
    better-workflow.js?1.6.4.2:44 Better Workflow: 'Save and close' button added to control bar
    better-workflow.js?1.6.4.2:44 Better Workflow: 'Discard draft' button added to control bar
    

    4) make another change to Title and description. "Save and Preview" again. second changes are not showing

    XHR finished loading: GET "http://bkm.dev/admin.php?/cp/content_publish/entry_form&channel_id=12&entry…9be8796a2e29ab3e2&ajax_structure_get_entry_url&channel_id=12&entry_id=1971".H.support.ajax.H.ajaxTransport.send @ jquery.js?v=1428937856:24H.extend.ajax @ jquery.js?v=1428937856:24H.each.H.(anonymous function) @ jquery.js?v=1428937856:23H.extend.getJSON @ jquery.js?v=1428937856:23PreviewBox._cmpStructure @ preview.js?1.6.4.2:552PreviewBox._openPreviewWindow @ preview.js?1.6.4.2:298(anonymous function) @ preview.js?1.6.4.2:530H.event.dispatch @ jquery.js?v=1428937856:17H.event.add.a.handle.s @ jquery.js?v=1428937856:16
    better-workflow.js?1.6.4.2:44 Better Workflow: isNewEntry: 'false'
    better-workflow.js?1.6.4.2:44 Better Workflow: ajaxSave callback method called on: 'bwf_epEditor_0'
    better-workflow.js?1.6.4.2:44 Better Workflow: ajaxSave callback method called on: 'bwf_wygwam_1'
    better-workflow.js?1.6.4.2:44 Better Workflow: ajaxSave callback method called on: 'bwf_eeRTR_2'
    better-workflow.js?1.6.4.2:44 Better Workflow: EE RTE based field col_id_68 processed pre ajax save
    better-workflow.js?1.6.4.2:44 Better Workflow: EE RTE based field col_id_72 processed pre ajax save
    better-workflow.js?1.6.4.2:44 Better Workflow: EE RTE based field field_id_81 processed pre ajax save
    better-workflow.js?1.6.4.2:44 Better Workflow: EE RTE based field field_id_75 processed pre ajax save
    better-workflow.js?1.6.4.2:44 Better Workflow: form data posted to server using jQuery ajax
    jquery.js?v=1428937856:24 XHR finished loading: POST "http://bkm.dev/admin.php?/cp/content_publish/entry_form&channel_id=12&entry…ntzOjEwOiJjaGFubmVsX2lkIjtzOjI6IjEyIjt9&S=16bf113b24383459be8796a2e29ab3e2".H.support.ajax.H.ajaxTransport.send @ jquery.js?v=1428937856:24H.extend.ajax @ jquery.js?v=1428937856:24PreviewBox._saveEntryForPreview @ preview.js?1.6.4.2:150(anonymous function) @ preview.js?1.6.4.2:303(anonymous function) @ preview.js?1.6.4.2:553H.Callbacks.d @ jquery.js?v=1428937856:16H.Callbacks.p.fireWith @ jquery.js?v=1428937856:16r @ jquery.js?v=1428937856:24H.support.ajax.H.ajaxTransport.send.r @ jquery.js?v=1428937856:24
    better-workflow.js?1.6.4.2:44 Better Workflow: success method called within jQuery ajax
    better-workflow.js?1.6.4.2:44 Better Workflow: response received from ajax: {"response":"ok"}
    better-workflow.js?1.6.4.2:44 Better Workflow: response received from ajax passed _isValidJSON test
    better-workflow.js?1.6.4.2:44 Better Workflow: Parsed preview template: '/Education/page/1971'
    better-workflow.js?1.6.4.2:44 Better Workflow: Parsed buttonValue: '/Education/page/1971?bwf_dp=t&bwf_entry_id=1971'
    jquery.js?v=1428937856:24 XHR finished loading: GET "http://bkm.dev/admin.php?/cp/content_publish/entry_form&channel_id=12&entry…=16bf113b24383459be8796a2e29ab3e2&ajax_set_auth_token=y&rand=1437149641516".H.support.ajax.H.ajaxTransport.send @ jquery.js?v=1428937856:24H.extend.ajax @ jquery.js?v=1428937856:24H.each.H.(anonymous function) @ jquery.js?v=1428937856:23H.extend.getJSON @ jquery.js?v=1428937856:23PreviewBox._setAuthToken @ preview.js?1.6.4.2:323PreviewBox._appendIframe @ preview.js?1.6.4.2:246(anonymous function) @ preview.js?1.6.4.2:304PreviewBox._saveEntryForPreview.$.ajax.success @ preview.js?1.6.4.2:180H.Callbacks.d @ jquery.js?v=1428937856:16H.Callbacks.p.fireWith @ jquery.js?v=1428937856:16r @ jquery.js?v=1428937856:24H.support.ajax.H.ajaxTransport.send.r @ jquery.js?v=1428937856:24
    better-workflow.js?1.6.4.2:44 Better Workflow: append external preview URL controls to preview modal
    
  4. 4 Posted by Zack Sheppard on 20 Jul, 2015 03:15 PM

    Zack Sheppard's Avatar

    Any update on this?

    Thanks!

  5. Support Staff 5 Posted by Malcolm Elswort... on 20 Jul, 2015 03:34 PM

    Malcolm Elsworth's Avatar

    Hi Zack,

    The Console output is what we could expect - so we can't diagnose the issue from here.

    Are you able to give us CP access so we can see this for ourselves? If so please email credentials to malcolm AT electricputty DOT co DOT uk

    Thanks,
    Malcolm

  6. 6 Posted by Zack Sheppard on 21 Jul, 2015 08:20 PM

    Zack Sheppard's Avatar

    HI Malcom,

    We'd rather not give access and more importantly since we use Grid so extensively that might be a roadblock for us on using Better Workflow. Thanks for your time. If we continue down this road I'll let you know.

    ~Z

  7. Support Staff 7 Posted by Malcolm Elswort... on 22 Jul, 2015 01:32 PM

    Malcolm Elsworth's Avatar

    Thanks for the update, Zack.

    I'm sorry we are not able to offer Grid compatibility. We are working on an EE3 compatible version and hope that Grid support will be included in this.

    I'll close this ticket for now but do re-open if you need any further help.

    Best wishes,
    Malcolm

  8. Malcolm Elsworth closed this discussion on 22 Jul, 2015 01:32 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac