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.

Gantry

Errors starting helium skeleton

first-time

Solved by pamtbaau View solution

Started by Normand Fortier 6 years ago · 8 replies · 1273 views
6 years ago

Hi,
I've installed and run grav with other themes with no apparent problem. I've then installed the Helium skeleton and I'm getting errors when trying to display the site, or when I try to recompile css from the grav admin / gantry page.
The error when trying to access the site is

"An exception has been thrown during the rendering of a template ("Trying to access array offset on value of type null")."

on this page:

/user/plugins/gantry5/engines/nucleus/templates/partials/page_head.html.twig

line 14:

{% do gantry.platform.finalize %}

This is on archlinux. The g5-helium directory is in owner [me] and group http throughout.
Any suggestions? Thanks!

6 years ago Solution

@nfortier, Same error has been mentioned in earlier posts. Seems to be related to PHP 7.4. Downgrading to PHP 7.3 solved their issue.

See /forum/support/breakage-on-php-7-4-e-notice-trying-to-access-array-offset-on-value-of-type-null-t8666

6 years ago

Yes indeed. I installed the php73 package from the arch AUR and it's working.
Thank you!

6 years ago

@nfortier, A bit more research on github tells me it should be fixed in Grav 1.6.23

  • Which Grav version are you using?
  • If not the latest 1.6.23, would you mind testing Grav 1.6.23 on PHP 7.4?
6 years ago

This is grav v1.6.23 (admin v1.9.13), I downloaded the helium skeleton yesteday. I confirm that the errors happen with php (7.4.5-1 in Arch) but not with php73 (7.3.17). I'm using php-fpm, and instead of a web server (for now) I'm using

$ php -S localhost:8000 system/router.php

When running error free that would be php73-fpm and php73 -S...

6 years ago

@nfortier, To rule out the role of the theme, does theme quark also fail on your configuration?

6 years ago

I don't get errors with the grav-admin package (1.6.23) with Quark, or with the Gateway skeleton, so this seems to point to gantry. I'm running v5.4.32 / g5_helium.

6 years ago

@nfortier, It appears an issue about this error is already created on the Helium repo... It's still open.

Suggested topics

Topic Participants Replies Views Activity
Gantry · by Chris, 11 months ago
1 171 11 months ago
Gantry · by Sam, 1 year ago
7 220 1 year ago
Gantry · by Dima, 2 years ago
2 74 2 years ago
Gantry · by KimTaeWoong, 9 years ago
2 1882 3 years ago
Gantry · by stani, 6 years ago
2 829 3 years ago