Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when app/views/pages/content_type_template.liquid is present #362

westonganger opened this issue May 9, 2019 · 2 comments


None yet
2 participants
Copy link

commented May 9, 2019

The page wouldnt load with a Steam error:

#<NoMethodError: undefined method `_label' for nil:NilClass>
  Error: undefined method `_label' for nil:NilClass
  /home/myuser/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/locomotivecms_steam-1.5.0.rc0/lib/locomotive/steam/liquid/tags/link_to.rb:36:in `label_from_page'

To fix I had to delete folders and files until I found which one was the culprit.

Turns out I accidentally placed a content_type_template.liquid file at app/views/pages/content_type_template.liquid Once I removed this file the site loaded correctly again.

This was a super unhelpful error message for this case. Wouldve been better if we raised a more specific error in cases like this.

@did did added the enhancement label May 13, 2019


This comment has been minimized.

Copy link

commented May 13, 2019

Interesting. Placing content_type_template.liquid at the root folder might be sometimes the expected behavior. Except in your case :-) Do you have the full stack trace of the error?


This comment has been minimized.

Copy link
Contributor Author

commented May 14, 2019

Sorry im having trouble reproducing this issue. It seems to be working correctly now. Feel free to close.

@did did closed this May 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.