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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

"Flex Pages are required for Gantry to work!"

Started by stani 5 years ago · 0 replies · 324 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago