Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.x Causes Gantry to Fail #3300

Open
thekenshow opened this issue Feb 6, 2025 · 0 comments
Open

PHP 8.x Causes Gantry to Fail #3300

thekenshow opened this issue Feb 6, 2025 · 0 comments

Comments

@thekenshow
Copy link

On PHP 7.3, with Gantry and Grav updated to Grav v1.7.48 + Admin v1.10.48 (and all plugins updated to latest stable) everything seems to be working fine.

When I move to PHP 8.0_+, however, Gantry errors begin. For example:

{% block head_application %}
    {% do gantry.platform.finalize %}
 
    {% block assets deferred %}
        {{ assets.css()|raw }}
        {{ assets.js()|raw }}
    {% endblock %}
 
{% endblock %}
Arguments
"An exception has been thrown during the rendering of a template ("Trying to access array offset on value of type null")."

Image

The only PHP specs I can find on Gantry.org are at:

https://docs.gantry.org/gantry5/basics/system-requirements

Which states PHP 7.1.3+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant