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

Grav 1.8.0-beta.7

Started by pamtbaau 9 months ago · 11 replies · 231 views
9 months ago

According to Andy on Discord:

Andy Miller Yesterday at 9:41 PM
i've been using 1.8 beta on several sites.. all new projects i'm doing with 1.8 too

See changelog

Please test 1.8 on your sites/themes/plugins in your dev environment. The more feedback Andy gets, the sooner 1.8 will be released.

👍 1
9 months ago

I have started testing the Editorial theme version 2.3.8, and the first problem I have encountered with 1.8.0-beta.7 is in the metadata.html.twig file (line 36). Here's the error:

The "filter" filter expects a sequence/mapping or "Traversable", got "null" in "partials/page-bits/metadata.html.twig" at line 36

This is line 36:

TWIG
{% for item in theme_config.social if item.name|lower == 'twitter' %}

If I change it to:

TWIG
{% for item in theme_config.social|default([]) if item.name|lower == 'twitter' %}

or wrap it in an if condition:

TWIG
{% if theme_config.social is defined and theme_config.social is not null %}

it works correctly.

I don't know if this is a problem in Grav 1.8, or if in this version, validations for null values ​​are stricter. In Grav 1.7 if theme_config.social is null, it works.

9 months ago

Trying to port over my my site to the Grav Beta, but running into issue where the page only display text and my images. It doesn’t display the theme images or any css. Log does not show any errors.

What I have done was replaced all folders and files inside user folder in the beta with my existing folder. When trying to view the site, it only display my text and images. It doesn’t appear to be reading the css or something.

What is the proper way of upgrading to the beta???

9 months ago

What theme are you using?

9 months ago

Receptar. The admin page looks fine.

9 months ago

Andy does not visit this forum, so please also create an issue on Github to let Andy know about any issues. Thanks!

👍 1
9 months ago

I think I found my issue. The receptar theme has not been updated for quite sometime and needs the add |raw in the template folder as stated in these links. This is going take some time to find.

/forum/themes-styling/trouble-getting-themes-to-load-t3723

https://github.com/getgrav/grav/issues/3338

9 months ago

oh. That is strange. You are correct. The theme does have |raw as you pointed out. However, I am using a child template and have added a hand of templates files to it. Looking closely at them, it doesn’t look the same. I am wondering if I had ported these files before the last update of recepatar. I never bother to look through what has changed since nothing broke. Grav 1.8.0 certainly did..

Since today, I have searched my site and see what broke and looked off and have updated whichever files needed fixing. Hopefully, I’ve got them all.

9 months ago

@duceduc, Just to be clear... Are you saying that Grav 1.8.0-beta.7 does not itself cause any problems on you site?

But that upgrading to 1.8 did expose issues you already had in 1.7 and never noticed them before?

👍 1
9 months ago

Thanks for sharing this update! I’ll spin up a dev environment and run some tests against my current themes/plugins. Totally agree—the more of us who try out 1.8 beta, the quicker we can help iron out edge cases and get it stable for release.

👍 1
9 months ago

But that upgrading to 1.8 did expose issues you already had in 1.7 and never noticed them before?

Yes. My site before 1.8 had no issues until I tried to upgrade to the beta. I also ran Grav 1.8 on it’s own and added the Munduna theme which works.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 74 6 hours ago
General · by pamtbaau, 11 hours ago
1 47 11 hours ago
General · by Andy Miller, 23 hours ago
0 43 23 hours ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 39 5 days ago