Discussions
undefined method `to_sym' for nil:NilClass and Images giving internal server error
When syncing my content to local or to deploy to another environment (using wagon) I get the error undefined method `to_sym' for nil:NilClass and can't deploy but my current production env is working, although it's giving me the error on deploy and the uploaded images are throwing the internal server error
Posted by Diogo Sobreira over 1 year ago
Sync problem (Malformed YAML / undefined method 'to_sym')
I have an issue where I can deploy my site and it works perfectly in production, but on syncing the site locally I get the following error:
`Malformed YAML in this file /.../Sites/Wagon/.../data/years.yml, error: undefined method 'to_sym' for 2014:Fixnum`
The data/years.yml file looks like this:
```
- 2014:
_slug: '2014'
name: 2014
projects:
- residency-works
```
Posted by Harry Blackett over 8 years ago