I cannot save any layouts for reuse in this environment. When I click the "Reuse Layout" I am prompted with a modal window that is titled "Save this layout for reuse" it has fields for administrative title and Machine name. When I fill out this form and click the "Save" button an ajax post is made to this url:

http://www.mydomain.com/panels/ajax/editor/layout/52/reuse

The request is POST with the following parameters, it responds with a 200:

admin_description	side bar for dash board
admin_title	sidebar_for_dashboard
ajax_html_ids[]	skip-link
ajax_html_ids[]	overlay-disable-message
ajax_html_ids[]	overlay-profile-link
ajax_html_ids[]	overlay-dismiss-message
ajax_html_ids[]	toolbar
ajax_html_ids[]	toolbar-home
ajax_html_ids[]	toolbar-user
ajax_html_ids[]	toolbar-menu
ajax_html_ids[]	toolbar-link-admin-dashboard
ajax_html_ids[]	toolbar-link-admin-content
ajax_html_ids[]	toolbar-link-admin-structure
ajax_html_ids[]	toolbar-link-admin-appearance
ajax_html_ids[]	toolbar-link-admin-people
ajax_html_ids[]	toolbar-link-admin-modules
ajax_html_ids[]	toolbar-link-admin-config
ajax_html_ids[]	toolbar-link-admin-reports
ajax_html_ids[]	toolbar-link-admin-help
ajax_html_ids[]	edit-shortcuts
ajax_html_ids[]	page-wrapper
ajax_html_ids[]	page
ajax_html_ids[]	header
ajax_html_ids[]	name-and-slogan
ajax_html_ids[]	site-name
ajax_html_ids[]	main-menu
ajax_html_ids[]	main-menu-links
ajax_html_ids[]	secondary-menu
ajax_html_ids[]	secondary-menu-links
ajax_html_ids[]	main-wrapper
ajax_html_ids[]	main
ajax_html_ids[]	content
ajax_html_ids[]	main-content
ajax_html_ids[]	page-title
ajax_html_ids[]	block-system-main
ajax_html_ids[]	panels-edit-display-form
ajax_html_ids[]	panels-dnd-main
ajax_html_ids[]	panels-flexible-toggle-layout
ajax_html_ids[]	panels-flexible-reuse-layout
ajax_html_ids[]	ctools-dropdown-9
ajax_html_ids[]	ctools-dropdown-8
ajax_html_ids[]	ctools-dropdown-7
ajax_html_ids[]	ctools-dropdown-5
ajax_html_ids[]	panel-pane-sidebar
ajax_html_ids[]	ctools-dropdown-4
ajax_html_ids[]	panel-pane-21
ajax_html_ids[]	ctools-dropdown-2
ajax_html_ids[]	pane-delete-panel-pane-21
ajax_html_ids[]	ctools-dropdown-6
ajax_html_ids[]	panel-pane-center
ajax_html_ids[]	ctools-dropdown-3
ajax_html_ids[]	panels-dnd-save
ajax_html_ids[]	edit-cancel
ajax_html_ids[]	panels-live-preview
ajax_html_ids[]	panels-live-preview-button
ajax_html_ids[]	footer-wrapper
ajax_html_ids[]	footer
ajax_html_ids[]	block-system-powered-by
ajax_html_ids[]	webSocketContainer
ajax_html_ids[]	webSocketFlash
ajax_html_ids[]	modalBackdrop
ajax_html_ids[]	modalContent
ajax_html_ids[]	modal-title
ajax_html_ids[]	modal-content
ajax_html_ids[]	panels-flexible-reuse-form
ajax_html_ids[]	edit-admin-title
ajax_html_ids[]	edit-name
ajax_html_ids[]	edit-category
ajax_html_ids[]	edit-admin-description
ajax_html_ids[]	edit-keep
ajax_html_ids[]	edit-submit
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][misc/...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[js][modul...	1
ajax_page_state[theme]	magicbox
ajax_page_state[theme_tok...	WgcEPcABOnF51EA6CC2CrYIUqwmpQgeixj9oae7xKWY
category	
form_build_id	form-cNpAczczqvbpIH8mlVFPADHQfyQmRMgjHz58R8g2AFA
form_id	panels_flexible_reuse_form
form_token	a_vWBiX93KSSoB0wz7SRphdcG44xHL02saOwdyWfnKA
js	true
name	sidebar_for_dashboard
op	Save
This is the JSON response from the post request:

nothing is ever saved. I am checking the panels_layouts table and it is empty. Any help is appreciated.

{"0":{"command":"settings","settings":{"basePath":"\/","ajaxPageState":{"theme":"magicbox","theme_token":"WgcEPcABOnF51EA6CC2CrYIUqwmpQgeixj9oae7xKWY","css":[]},"overlay":{"paths":{"admin":"node\/*\/edit\nnode\/*\/delete\nnode\/*\/revisions\nnode\/*\/revisions\/*\/revert\nnode\/*\/revisions\/*\/delete\nnode\/add\nnode\/add\/*\noverlay\/dismiss-message\nuser\/*\/shortcuts\nadmin\nadmin\/*\nbatch\ntaxonomy\/term\/*\/edit\nuser\/*\/cancel\nuser\/*\/edit\nuser\/*\/edit\/*","non_admin":"admin\/structure\/block\/demo\/*\nadmin\/reports\/status\/php"},"ajaxCallback":"overlay-ajax"}},"merge":true},"markup":{"#prefix":"\u003cdiv class=\"description\"\u003e","#suffix":"\u003c\/div\u003e","#value":"If you save this layout for reuse it will appear in the list of reusable layouts at admin\/structure\/panels\/layouts, and you will need to go there to edit it. This layout will then become an option for all future panels you make.","#tree":false,"#parents":["markup"],"#array_parents":["markup"],"#weight":0,"#processed":false,"#required":false,"#attributes":[],"#title_display":"before","#id":"edit-markup","#sorted":true,"#validated":true},"admin_title":{"#type":"textfield","#title":"Administrative title","#description":"This will appear in the administrative interface to easily identify it.","#input":true,"#size":60,"#maxlength":128,"#autocomplete_path":false,"#process":["ajax_process_form"],"#theme":"textfield","#theme_wrappers":["form_element"],"#defaults_loaded":true,"#tree":false,"#parents":["admin_title"],"#array_parents":["admin_title"],"#weight":0.001,"#processed":true,"#required":false,"#attributes":[],"#title_display":"before","#id":"edit-admin-title--2","#name":"admin_title","#value":"sidebar_for_dashboard","#needs_validation":true,"#ajax_processed":false,"#sorted":true,"#validated":true},"name":{"#type":"textfield","#title":"Machine name","#description":"The machine readable name of this layout. It must be unique, and it must contain only alphanumeric characters and underscores. Once created, you will not be able to change this value!","#input":true,"#size":60,"#maxlength":128,"#autocomplete_path":false,"#process":["ajax_process_form"],"#theme":"textfield","#theme_wrappers":["form_element"],"#defaults_loaded":true,"#tree":false,"#parents":["name"],"#array_parents":["name"],"#weight":0.002,"#processed":true,"#required":false,"#attributes":[],"#title_display":"before","#id":"edit-name--2","#name":"name","#value":"sidebar_for_dashboard","#needs_validation":true,"#ajax_processed":false,"#sorted":true,"#validated":true},"category":{"#type":"textfield","#title":"Category","#description":"What category this layout should appear in. If left blank the category will be \"Miscellaneous\".","#input":true,"#size":60,"#maxlength":128,"#autocomplete_path":false,"#process":["ajax_process_form"],"#theme":"textfield","#theme_wrappers":["form_element"],"#defaults_loaded":true,"#tree":false,"#parents":["category"],"#array_parents":["category"],"#weight":0.003,"#processed":true,"#required":false,"#attributes":[],"#title_display":"before","#id":"edit-category--2","#name":"category","#value":"","#needs_validation":true,"#ajax_processed":false,"#sorted":true,"#validated":true},"admin_description":{"#type":"textarea","#title":"Administrative description","#description":"A description of what this layout is, does or is for, for administrative use.","#input":true,"#cols":60,"#rows":5,"#resizable":true,"#process":["ajax_process_form"],"#theme":"textarea","#theme_wrappers":["form_element"],"#defaults_loaded":true,"#tree":false,"#parents":["admin_description"],"#array_parents":["admin_description"],"#weight":0.004,"#processed":true,"#required":false,"#attributes":[],"#title_display":"before","#id":"edit-admin-description--2","#name":"admin_description","#value":"side bar for dash board","#needs_validation":true,"#ajax_processed":false,"#sorted":true,"#validated":true},"keep":{"#type":"checkbox","#title":"Keep current panel layout flexible","#description":"If checked, this panel will continue to use a generic flexible layout and will not use the saved layout. Use this option if you wish to clone this layout.","#input":true,"#return_value":1,"#theme":"checkbox","#process":["form_process_checkbox","ajax_process_form"],"#theme_wrappers":["form_element"],"#title_display":"after","#defaults_loaded":true,"#tree":false,"#parents":["keep"],"#array_parents":["keep"],"#weight":0.005,"#processed":true,"#required":false,"#attributes":[],"#id":"edit-keep--2","#name":"keep","#value":0,"#needs_validation":true,"#checked":false,"#ajax_processed":false,"#sorted":true,"#validated":true},"submit":{"#type":"submit","#value":"Save","#input":true,"#name":"op","#button_type":"submit","#executes_submit_callback":true,"#limit_validation_errors":false,"#process":["ajax_process_form"],"#theme_wrappers":["button"],"#defaults_loaded":true,"#tree":false,"#parents":["submit"],"#array_parents":["submit"],"#weight":0.006,"#processed":true,"#required":false,"#attributes":[],"#title_display":"before","#id":"edit-submit--2","#ajax_processed":false,"#sorted":true,"#validated":true},"#form_id":"panels_flexible_reuse_form","#type":"form","#build_id":"form-lDqiubxCi6a_r0qX08yL7t3Nizv1VlR7fDw3e2O7v1E","form_build_id":{"#type":"hidden","#value":"form-lDqiubxCi6a_r0qX08yL7t3Nizv1VlR7fDw3e2O7v1E","#id":"form-lDqiubxCi6a_r0qX08yL7t3Nizv1VlR7fDw3e2O7v1E","#name":"form_build_id","#input":true,"#process":["ajax_process_form"],"#theme":"hidden","#defaults_loaded":true,"#tree":false,"#parents":["form_build_id"],"#array_parents":["form_build_id"],"#weight":0.007,"#processed":true,"#required":false,"#attributes":[],"#title_display":"before","#ajax_processed":false,"#sorted":true,"#validated":true},"#token":"panels_flexible_reuse_form","form_token":{"#id":"edit-panels-flexible-reuse-form-form-token","#type":"token","#default_value":"a_vWBiX93KSSoB0wz7SRphdcG44xHL02saOwdyWfnKA","#input":true,"#theme":"hidden","#defaults_loaded":true,"#tree":false,"#parents":["form_token"],"#array_parents":["form_token"],"#weight":0.008,"#processed":false,"#required":false,"#attributes":[],"#title_display":"before","#name":"form_token","#value":"a_vWBiX93KSSoB0wz7SRphdcG44xHL02saOwdyWfnKA","#needs_validation":true,"#sorted":true,"#validated":true},"form_id":{"#type":"hidden","#value":"panels_flexible_reuse_form","#id":"edit-panels-flexible-reuse-form","#input":true,"#process":["ajax_process_form"],"#theme":"hidden","#defaults_loaded":true,"#tree":false,"#parents":["form_id"],"#array_parents":["form_id"],"#weight":0.009,"#processed":true,"#required":false,"#attributes":[],"#title_display":"before","#name":"form_id","#ajax_processed":false,"#sorted":true,"#validated":true},"#id":"panels-flexible-reuse-form--2","#method":"post","#action":"\/panels\/ajax\/editor\/layout\/52\/reuse","#theme_wrappers":["form"],"#tree":false,"#parents":[],"#validate":["panels_flexible_reuse_form_validate"],"#theme":["panels_flexible_reuse_form"],"#processed":false,"#defaults_loaded":true,"#required":false,"#attributes":[],"#title_display":"before","#array_parents":[],"#sorted":true,"#validated":true}

Comments

merlinofchaos’s picture

Status: Active » Fixed

Darnit, the form stuff hadn't fully been updated to D7. Fixed and pushed out.

kevisazombie’s picture

Status: Fixed » Needs review

Thanks merlinofchaos,

I have what is a probably noob question how can I update this in an existing app?

merlinofchaos’s picture

Status: Needs review » Fixed

You can update to the latest -dev version. I'm trying to get a new release out Very Soon. I'd give a date but I've already missed the last 2 dates I thought I'd have it out. :)

Also: "needs review" is reserved for issues with patches attached that need to be reviewed.

Status: Fixed » Closed (fixed)
Issue tags: -panels, -not saving, -layouts, -reuse layouts

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 262b9bd on 7.x-3.x, pipelines, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    Issue #1093852: Complete upgrade of reusable layouts.