Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

"Flex Pages are required for Gantry to work!"

Started by stani 5 years ago · 0 replies · 402 views
5 years ago

Hello,

after updates, the following has now appeared on the website - instead of the horizontal drop down menu: "Flex Pages are required for Gantry to work!"

( Gantry 5 Framework <small>v5.5.4</small>)

Any idea how to solve this?

thanks


update: when I turned it on in Gantry 5 settings ( Platform Settings) Debug Mode - Enabled, then in Layout - Navigation - Menu - setting, appears on the left :

Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Flex Pages are required for Gantry to
and bellow with a statement of about 100 reports

the first two are:

101 Twig\Error\RuntimeError

…/user/plugins/gantry5/admin/templates/forms/fields/menu/item.html.twig6

100 RuntimeException

…/user/plugins/gantry5/src/classes/Gantry/Framework/Menu.php109

and on the right:

/user/plugins/gantry5/admin/templates/forms/fields/menu/item.html.twig

TWIG
{% extends 'forms/fields/select/selectize.html.twig' %}

{% block options %}
    {{ parent() }}
    {% if gantry.menu is not null %}
        {% for group, items in gantry.menu.getGroupedItems() %}
            {% if items|length %}
            <optgroup label="{{ group|capitalize }}">
            {% for key, item in items %}
            <option
                    {# required attribute structures #}
                    {% if key == value %}selected="selected"{% endif %}
                    value="{{ key }}"
                    {# non-gloval attribute structures #}
                    {% if field.options.disabled in ['on', 'true', 1] %}disabled="disabled"{% endif %}
                    >{{ item.spacing|raw }}{{ item.label }}</option>
            {% endfor %}
            </optgroup>
            {% endif %}
        {% endfor %}
    {% endif %}
{% endblock %}

Arguments

"An exception has been thrown during the rendering of a template ("Flex Pages are required for Gantry to work!")."

last edited 11/11/21 by stani

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 3 weeks ago
1 266 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 194 3 weeks ago
General · by Jerry Hunt, 3 weeks ago
2 330 3 weeks ago
General · by pamtbaau, 3 weeks ago
1 253 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 220 3 weeks ago