Hi, I am hosting a ghost blog on heroku and am getting a 500 error "[post.hbs] Cannot read property 'length' of undefined" when trying to preview a draft of a post. I've tracked the issue down to the /core/server/helpers/has.js file, in which the var self = this; statement is returning undefined. However, I don't understand exactly what 'this' in that files context or how ti could be undefined.
Steps to Reproduce
Begin a new draft of a post from the admin panel.
Click the Post Settings button on the right hand side.
Click Preview
500 error
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
Issue Summary
Hi, I am hosting a ghost blog on heroku and am getting a 500 error "
[post.hbs] Cannot read property 'length' of undefined
" when trying to preview a draft of a post. I've tracked the issue down to the/core/server/helpers/has.js
file, in which thevar self = this;
statement is returningundefined
. However, I don't understand exactly what 'this' in that files context or how ti could be undefined.Steps to Reproduce
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
Technical details: