rainlab / pages-plugin

Adds static pages and menus
MIT License
122 stars 99 forks source link

Blank Page #500

Closed webfalter closed 2 years ago

webfalter commented 2 years ago

OctoberCMS Build: 3.0.12 RainLab Pages Plugin Version: 1.14.12 PHP version: 8.1.4

Blank Page in Menu Frontend in my project after update

Examples are in the topic https://octobercms.com/theme/rainlab-bonjour https://octobercms.com/theme/rainlab-relax

daftspunk commented 2 years ago

Hi @webfalter, thanks for the report. This is fixed in:

webfalter commented 2 years ago

Thanks but there are still errors Example of both topics Bildschirmfoto 2022-04-05 um 16 05 25 Bildschirmfoto 2022-04-05 um 16 05 03

daftspunk commented 2 years ago

This is an issue with the theme itself and Twig v3.0

Fixes are here: https://github.com/rainlab/bonjour-theme/commit/8ee8f8bf869f1351163aa9037e6ce45230c248b1 https://github.com/rainlab/relax-theme/commit/9a4d669f255c95a356961f3f6d02a2b8aaff972c

Here is the relevant document: https://twig.symfony.com/doc/2.x/deprecated.html

And deprecation:

Adding an if condition on a for tag is deprecated in Twig 2.10. Use a filter filter or an "if" condition inside the "for" body instead (if your condition depends on a variable updated inside the loop).

daftspunk commented 2 years ago

New releases for these themes have been published. This is fixed in:

webfalter commented 2 years ago

Thanks for the quick help