-
Notifications
You must be signed in to change notification settings - Fork 381
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
Ghost 0.4 Broke Template #47
Comments
I guess that exception is thrown here: it might be one of those : |
Not only does it shows 500 error, but also in the frontpage the post descriptions are 2-3 words only. Have a look at the mess in http://www.subho.me/ |
@subho007 At least you got it to work, mine doesn't even work. How did you get your's to work, what did you change? |
ahhh, made it working atlast, Here's what I did @jfreak53
|
Ok, that |
Or even edit a post :( |
@jfreak53 it works perfectly on my side, can you paste the error message which comes? |
That seems strange that everything has to be 755, that's really bad permissions on a linux machine for web files. The error message is still the one I posted above, the 500 error. |
@jfreak53 755 permission is not bad, 777 permission is bad. 755 gives the groups and everyone the right to read and execute the file. They cannot write to the file. 777 would permit writing to the file by the group and everyone |
Nope, still same problem after 755 everything:
I don't understand how the default template works fine without doing the 755 but this template does not. Seems to be something in the template not directory permissions. That being said, 755 didn't fix it. |
@jfreak53 also can you clarify, when do you see the error? do you see the error when inside |
Frontpage only. |
I am seeing the same issue. Can you explain the change you made to list.hbs?
|
Im testing it right now and everything is working just fine. :/ Have you guys changed something in Ghostium/Ghost? I tested on Windows 7 with Node |
Ahhh I found the problem now, this is due to the issue at TryGhost/express-hbs#23 (even though the issue is fixed, but I still doubt it) Any themes with partial is facing this problem in a freshly installed Ghost with The fix is simple, do an |
@oswaldoacauan the first time it's loaded, it appears correctly. I reload the page and receive the same error message detailed in this thread. My install is clean, same as you, 0.10.24, but on linux. @subho007 your proposed fix did not resolve the problem for me. I saw no difference. And yes, I restarted ghost after npm install. |
@robraux Im at work right now, will take a look at this later at home |
Same thing, I did |
FYI, for me this is upgraded from Ghost 0.3 not a clean install as I already have a blog running on 0.3 and needed to upgrade. For upgrade I followed Ghosts instructions on their site. |
Same problem here. First visit: all fine. Second: 500 error "You must pass a string or Handlebars AST to Handlebars.compile. You passed function (context, options) { if (!compiled) { compiled = compileInput(); } return compiled.call(this, context, options); }" Only on front page, backend works. |
Same problem, did |
Yeah, just wanted to chime in to say that I'm having this issue too. Upgrading from ghost 0.3.3 to ghost 0.4. Tried an |
Also having this issue. In addition, I just did a fresh install of Ghost 0.4, a fresh clone of ghostium, and ran into the same 500 error as when I had upgraded. First visit was fine, second visit threw the error, only on front page. |
Also having the issue, for the first minutes it's okay, then it throws the same error at first post. Also, as mentioned, front page was showing only 2-3 words, unlike it should more. The admin panel works nice though. I've swithched back to casper for now. |
Can you guys tell me these infos?
|
|
I'm using RedHat Openshift, both updating Ghost from 0.33 to 0.4 and 0.4 clean installation gives me the issue, if that would help. |
Sorry about the "SO" typing error, i mean OS (operating system). |
@oswaldoacauan Oh Okay then. Both on OpenShift's auto Ghost installer+update, and node.js + manual clean installation, the issue remains for me. |
Ohh, on that system I'm running Ubuntu 13.04 |
@subho007 Actually I was not able to reproduce this bug in express-hbs. I created tests to try and reproduce and could not. Also the code above bypasses express-hbs and sets properties on the internal handlebars.partials[] collection. The preferred method, which express-hbs uses, is |
@mgutz this is the fault of Ghost, you can have a look at https://github.com/TryGhost/Ghost/blob/master/core/server/helpers/template.js which is responsible for this error. recreating it from the above code should be able to reproduce the issue. The fault is at |
@subho007 okay, what you said makes sense. unfortunately it had no effect at all :/ Of course I did all the necessary reloads and restarts... |
@voigt check once more if you have made the changes in |
@subho007
The problem persists. First load: everything works. Reload: Error 500. Backend and blogposts do work... node version edit |
@voigt Please try npm install express-hbs@0.7.0-pre in the ghost directory. Ghost is using an old version of express-hbs. |
Also the correct commands for chmod should be:
You don't want to make all your files executable |
Still no progress with production mode. Even after deleting the old express-hbs... Just an idea: temporary Another idea: is |
@mgutz just installed express-hbs@0.7.0-pre and that solved the problem. |
I'm running in the official ghost hosted platform (Version: 0.4.0-moya1), I implemented the comment fix in featured.hbs (yes it's definitely not the one in /src/). The only time I get the 500 error is after I go into the admin section and edit/ create a post. I can fix it by re-uploading the zip of Ghostium through Ghost.org. Thought you'd be interested as I saw nobody above using the hosted platform with this issue |
@MikeyJck same here however changing a src/ file fixed an issue? |
@bondarewicz, @MikeyJck Please try |
|
@mgutz "running in the official ghost hosted platform" |
@bondarewicz have no idea what that means, never installed ghost until this issue was linked from express-hbs issues |
Sorry I've been lazy with explanation... I meant that @MikeyJck and myself are using ghost hosted version on their platform. As far as I'm aware you cannot install/upgrade anything yourself. |
npm install express-hbs@0.7.3-pre and restarting worked for me. Thanks! |
Just to add to the numbers, I'm also using ghost.org to host and have tried numerous times to modify and upload the .zip file but each time I get the 500 error after I add/edit a post. |
I installed express-hbs@0.7.5-pre and 500 error is gone. However, I still have an excerpt that is being cut at 12 characters. I have updated list.hbs with no change in excerpt. Ghost = self hosted. |
@ddonovan I have no idea how Ghost hosting works but in my case I had to restart Node, I don't expect them to let you do that manually (maybe ask nicely) |
@carroarmato0 For the time being I just removed the line to include featured.hbs from index.hbs. Things seems to work good now.
|
@ddonovan where did you make this edit? |
Mikey, I made the change inside index.hbs -
|
@ddonovan thanks dude, I'll try that and get back to you |
Ghost 0.4.1 is out and resolves this issue, so this can probably be closed now. |
@ErisDS 👍 thanks Hannah |
I just upgraded to Ghost 0.4 and it seems to break the template. On the main page I get this 500 error:
You must pass a string or Handlebars AST to Handlebars.compile. You passed function (context, options) { if (!compiled) { compiled = compileInput(); } return compiled.call(this, context, options); }
Post pages and Static pages work perfectly fine if I manually type in the url. But the main page seems to be broken when using this template. I know it's the template as when I change to the default theme it works.
The text was updated successfully, but these errors were encountered: