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
2.0.18b4: Vanilla silently Bonks and won't enter debug mode with missing Smarty cache #1108
Comments
Are you sure it didn't only complain during initial install, not upgrade? Good report, thanks for digging into this. |
It's possible it only complained during install, I don't clearly remember. |
Wrong button I guess |
Hm, this is probably going to introduce a bunch of new code into Vanilla because this stuff is all in the Smarty library, and Vanilla is distributed with that folder already in place, so you'd have to specifically delete that folder to cause this error. Given all that I'm going to bump this to the 2.1 milestone not the latest release. |
Note that this issue can be triggered by the php process not having access to the folders or it not-existing at all. The former I think may be common during installation with people who use different users to run php or their webserver. |
But because it's in the /cache folder they'll find that out during initial install - the install halts without write access to the cache, conf, and uploads folders. |
I should have said upgrade or installation. |
Perhaps just have the dashboard upgrade check for permissions just as install? The dashboard actually works fine for me when encountering this bug, you only get the Bonk page when viewing the actual forum. |
Yes, I wasn't saying it wouldn't be fixed, just said it probably wasn't going to get into this point release is all. |
Smarty gets so little use, and the custom functions don't create themselves. I'm to blame for suggesting it to mark in the first place. Back then I was obsessed with separation of concerns. Sorry. |
If the cache/Smarty/compile directory does not exist vanilla will always just give you a bonk page even if you add the Debug flag into the config file.
This gives you no indication whatsoever of what is causing the bonk. If I recall correctly at least previous version might have complained about the missing directory.
The text was updated successfully, but these errors were encountered: