“Can’t generate content” on Magento 2.2 homepage

Back

In case you see the text “Can’t generate content”, let’s fix it.

Magento 2.2 version is not using this widget part anymore:


conditions_encoded="a:1:[i:1;a:4:[s:4:`type`;s:50:`Magento|CatalogWidget|Model|
Rule|Condition|Combine`;s:10:`aggregator`;s:3:`all`;s:5:`value`;s:1:`1`;
s:9:`new_child`;s:0:``;]]"

Yet it is included in the installation for earlier versions support.

Here a list of steps on how to fix the issue.

  • Open your homepage content and turn off the WYSIWYG editor to see the raw code.
  • Find all Highlight widgets.
  • Remove that part conditions_encoded="a:1:[i:1;a:4....;]]" from every widget.
  • Save.

We think the issue won’t appear again.