I am a front end designer building my site locally. This is the first time I've built in Craft and things have been coming along fine but now I'm getting the following error on every craft admin page and I'm not sure what's happened or how to fix it.
Twig\Error\SyntaxError: The block 'content' has already been defined line 256. in /Users/jinora/sites/janahoffmann/_repo/v4/vendor/craftcms/cms/src/templates/_layouts/cp.html:274
The front end of the site seems fine and still loads all the templates and entries.
I had just changed an asset field to use a different folder and they weren't loading on the front end so I went into utilities and tried clearing the database cache and that's when the admin stopped working.
I had recently named a block in my templates 'content' but it had been working fine for a little while and I tried renaming the block but that didn't fix anything.
I had noticed that there was a new craft update but hadn't got to it before so I tried using terminal to update it as per this docs page (since I can't get to the control panel update) https://docs.craftcms.com/v3/updating.html#updating-from-the-control-panel. Weirdly it says the following...
Craft isn’t installed yet!
Fetching available updates ... done You’re all up-to-date!
I took back ups and then tried clearing the storage/runtime/cache and compiled_templates folders, I restarted mamp and closed the browser but still nothing. I haven't messed around with anything outside the web or templates folder before this so I'm completely stumped as to what's happened and how to fix it.
Can anyone point me in the right direction?