Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By peterk900 on
How can I suppress warning messages in the front end ? Thanks.
Comments
Try inserting the following
Try inserting the following in the settings.php:
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...
Try the following module:
Try the following module:
https://www.drupal.org/project/disable_messages
spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...
Both work... Thanks
Both the change to settings.php and using the module have removed the message. The module seems to offer more granular control though and I am testing this with various simulated errors. Thanks for these two solutions.