Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Parse error in English.php after any changes
I've made it so all new members are automatically granded membership status when signing up, so I'm trying to change the text on the sign in and sign up pages so they don't talk about membership approval.
I found the English.php file that looks to be what I need to change. However, if I make any changes to that file, I get a "Parse error: parse error in /home/apowell/symbolicorder.com/html/discussions/languages/English.php on line 722".
This is happening no matter how small or large the change and the line number appears to be more or less random.
Any suggestions? Thanks.
0
This discussion has been closed.
Comments
If you are using quotes, be sure to escape them. I think that's been the most common mistake with the language file.
Example:
BAD:
$Dictionary["something"] = "She was like "what?" and I was like "Totally!"";
GOOD:
$Dictionary["something"] = "She was like \"what?\" and I was like \"Totally!\"";
You know what? (And this makes me feel pretty dumb.) I figured out what was going on. The file's 57k. So I was hitting "refresh" on my browser before it had finished uploading after saving the changes. I'm used to files uploading nearly instantly and this one's just taking longer. So there was a parse error because the file wasn't complete.
Sigh. So it works. Thanks for the help. (And thanks for this amazing forum software.)