|
Why am I getting all these warnings and notices and errors? |
|
Thursday, 27 December 2007 |
|
PHP, an underlying technology to Joomla and PUArcade, has a configurable level of error reporting. Depending on how it is set, it will show different levels of warnings, errors, and notices. Most people suggest that on a production website, you should not show any of these error messages. The reason is that the error messages can sometimes give away dangerous security information about your website. So, you should disable error reporting on your website. Doing this will also get rid of all these informational notices you may be seeing in PUArcade and other components. Here are some options: 1. If you are on shared hosting, that is, you have a web host, you can ask them to either "disable php error reporting" or to "redirect your errors to a log". You can usually enter a trouble ticket with them to do this. Many good hosts redirect your php errors to a log without you having to ask. 2. If you own the webserver yourself, you can edit the php.ini file. There is a value in there called "Error_reporting". Find that value in the file and change it according to the comments in the file to reduce the error reporting level. 3. You can try adding this to your .htaccess file. You should find this file in the root of your website. You can edit this file with a text editor, and upload/download it with FTP: | Code: | php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off
| This may or may not work, depending on your host. 4. You can also try pasting this code towards the top of PUArcade.php:
| Code: : | @error_reporting(0);
| This may or may not work, depending on your host.
|
|
Last Updated ( Monday, 12 May 2008 )
|