getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 227 forks source link

invalid argument supplied for foreach() when opening a page after update to 1.7 #2152

Open stefanrybacki opened 3 years ago

stefanrybacki commented 3 years ago

Getting "invalid argument supplied for foreach()", when navigating to Pages and then open Home, after update to Grav 1.7 from 1.6, with Admin Plugin Version 1.10.15

Showing the error occured here: https://github.com/getgrav/grav-plugin-admin/blob/bcf085ca0089c5816df5fbaa81f970aa1d07d76e/themes/grav/templates/pages.html.twig#L317

mahagr commented 3 years ago

Make sure that the theme you're using doesn't have blueprints/pages/ folder at the same time when blueprints/default.html.twig file exists. If it does, move all the files from the blueprints/ into blueprints/pages/.