-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
i18n error: path "errors.models.posts.postNotFound" was not found #9519
Comments
Hey! Thanks for your report.
Indeed the key does not exist, it must be But, this should not cause your problem, because the i18n library falls back to a valid key. I can't reproduce what you are reporting. The error is only thrown if you are trying to edit an existing post which does not exist in the database. Are using a special setup or a custom client? |
refs #9519 - `errors.models.posts.postNotFound` -> wrong - `errors.models.post.postNotFound` -> correct - the i18n lib just logs the error and falls back to a valid error key - wrong i18n keys will never break Ghost
I did not do a special installation, re-install with this error. met again with the same error. |
@mertcangokgoz Can you pls swing by our slack community? It's easier to figure this out in a chat. We can leave this issue open till we know what causes your problem. |
@kirrg001 I tried node version 8.9, so maybe it will not give an error. but it still gives an error, Nothing changed note: im coming slack |
@kirrg001 I threw together something to look for other translation strings that don't exist: Assumed to be run from the root of the repo, it does take a little while - maybe 30secs:
Current output: jq: error: syntax error, unexpected '|', expecting FORMAT or QQSTRING_START (Unix shell quoting issues?) at <top-level>, line 1:
if (.errors.api. | length) > 0 then empty else ".errors.api." end
jq: 1 compile error
jq: error: syntax error, unexpected '|', expecting FORMAT or QQSTRING_START (Unix shell quoting issues?) at <top-level>, line 1:
if (.errors.api. | length) > 0 then empty else ".errors.api." end
jq: 1 compile error
".errors.api.themes.invalidRequest"
jq: error: syntax error, unexpected '|', expecting FORMAT or QQSTRING_START (Unix shell quoting issues?) at <top-level>, line 1:
if (.notices.data.validation.index.validationFailedTypes. | length) > 0 then empty else ".notices.data.validation.index.validationFailedTypes." end
jq: 1 compile error
".warnings.helpers.get.mustBeCalledAsBlock" The errors are from places where we use concatenation, and the key ends with a The 2 keys that are output on their own are missing keys:
|
@ErisDS Cool thanks 👍
I will add them next Monday, it won't break anything. |
👍I know, just thought it would be useful to have a command to run to check this. Maybe wire it up as a grunt/yarn command 😬 |
Definitely. You are the queen of shell piping 🚬 |
@mertcangokgoz Did you swing by our slack channel? |
@kirrg001 I resolved the error, downgraded the nodejs(version 6.8) |
@mertcangokgoz You downgraded from 6.9 to 6.8? |
@kirrg001 unfortunately yes, I have not been successful in latest versions |
That is weird. I'll do some more testing on Monday. If i can't reproduce, i have to close this issue. Thanks for coming back :) Very helpful |
@mertcangokgoz I wasn't able to reproduce. Do you have any more information? Steps to reproduce...? |
Hi @kirrg001 explain the situation step by step
|
@mertcangokgoz How did you install Ghost on Ubuntu? Did you follow our installation guide https://docs.ghost.org/docs/install? |
Yes, I used the official document. |
Hello @kirrg001 I tried to use the newly released nodejs version 8.11.1, I finished the installation without a problem (Ghost 1.22.1 and Sqlite3) and works perfect note: I still can not understand the cause of the problem. |
@mertcangokgoz Thanks for coming back. I wasn't able to reproduce this at all. Maybe it was a permission problem or a problem with the database. If you encounter it again, please open a discussion in our forum 💫 |
refs #9519 - discovered by #9519 (comment)
I'm getting the following error when adding and deleting content
Technical details:
The text was updated successfully, but these errors were encountered: