Since upgrading to 1.07 I get an error when I go to the Configuration tab in the Admin plugin:
Twig_Error_Runtime
COPY
An exception has been thrown during the rendering of a template (“Argument 1 passed to Grav\Common\Data\Data::__construct() must be of the type array, null given, called in /Applications/MAMP/htdocs/grav-blog/user/plugins/admin/classes/admin.p hp on line 343 and defined”) in “config.html.twig” at line 46.
Not sure what I need to do to fix this, other than roll back to 1.0.6
Do not get such error… is Grav core updated too? If the answer is yes, can you PM me the zip of your user folder via Gitter? (you can delete accounts/ and data/ if they contain sensitive information)
I think I managed to upload the zip file. Not sure.
But I cannot be the only one confused by the different system.yaml files in various places, and which one takes precedence over the others. I will reread the docs, but it would be helpful if there were a clearer explanation.
There is usually just one system.yaml you need to care about, it’s /user/config/system.yaml. It contains your edits, and the Admin configuration saves there by default.
The system/config/system.yaml is the core default configuration, you should never change that as updates overwrite it, and it’s the lower precedence file.
Do you have any extra environment configs? These are not setup by default, but you might of created a localhost folder or something, so you could have a localhost/config/system.yaml file. This could relate to the issue too.
@jeremyc Flavio shared the zip with me so I took a look. The error is caused by an extra temp file: user/config/system.yaml~ that must of been generated and left while you edited in VI or Emacs or something. If you delete this file, the error goes away.
Many thanks for finding that. It is a backup left by BBEDIT. I suppose as I am using Git I don’t really need to save those backups. I’ll amend my preferences going forward.