Prevent the display of PHP's strict warnings with the Disable Messages module
If you're using Drupal 6 and you are on a server which is running PHP 5.4 you may see errors like:
strict warning: Non-static method view::load() should not be called statically in /usr/www/users/whatever/modules/acquia/views/views.module on line 906.
strict warning: Declaration of views_handler_field_file::init() should be compatible with views_handler::init(&$view, $options) in /usr/www/users/whatever/modules/acquia/views/modules/system/views_handler_field_file.inc on line 52.Obviously, the best solution would be to fix the modules causing the errors, but due to the requirement of Drupal 6 to support PHP 4, certain things can't be changed. The next best thing would be to upgrade to Drupal 7, but if that's not possible you can use the Disable Messages module to suppress those messages.
Browse to admin/settings/disable-messages and make sure "Enable filtering" is checked, then put this in the "Messages to be disabled:" field:
^.*strict warning.*\.
Keep in mind that users with the administrative role will continue to see messages unfiltered (this is configurable based on permissions).
Another method to prevent seeing these errors: Turn off displaying of errors to the screen, and only record them in the log by choosing "Write errors to the log" on the "Error reporting" configuration page at admin/settings/error-reporting
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion