gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.04k stars 204 forks source link

500 Internal Server Error #1493

Closed sooryakalai closed 8 years ago

sooryakalai commented 8 years ago

Hello!!! First is first I am using Wordpress Theme: Helium (v5.3.2 / g5_helium) Gantry Version 5.3.2 Timber Version 1.1.2

I am using the new 'Helium theme' and I am facing this error when I try to assign a menu to the menu particle. 500 int error

The code from item.html.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 %}

PS: I am not a pro-web developer / programmer. I have been looking for a solution online, and am very desperate to get over with this issue. Any kind of help is highly appreciated.

Regards, Soorya Kalaiselvan

mahagr commented 8 years ago

I believe its a bug; will investigate it more.

mahagr commented 8 years ago

@sooryakalai

I was not able to reproduce the bug so please check if its fixed for you by installing latest CI build!

Please report back if the issue was fixed.

sooryakalai commented 8 years ago

I am installing the latest CI build. Please give me some time.

Thanks, Soorya Kalaiselvan

sooryakalai commented 8 years ago

Hello!!! I checked with the latest CI build, but the problem still persists 500 int error2 NOTE: you can see the latest build version on the background.

Regards, Soorya Kalaiselvan

mahagr commented 8 years ago

Can you enable debug mode from Gantry to see if there's anything else it reveals?

sooryakalai commented 8 years ago

I am afraid, it is already in development mode. I checked with production mode never the less but it still throws out the same error.

sooryakalai commented 8 years ago

Same thing in the debug mode as well.

mahagr commented 8 years ago

Just fixed admin to show more information if debug mode has been enabled from the plugin. Can you try with new CI build?

sooryakalai commented 8 years ago

Should I install "wordpress-tpl_g5_helium_develop.zip" again? or is it " wordpress-pkg_gantry5_develop.zip"

mahagr commented 8 years ago

its the later file, first one is the theme which doesn't have the bug. :)

sooryakalai commented 8 years ago

Sorry about my "lack of knowledge on this subject ;) I am a Mechanical Engineer by profession. I am just loving web development specially because of Gantry framework. I am both grateful and exited about my amateur web dev skills. :)

sooryakalai commented 8 years ago

500 int error resolved

You have no idea how my face looks right now. :smile: :laughing:

With lots of thanks, Soorya Kalaiselvan

mahagr commented 8 years ago

Cool so it was indeed fixed. :)

igor-gp commented 8 years ago

phew! we had the same error popping up and the latest CI fixed it, thanks @mahagr

antonbw commented 7 years ago

Hi I am a newb but I am having this same issue with a clean install of gantry 5 and Helium hatried both the latest versions 5.4.12 and latest CI but still unable to get menu ?