Welcome message out of the box regardless |
I know this has been discussed before but I do think that being able to immediately display the "Welcome_message" would be beneficial rather than having the unfriendly "Whoops! We seem to have hit a snag message..." appear...
May I propose the following additional JavaScript script which I think is far more informative: file: system/Cache/Handlers/FileHandler.php PHP Code: /** Please note the additional script always shows if and only the writable folder is not writable instead of the following exception: PHP Code: throw CacheException::forUnableToWrite($path);
Displaying an error 500 in an alert window with javascript is not a good idea and displaying information about your file system is a security risk.
This message is displayed in production only. In development you should see a lot more information, but in production you don’t want to display too much information when there’s an error. The error details should be written to the log file.
includebeer
Quote:Displaying an error 500 in an alert window with javascript is not a good ideaWhen CodeIgniter detects that the writable folder is not writable (0777) a http_request () result of 200 is displayed and not a 500. Quote:and displaying information about your file system is a security risk.There are currently about six error messages which can be displayed and easily changed because the error messages will not suit everybody. Quote:This message is displayed in production only.Agreed and it is nor informative to new users who have just downloaded and tried to run the application for the very first time. Quote:In development you should see a lot more information, but in production you don’t want to display too much information when there’s an error.There is a lot of documentation to and I believe it is not easy to change the default from "production". Displaying a suitable JavaScript messages could make it easier for new users to search for the relevant documentation. Quote:The error details should be written to the log file.If the writable folder is not writable then no error details can be written to the log file. I have set the online directory permissions to be read only and the results can be found here: https://ci4-strict.tk
The installation instructions are clear about the writable folder and the initial setup in general. The first step is to change the ENVIRONNEMENT variable and the permissions of the writable folder : https://codeigniter4.github.io/userguide...ion-set-up
If somebody know nothing about CodeIgniter and install it in production for the first time, then what can we do? It is just stupid. It’s not hard to test on a local server. |
Welcome Guest, Not a member yet? Register Sign In |