ThemeFuse / Unyson

A WordPress framework that facilitates the development of WP themes
http://unyson.io
921 stars 216 forks source link

Unyson no longer reading from the database properly when changing the Wordpress URL #1884

Closed randallbruder closed 8 years ago

randallbruder commented 8 years ago

I recently moved a Wordpress install that contained the Unyson framework from one folder to another on a server (from /beta/ to the root folder) and changed the URL in Wordpress from beta.greenspacecafe.com to greenspacecafe.com. I also did a MySQL find and replace for beta.greenspacecafe.com replacing with greenspacecafe.com to correct all the media links.

At this point, let me say I stupidly did not make a Wordpress backup first. I've never had an issue moving a Wordpress install on the same server before, but this is also my first time working with the Unyson plugin.

While most everything actually carried over fine, I found anything related to the Unyson plugin no longer worked properly—two things specifically: (1) Pages built with the page builder, and (2) the theme settings. The database was exactly the same as before, with the exception of my find and replace removing instances of beta. when it occurred before the domain.

I did a deep dive into what was happening, and found some interesting results:

Under the wp_options table in the database, was the fw_theme_settings_options:flycoffe option (I'm using the flycoffee theme). The theme options are stored there as in a long JSON like format. The database actually had what looked like the correct settings in it:

a:14:{s:13:"logo_settings";a:2:{s:4:"logo";a:3:{s:8:"selected";s:5:"image";s:4:"text";a:1:{s:5:"title";s:16:"GreenSpace Café";}s:5:"image";a:1:{s:10:"image_logo";a:2:{s:13:"attachment_id";s:3:"452";s:3:"url";s:67:"//greenspacecafe.com/wp-content/uploads/2016/04/logo-blank.png";}}}s:13:"logo_position";s:6:"center";}s:7:"favicon";s:0:"";s:7:"socials";a:3:{i:0;a:3:{s:11:"social_name";s:8:"Facebook";s:11:"social_type";a:3:{s:11:"social-type";s:11:"icon-social";s:11:"icon-social";a:1:{s:10:"icon_class";s:14:"fa fa-facebook";}s:11:"upload-icon";a:1:{s:18:"upload-social-icon";s:0:"";}}s:11:"social-link";s:38:"http://www.facebook.com/GreenSpaceCafe";}i:1;a:3:{s:11:"social_name";s:7:"Twitter";s:11:"social_type";a:3:{s:11:"social-type";s:11:"icon-social";s:11:"icon-social";a:1:{s:10:"icon_class";s:13:"fa fa-twitter";}s:11:"upload-icon";a:1:{s:18:"upload-social-icon";s:0:"";}}s:11:"social-link";s:35:"https://twitter.com/greenspacecafe1";}i:2;a:3:{s:11:"social_name";s:9:"Instagram";s:11:"social_type";a:3:{s:11:"social-type";s:11:"icon-social";s:11:"icon-social";a:1:{s:10:"icon_class";s:15:"fa fa-instagram";}s:11:"upload-icon";a:1:{s:18:"upload-social-icon";s:0:"";}}s:11:"social-link";s:41:"https://www.instagram.com/GreenSpaceCafe/";}}s:14:"posts_settings";a:6:{s:14:"image_position";s:21:"post-thumbnail-center";s:9:"post_date";s:3:"yes";s:13:"share_buttons";s:3:"yes";s:15:"post_categories";s:3:"yes";s:9:"post_tags";s:3:"yes";s:12:"post_love_it";s:3:"yes";}s:20:"general_posts_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:23:"enable_portfolio_filter";s:3:"yes";s:24:"portfolio_posts_per_page";s:1:"6";s:24:"general_portfolio_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:22:"general_offers_options";a:4:{s:15:"offer_post_date";s:3:"yes";s:13:"offer_love_it";s:3:"yes";s:19:"offer_share_buttons";s:3:"yes";s:17:"offer_back_button";s:3:"yes";}s:21:"general_offers_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:23:"general_products_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:19:"general_page_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:14:"footer_options";a:5:{s:9:"go_to_top";s:2:"no";s:11:"footer_logo";a:2:{s:8:"selected";s:3:"yes";s:3:"yes";a:1:{s:20:"footer_logo_settings";a:1:{s:4:"logo";a:3:{s:8:"selected";s:5:"image";s:4:"text";a:1:{s:5:"title";s:16:"GreenSpace Café";}s:5:"image";a:1:{s:10:"image_logo";a:2:{s:13:"attachment_id";s:3:"554";s:3:"url";s:68:"//greenspacecafe.com/wp-content/uploads/2016/06/logo-footer.png";}}}}}}s:11:"footer_info";s:110:"<div class="fly-footer-contact-info">215 W. Nine Mile Rd., Ferndale, MI 48220 - phone (248) 206-7510</div>";s:14:"footer_socials";s:3:"yes";s:16:"footer_copyright";s:0:"";}s:15:"general_styling";a:4:{s:6:"font_1";a:10:{s:11:"google_font";b:1;s:6:"subset";s:8:"cyrillic";s:9:"variation";s:7:"regular";s:6:"family";s:16:"Playfair Display";s:5:"style";b:0;s:6:"weight";b:0;s:4:"size";b:0;s:11:"line-height";b:0;s:14:"letter-spacing";b:0;s:5:"color";b:0;}s:6:"font_2";a:10:{s:11:"google_font";b:1;s:6:"subset";s:9:"latin-ext";s:9:"variation";s:7:"regular";s:6:"family";s:4:"Lato";s:5:"style";b:0;s:6:"weight";b:0;s:4:"size";b:0;s:11:"line-height";b:0;s:14:"letter-spacing";b:0;s:5:"color";b:0;}s:11:"theme_color";s:7:"#e8e6bd";s:9:"quick_css";s:0:"";}}

but weren't being read properly by Wordpress/Unyson/The theme, and seemed to ignore the settings. So out of curiosity I recreated the settings exactly as they were before, checked the same fw_theme_settings_options:flycoffe MySQL entry and found this:

a:14:{s:13:"logo_settings";a:2:{s:4:"logo";a:3:{s:8:"selected";s:5:"image";s:4:"text";a:1:{s:5:"title";s:16:"GreenSpace Café";}s:5:"image";a:1:{s:10:"image_logo";a:2:{s:13:"attachment_id";s:3:"452";s:3:"url";s:62:"//greenspacecafe.com/wp-content/uploads/2016/04/logo-blank.png";}}}s:13:"logo_position";s:6:"center";}s:7:"favicon";s:0:"";s:7:"socials";a:3:{i:0;a:3:{s:11:"social_name";s:8:"Facebook";s:11:"social_type";a:3:{s:11:"social-type";s:11:"icon-social";s:11:"icon-social";a:1:{s:10:"icon_class";s:14:"fa fa-facebook";}s:11:"upload-icon";a:1:{s:18:"upload-social-icon";s:0:"";}}s:11:"social-link";s:38:"http://www.facebook.com/GreenSpaceCafe";}i:1;a:3:{s:11:"social_name";s:7:"Twitter";s:11:"social_type";a:3:{s:11:"social-type";s:11:"icon-social";s:11:"icon-social";a:1:{s:10:"icon_class";s:13:"fa fa-twitter";}s:11:"upload-icon";a:1:{s:18:"upload-social-icon";s:0:"";}}s:11:"social-link";s:35:"https://twitter.com/greenspacecafe1";}i:2;a:3:{s:11:"social_name";s:9:"Instagram";s:11:"social_type";a:3:{s:11:"social-type";s:11:"icon-social";s:11:"icon-social";a:1:{s:10:"icon_class";s:15:"fa fa-instagram";}s:11:"upload-icon";a:1:{s:18:"upload-social-icon";s:0:"";}}s:11:"social-link";s:41:"https://www.instagram.com/GreenSpaceCafe/";}}s:14:"posts_settings";a:6:{s:14:"image_position";s:21:"post-thumbnail-center";s:9:"post_date";s:3:"yes";s:13:"share_buttons";s:3:"yes";s:15:"post_categories";s:3:"yes";s:9:"post_tags";s:3:"yes";s:12:"post_love_it";s:3:"yes";}s:20:"general_posts_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:23:"enable_portfolio_filter";s:3:"yes";s:24:"portfolio_posts_per_page";s:1:"6";s:24:"general_portfolio_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:22:"general_offers_options";a:4:{s:15:"offer_post_date";s:3:"yes";s:13:"offer_love_it";s:3:"yes";s:19:"offer_share_buttons";s:3:"yes";s:17:"offer_back_button";s:3:"yes";}s:21:"general_offers_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:23:"general_products_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:19:"general_page_header";a:2:{s:19:"posts_header_height";s:21:"fly-section-height-md";s:18:"posts_header_image";s:0:"";}s:14:"footer_options";a:5:{s:9:"go_to_top";s:2:"no";s:11:"footer_logo";a:2:{s:8:"selected";s:3:"yes";s:3:"yes";a:1:{s:20:"footer_logo_settings";a:1:{s:4:"logo";a:3:{s:8:"selected";s:5:"image";s:4:"text";a:1:{s:5:"title";s:16:"GreenSpace Café";}s:5:"image";a:1:{s:10:"image_logo";a:2:{s:13:"attachment_id";s:3:"554";s:3:"url";s:63:"//greenspacecafe.com/wp-content/uploads/2016/06/logo-footer.png";}}}}}}s:11:"footer_info";s:110:"<div class="fly-footer-contact-info">215 W. Nine Mile Rd., Ferndale, MI 48220 - phone (248) 206-7510</div>";s:14:"footer_socials";s:3:"yes";s:16:"footer_copyright";s:0:"";}s:15:"general_styling";a:4:{s:6:"font_1";a:10:{s:11:"google_font";b:1;s:6:"subset";s:8:"cyrillic";s:9:"variation";s:7:"regular";s:6:"family";s:16:"Playfair Display";s:5:"style";b:0;s:6:"weight";b:0;s:4:"size";b:0;s:11:"line-height";b:0;s:14:"letter-spacing";b:0;s:5:"color";b:0;}s:6:"font_2";a:10:{s:11:"google_font";b:1;s:6:"subset";s:9:"latin-ext";s:9:"variation";s:7:"regular";s:6:"family";s:4:"Lato";s:5:"style";b:0;s:6:"weight";b:0;s:4:"size";b:0;s:11:"line-height";b:0;s:14:"letter-spacing";b:0;s:5:"color";b:0;}s:11:"theme_color";s:7:"#e8e6bd";s:9:"quick_css";s:0:"";}}

Which looks almost the same as what had been there previously. I ran the original data and the recreated data through a character-level diff engine, and found only two differences:

image

So the only difference between the two are the numbers associated with the two Media Library URLs. I'm not sure why that is, or what happened there, but that's one issue resolved.

Secondly, and the reason for this post, is the pages built with the Unyson page builder.

So I took one page as an example, so traced it through the database. It still had an entry under wp_posts but the post content is a commented out hash (as it should be for Unyson.) Then, under wp_postmeta I found a bunch of entries matching the page's post_id, and one of those entries, with the meta_key fw:opt:ext:pb:page-builder:json, had the now missing content built with the Unyson page builder:

[{"type":"simple","shortcode":"header_image","atts":{"title":"GIFT CARDS","description":"","bg_image":{"attachment_id":"515","url":"//greenspacecafe.com/wp-content/uploads/2016/04/menu-hero-01.jpg"},"bg_color":"","height":"fly-section-height-md","enable_overlay":"","enable_parallax":"no"}},{"type":"simple","shortcode":"simple_text","atts":{"unique_id":"f50314648e627ac066d81cea25bd8f6f","title":"Online Gift Card Sales Coming Soon!","text":"<p style="text-align: left;">In the meantime if you would like to purchase a gift card and are unable to come to the restaurant or just would like to send a gift to someone, please feel free to call (248) 206-7510 or email <a href="mailto:managers@greenspacecafe.com">managers@greenspacecafe.com</a> and leave your name and phone number and someone will return your call!</p>","height":"fly-section-height-md","space":"space-md","class":""}}]

So, like the options, I rebuilt this page in the Wordpress backend, then checked the same entry in the database and found this:

[{"type":"simple","shortcode":"header_image","atts":{"title":"GIFT CARDS","description":"","bg_image":{"attachment_id":"515","url":"\/\/greenspacecafe.com\/wp-content\/uploads\/2016\/04\/menu-hero-01.jpg"},"bg_color":"","height":"fly-section-height-md","enable_overlay":"","enable_parallax":"no"}},{"type":"simple","shortcode":"simple_text","atts":{"unique_id":"f50314648e627ac066d81cea25bd8f6f","title":"Online Gift Card Sales Coming Soon!","text":"<p style=\"text-align: left;\">In the meantime if you would like to purchase a gift card and are unable to come to the restaurant or just would like to send a gift to someone, please feel free to call (248) 206-7510 or email <a href=\"mailto:managers@greenspacecafe.com\">managers@greenspacecafe.com<\/a> and leave your name and phone number and someone will return your call!<\/p>","height":"fly-section-height-md","space":"space-md","class":""}}]

(The unique_id was updated with a new hash, but I manually pasted the old hash in to see if that was part of the issue—it was not. With the recreated page & old hash, the website still showed the content.)

I ran another diff on these two entries, and found the only difference was all the " and / characters (when inside a text field or URL) were escaped with a backslash.

This is where I'm confused. Why would Unyson now require the quotes/backslashed in text be escaped? I know I can "recover" all the data by pulling out the fw:opt:ext:pb:page-builder:json entries from the database and using those as a guide to rebuild every page, but unlike the sample page above, most of the other pages have significantly more content.

Another interesting point, the most recently updated page (updated 2 weeks ago) didn't break when I changed the website URL (2 days ago.) I checked the content for that in the wp_postmeta, fw:opt:ext:pb:page-builder:json entry and found all the double quotes and backslashes properly escaped:

[{"type":"simple","shortcode":"header_image","atts":{"title":"GREENSPACE CAREERS","description":"Fret not, are always accepting resumes and applications even if no jobs are posted.","bg_image":{"attachment_id":"515","url":"\/\/greenspacecafe.com\/wp-content\/uploads\/2016\/04\/menu-hero-01.jpg"},"bg_color":"","height":"fly-section-height-md","enable_overlay":"","enable_parallax":"no"}},{"type":"simple","shortcode":"space","atts":{"height":"space-md"}},{"type":"simple","shortcode":"menu","atts":{"unique_id":"3eafd6937eabe440f6321e9170cb453e","menu_title":"Current Openings","dishes":[{"title":"Food Runner","image":"","price":"$8.5\/hr +tips","description":"<p class=\"p1\">The food runner is a crucial restaurant position whose responsibility is communicating with guests and supporting both servers and kitchen staff. Often underestimated, a food runner can make up for a server's shortfalls and make the difference between a great experience and a poor one in the food service industry."},{"title":"Line Cook","image":"","price":"$10-13\/hr","description":"<p class=\"p1\">Line cooks are responsible for prepping ingredients and assembling dishes according to restaurant recipes and specifications. The kitchen can be hot, noisy and stressful, so you'll need to be able to work efficiently and quickly to be successful. Pay range based on skill."}],"class":""}},{"type":"simple","shortcode":"simple_text","atts":{"unique_id":"f7c4280249f82515d011643dc2bc28ed","title":"","text":"<h1 style=\"text-align: center;\">If you would prefer to submit a resume and or cover letter\u00a0please do so by emailing them to<br \/><strong><em><a href=\"mailto:managers@greenspacecafe.com\">managers@greenspacecafe.com<\/a><br \/><\/em><\/strong>otherwise use the Application Form below.<\/h1>","height":"fly-section-height-md","space":"space-md","class":""}},{"type":"contact-form","atts":{"id":"74ed9a5889986798e1051865e5863d33","form":{"json":"[{\"type\":\"form-header-title\",\"shortcode\":\"form_header_title\",\"width\":\"\",\"options\":{\"title\":\"EMPLOYMENT APPLICATION\",\"subtitle\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_fa59ff2\",\"width\":\"1_1\",\"options\":{\"label\":\"\",\"required\":false,\"placeholder\":\"P E R S O N A L   I N F O\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_eba69ae\",\"width\":\"1_2\",\"options\":{\"label\":\"Last Name\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_4afbbc6\",\"width\":\"1_6\",\"options\":{\"label\":\"MI\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_7af9ca4\",\"width\":\"1_3\",\"options\":{\"label\":\"First Name\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_c71b2a0\",\"width\":\"1_3\",\"options\":{\"label\":\"Preferred Name\\\/Nickname\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_25750c5\",\"width\":\"1_2\",\"options\":{\"label\":\"Street Address\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_0b31562\",\"width\":\"1_6\",\"options\":{\"label\":\"Apt #\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_2b7dc3f\",\"width\":\"1_2\",\"options\":{\"label\":\"City\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_f034f33\",\"width\":\"1_4\",\"options\":{\"label\":\"State\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_10e82ef\",\"width\":\"1_4\",\"options\":{\"label\":\"Zip Code\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_b818f3a\",\"width\":\"1_2\",\"options\":{\"label\":\"Cell Phone\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_24c8969\",\"width\":\"1_2\",\"options\":{\"label\":\"Alternate Phone\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"email\",\"shortcode\":\"email_3ab48f0\",\"width\":\"1_2\",\"options\":{\"label\":\"Email\",\"required\":true,\"placeholder\":\"\",\"info\":\"\"}},{\"type\":\"select\",\"shortcode\":\"select_3cc8c1b\",\"width\":\"1_2\",\"options\":{\"label\":\"Preferred Method of Contact\",\"required\":true,\"choices\":[\"Select One\",\"Cell Phone\",\"Alternate Phone\",\"Email\"],\"randomize\":false,\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_0f6192c\",\"width\":\"1_1\",\"options\":{\"label\":\"\",\"required\":false,\"placeholder\":\"E M P L O Y E R   I N F O R M A T I O N\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"checkboxes\",\"shortcode\":\"checkboxes_2a2eab2\",\"width\":\"1_2\",\"options\":{\"label\":\"Are you interested in:\",\"required\":true,\"choices\":[\"Full Time\",\"Part Time\",\"Temporary\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"checkboxes\",\"shortcode\":\"checkboxes_a861cb2\",\"width\":\"1_2\",\"options\":{\"label\":\"What schedule would you prefer?\",\"required\":true,\"choices\":[\"Midweek\",\"Weekends\",\"Days\",\"Nights\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"select\",\"shortcode\":\"select_51f69d5\",\"width\":\"1_2\",\"options\":{\"label\":\"How did you hear about the position?\",\"required\":true,\"choices\":[\"Select One\",\"Craigslist\",\"Indeed\",\"HiredKnives\",\"Facebook\",\"Instagram\",\"Twitter\",\"GreenSpaceCafe.com\",\"Friend\"],\"randomize\":false,\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_7efc13d\",\"width\":\"1_2\",\"options\":{\"label\":\"Friend's Name\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_d018bc6\",\"width\":\"1_3\",\"options\":{\"label\":\"Desired Hourly Pay $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_7524871\",\"width\":\"1_3\",\"options\":{\"label\":\"Minimum Annual Salary $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_a5f7eec\",\"width\":\"1_3\",\"options\":{\"label\":\"Desired Annual Salary $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"checkboxes\",\"shortcode\":\"checkboxes_2262acb\",\"width\":\"2_3\",\"options\":{\"label\":\"Position desired\",\"required\":true,\"choices\":[\"Dishwasher\",\"Busser\",\"FOH Supervisor\",\"Prep Cook\",\"Food Runner\",\"BOH Supervisor\",\"Line Cook\",\"Host\",\"FOH Manager\",\"Server\",\"Bartender\",\"BOH Manager\"],\"randomize\":false,\"layout\":\"three-columns\",\"info\":\"\"}},{\"type\":\"datepicker\",\"shortcode\":\"datepicker_5601158\",\"width\":\"1_3\",\"options\":{\"label\":\"When are you available to start work?\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_f145a25\",\"width\":\"1_2\",\"options\":{\"label\":\"Are you authorized to work in the United States? (Federal law requires that employers hire only individuals who are authorized to be lawfully employed in the United States.  In compliance with these laws, Kahn Restaurant Group will verify the status of every individual offered employment with the Company.  In this connection, all offers of employment are subject to verification of the applicant\\u2019s identity and employment authorization, and it will be necessary for you to submit such documents as are required by law to verify your identification and employment authorization.)\",\"required\":true,\"choices\":[\"Yes\",\"No\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_eac62de\",\"width\":\"1_2\",\"options\":{\"label\":\"Are you capable of performing the essential job functions of the job for which you are applying with or without a reasonable accommodation? Kahn Restaurant Group is an equal opportunity employer and does not discriminate against any applicant or employee because of race, color, religion, sex, national origin, disability, age, or military or veteran status in accordance with federal law.  In addition, Kahn Restaurant Group complies with applicable state and local laws governing non\\u2011discrimination in employment in every jurisdiction in which it maintains facilities.  Kahn Restaurant Group also provides reasonable accommodation to qualified individuals with disabilities in accordance with applicable laws.\",\"required\":true,\"choices\":[\"Yes\",\"No\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_2556122\",\"width\":\"1_2\",\"options\":{\"label\":\"Are you under 18 years of age?\",\"required\":true,\"choices\":[\"Yes\",\"No\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_78e3500\",\"width\":\"1_2\",\"options\":{\"label\":\"If under 18 years of age, can you furnish a work permit?\",\"required\":false,\"choices\":[\"Yes\",\"No\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_3745479\",\"width\":\"1_1\",\"options\":{\"label\":\"\",\"required\":false,\"placeholder\":\"M O S T   R E C E N T   W O R K    E X P E R I E N C E\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_74f9c44\",\"width\":\"1_2\",\"options\":{\"label\":\"Business Name of Most recent work experience\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_74f5222\",\"width\":\"1_2\",\"options\":{\"label\":\"Position and Title\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_26979c0\",\"width\":\"1_6\",\"options\":{\"label\":\"Start Date\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_dea3413\",\"width\":\"1_6\",\"options\":{\"label\":\"End Date\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_a23a632\",\"width\":\"1_3\",\"options\":{\"label\":\"Address\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_3bc5052\",\"width\":\"1_6\",\"options\":{\"label\":\"City\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_84c665a\",\"width\":\"1_6\",\"options\":{\"label\":\"State\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_19c9f9c\",\"width\":\"1_2\",\"options\":{\"label\":\"Supervisor's Name & Title\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_e62fba8\",\"width\":\"1_2\",\"options\":{\"label\":\"Supervisor's Telephone #\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_cfdcfec\",\"width\":\"1_3\",\"options\":{\"label\":\"Type of business\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_eaf2468\",\"width\":\"1_3\",\"options\":{\"label\":\"Starting Pay $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_3794fb1\",\"width\":\"1_3\",\"options\":{\"label\":\"Final Pay $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_81ccd6a\",\"width\":\"1_3\",\"options\":{\"label\":\"Business Phone Number\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_103cf09\",\"width\":\"1_3\",\"options\":{\"label\":\"Termination\",\"required\":false,\"choices\":[\"Voluntary\",\"Involuntary\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_c078285\",\"width\":\"1_3\",\"options\":{\"label\":\"Reason\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"textarea\",\"shortcode\":\"textarea_bc3b76d\",\"width\":\"1_1\",\"options\":{\"label\":\"Briefly describe your MAJOR duties and REASON(S) FOR TERMINATION\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_793e81a\",\"width\":\"1_1\",\"options\":{\"label\":\"\",\"required\":false,\"placeholder\":\"W O R K   E X P E R I E N C E   # 2\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_99bff72\",\"width\":\"1_2\",\"options\":{\"label\":\"Business Name\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_1b88060\",\"width\":\"1_2\",\"options\":{\"label\":\"Position and Title\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_07c7280\",\"width\":\"1_6\",\"options\":{\"label\":\"Start Date\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_d8babf6\",\"width\":\"1_6\",\"options\":{\"label\":\"End Date\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_891662f\",\"width\":\"1_3\",\"options\":{\"label\":\"Address\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_148b8fd\",\"width\":\"1_6\",\"options\":{\"label\":\"City\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_1048d7b\",\"width\":\"1_6\",\"options\":{\"label\":\"State\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_e66ba03\",\"width\":\"1_2\",\"options\":{\"label\":\"Supervisor's Name & Title\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_e42fcd7\",\"width\":\"1_2\",\"options\":{\"label\":\"Supervisor's Telephone #\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_6b37142\",\"width\":\"1_3\",\"options\":{\"label\":\"Type of Business\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_60990c1\",\"width\":\"1_3\",\"options\":{\"label\":\"Starting Pay $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_f790fb6\",\"width\":\"1_3\",\"options\":{\"label\":\"Ending Pay $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_c2cc2f5\",\"width\":\"1_3\",\"options\":{\"label\":\"Business Phone Number\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_7098d24\",\"width\":\"1_3\",\"options\":{\"label\":\"Termination\",\"required\":false,\"choices\":[\"Voluntary\",\"Involuntary\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_830cb0a\",\"width\":\"1_3\",\"options\":{\"label\":\"Reason\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"textarea\",\"shortcode\":\"textarea_a5e2e8f\",\"width\":\"1_1\",\"options\":{\"label\":\"Briefly describe your MAJOR duties and REASON(S) FOR TERMINATION\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_b0d0470\",\"width\":\"1_1\",\"options\":{\"label\":\"\",\"required\":false,\"placeholder\":\"W O R K   E X P E R I E N C E   # 3\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_2145e9a\",\"width\":\"1_2\",\"options\":{\"label\":\"Business Name\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_bc49d21\",\"width\":\"1_2\",\"options\":{\"label\":\"Position and Title\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_2fe107e\",\"width\":\"1_6\",\"options\":{\"label\":\"Start Date\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_9a1f62d\",\"width\":\"1_6\",\"options\":{\"label\":\"End Date\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_07d9fd1\",\"width\":\"1_3\",\"options\":{\"label\":\"Address\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_4425e8b\",\"width\":\"1_6\",\"options\":{\"label\":\"City\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_e5bf0f9\",\"width\":\"1_6\",\"options\":{\"label\":\"State\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_2973b61\",\"width\":\"1_2\",\"options\":{\"label\":\"Supervisor's Name & Title\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_1330053\",\"width\":\"1_2\",\"options\":{\"label\":\"Supervisor's Telephone #\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_017c9cc\",\"width\":\"1_3\",\"options\":{\"label\":\"Type of Business\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_eaa4468\",\"width\":\"1_3\",\"options\":{\"label\":\"Starting Pay $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_63edfff\",\"width\":\"1_3\",\"options\":{\"label\":\"Ending Pay $\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_4c86b33\",\"width\":\"1_3\",\"options\":{\"label\":\"Business Phone Number\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_056a9c8\",\"width\":\"1_3\",\"options\":{\"label\":\"Termination\",\"required\":false,\"choices\":[\"Voluntary\",\"Involuntary\"],\"randomize\":false,\"layout\":\"side-by-side\",\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_fe4e816\",\"width\":\"1_3\",\"options\":{\"label\":\"Reason\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"textarea\",\"shortcode\":\"textarea_09b8147\",\"width\":\"1_1\",\"options\":{\"label\":\"Briefly describe your MAJOR duties and REASON(S) FOR TERMINATION\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_fc59d7f\",\"width\":\"1_1\",\"options\":{\"label\":\"\",\"required\":false,\"placeholder\":\"E D U C A T I O N\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_230fbe8\",\"width\":\"1_3\",\"options\":{\"label\":\"High School or Prep\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_be7dff2\",\"width\":\"1_3\",\"options\":{\"label\":\"Major Subject\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_8b5b29e\",\"width\":\"1_3\",\"options\":{\"label\":\"\",\"required\":false,\"choices\":[\"Degree\",\"Diploma\",\"G.E.D.\",\"Still in school\",\"Did not finish\"],\"randomize\":false,\"layout\":\"two-columns\",\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_032b7c4\",\"width\":\"1_3\",\"options\":{\"label\":\"College\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_f211c6a\",\"width\":\"1_3\",\"options\":{\"label\":\"Major Subject\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_1d4560c\",\"width\":\"1_3\",\"options\":{\"label\":\"\",\"required\":false,\"choices\":[\"Certificate\",\"Associates\",\"Bachelors\",\"Masters\",\"PhD\"],\"randomize\":false,\"layout\":\"two-columns\",\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_d3e8ce4\",\"width\":\"1_3\",\"options\":{\"label\":\"College\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_ee1624b\",\"width\":\"1_3\",\"options\":{\"label\":\"Major Subject\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_0309e01\",\"width\":\"1_3\",\"options\":{\"label\":\"\",\"required\":false,\"choices\":[\"Certificate\",\"Associates\",\"Bachelors\",\"Masters\",\"PhD\"],\"randomize\":false,\"layout\":\"two-columns\",\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_88588dd\",\"width\":\"1_3\",\"options\":{\"label\":\"Other\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_d950d2c\",\"width\":\"1_3\",\"options\":{\"label\":\"Major Subject\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_94ffc09\",\"width\":\"1_3\",\"options\":{\"label\":\"Certification Obtained\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_c11e12e\",\"width\":\"1_1\",\"options\":{\"label\":\"\",\"required\":false,\"placeholder\":\"P R O F E S S I O N A L   R E F E R E N C E S\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_89ec17d\",\"width\":\"1_3\",\"options\":{\"label\":\"Name\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_ad182ce\",\"width\":\"1_3\",\"options\":{\"label\":\"Relationship\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_dc13486\",\"width\":\"1_3\",\"options\":{\"label\":\"Phone\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_9b723ed\",\"width\":\"1_3\",\"options\":{\"label\":\"Name\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_d6bac9d\",\"width\":\"1_3\",\"options\":{\"label\":\"Relationship\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_5942f5c\",\"width\":\"1_3\",\"options\":{\"label\":\"Phone\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_f86098b\",\"width\":\"1_3\",\"options\":{\"label\":\"Name\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_662f854\",\"width\":\"1_3\",\"options\":{\"label\":\"Relationship\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"number\",\"shortcode\":\"number_a7f351f\",\"width\":\"1_3\",\"options\":{\"label\":\"Phone\",\"required\":false,\"placeholder\":\"\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"value\",\"digits\":{\"min\":\"0\",\"max\":\"\"},\"value\":{\"min\":0,\"max\":0}},\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_c88a74f\",\"width\":\"1_1\",\"options\":{\"label\":\"\",\"required\":false,\"placeholder\":\"P L E A S E   R E A D   C A R E F U L L Y   B E F O R E   S E N D I N G   A P P L I C A T I O N\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"radio\",\"shortcode\":\"radio_d1bb263\",\"width\":\"1_1\",\"options\":{\"label\":\"I have submitted the attached form to the company for the purpose of obtaining employment.  I acknowledge that the use of this form, and my filling it out, does not indicate that any positions are open, nor does it obligate the company to further process my application.   My signature below attests to the fact that the information that I have provided on my application, resume, given verbally, or provided in any other materials, is true and complete to the best of my knowledge and also constitutes authority to verify any and all information submitted on this application.  I understand that any misrepresentation or omission of any fact in my application, resume or any other materials, or during any interviews, can be justification for refusal of employment, or, if employed, termination from the Company\\u2019s employ.   I also affirm that I have not signed any kind of restrictive document creating any obligation to any former employer that would restrict my acceptance of employment with the Company in the position I am seeking.   I understand that this application is not an employment contract for any specific length of time between the Company and me, and that in the event I am hired, my employment will be \\u201cat will\\u201d and either the Company or I can terminate my employment with or without cause and with or without notice at any time. Nothing contained in any handbook, manual, policy and the like, distributed by the Company to its employees is intended to or can create an employment contract, an offer of employment or any obligation on the Company\\u2019s part. The Company may, at its sole discretion, hold in abeyance or revoke, amend or modify, abridge or change any benefit, policy practice, condition or process affecting its employees. References:   I hereby authorize the company and its agents to make such investigations and inquiries into my employment and educational history and other related matters as may be necessary in arriving at an employment decision.  I hereby release employers, schools, and other persons from all liability in responding to inquires connected with my application and I specifically authorize the release of information by any schools, businesses, individuals, services or other entities listed by me in this form.  Furthermore, I authorize the company and its agents to release any reference information to clients who request such information for purposes of evaluating my credentials and qualifications. Temporary\\\/Contract Employment:     If employed as a temporary or contract employee, I understand that I may be an employee of the company and not of any client.  If employed, I further understand that my employment is not guaranteed for any specific time and may be terminated at any time for any reason.  I further understand that a contract will exist between the company and each client to whom I may be assigned which will require the client to pay a fee to the company in the event that I accept direct employment with the client, I agree to notify the company immediately should I be offered direct employment by a client (or by referral of the client to any subsidiary or affiliated company), either for a permanent, temporary (including assignments through another agency), or consulting positions during my assignment or after my assignment has ended.\",\"required\":true,\"choices\":[\"I have read and agree to the terms set forth in this document.\"],\"randomize\":false,\"layout\":\"one-column\",\"info\":\"\"}},{\"type\":\"text\",\"shortcode\":\"text_ba83187\",\"width\":\"2_3\",\"options\":{\"label\":\"Electronic Signature\",\"required\":true,\"placeholder\":\"PLEASE TYPE YOUR FULL LEGAL NAME HERE\",\"default_value\":\"\",\"constraints\":{\"constraint\":\"characters\",\"characters\":{\"min\":\"0\",\"max\":\"\"},\"words\":{\"min\":\"0\",\"max\":\"\"}},\"info\":\"\"}},{\"type\":\"datepicker\",\"shortcode\":\"datepicker_9a8ca26\",\"width\":\"1_3\",\"options\":{\"label\":\"Today's Date\",\"required\":true,\"placeholder\":\"\",\"default_value\":\"\",\"info\":\"\"}}]"},"subject_message":"New Job Application","submit_button_text":"SUBMIT TO MANAGEMENT","success_message":"Application sent! Good Luck!","failure_message":"Oops something went wrong.","email_to":"managers@greenspacecafe.com","section_form_bg":{"selected":"no","yes":{"image":"","color":""}},"mailer":[]},"_items":[]},{"type":"simple","shortcode":"space","atts":{"height":"space-md"}}]
thednp commented 8 years ago

Why don't you try to use the Unyson Back-up Extension to move your site around? Also create a demo install and try to install that would probably work in this scenario.

ghost commented 8 years ago

Your replace script will corupt serialized and json values. You should migrate to another domain with our Backup & Demo Content, it has an advanced replace url technique.

randallbruder commented 8 years ago

Here's the thing though, the only commands I've run in the database are:

UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'beta.greenspace.com', 'greenspace.com');

(and the same for wp_posts looking in the post_content field.)

Why would that corrupt the JSON values for some posts, but not all posts (and only specifically recently made posts)?

ghost commented 8 years ago

This is how our replace functionality works: On database import, it searches in every row your new url in different versions/encodings https://github.com/ThemeFuse/Unyson-Backups-Extension/blob/v2.0.11/includes/module/tasks/type/class-fw-ext-backups-task-type-db-restore.php#L317-L380