5.0.2 Beta 1 | Possible Bricking

First of all, as other have stated, this is an absolutely incredible features update. Well done!

Was playing around with some of the new features – adding, deleting, etc. And may have bricked my page. Here’s what actions took place that lead to the issue:

  1. Created a component set
  2. Created a component (button)
  3. Created parameters for said component
  4. Plumbed parameters (url and text)
  5. Used said component on the homepage of my sandbox site
  6. Deleted the root component set
  7. Received the error below
  8. Page is completely inaccessible in the builder, not just rendering but the builder itself (completely gray screenshot below)

For problem solving, I’m sure it’s the use of the now deleted component but I can’t even load the builder (or even the layout tree) to remove the component.

Perhaps some sort of fail-safe setting for components that are actively being used not being able to delete the without first dissociating from the pages it exists on.

Warning : array_map(): Expected parameter 2 to be an array, null given in /public_html/wp-content/themes/pro/cornerstone/includes/classes/Elements/IdPopulater.php on line 71

Warning : array_filter() expects parameter 1 to be array, null given in /public_html/wp-content/themes/pro/cornerstone/includes/classes/Elements/IdPopulater.php on line 71

Warning : array_map(): Expected parameter 2 to be an array, null given in /public_html/wp-content/themes/pro/cornerstone/includes/classes/Elements/ElementData.php on line 150

Warning : array_filter() expects parameter 1 to be array, null given in /public_html/wp-content/themes/pro/cornerstone/includes/classes/Elements/ElementData.php on line 150

Warning : Can not decorate element without _type: 9 in /public_html/wp-content/themes/pro/cornerstone/includes/classes/Elements/Decorator.php on line 60

Nice find here! I’m sure there’s a way we can gracefully fall back somehow.

3 Likes