TryGhost / Ghost

Independent technology for modern publishing, memberships, subscriptions and newsletters.
https://ghost.org
MIT License
47.17k stars 10.27k forks source link

[Bug] Full Screen Post Preview giving 500 error #9570

Closed ErikAGriffin closed 6 years ago

ErikAGriffin commented 6 years ago

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 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

  1. Begin a new draft of a post from the admin panel.
  2. Click the Post Settings button on the right hand side.
  3. Click Preview
  4. 500 error

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?

Technical details:

vikaspotluri123 commented 6 years ago

Duplicate of #9567 😉

kevinansfield commented 6 years ago

Closing as a duplicate of https://github.com/TryGhost/Ghost/issues/9567. New release containing a fix will be out tomorrow.