Support » Fixing WordPress » Hide SQL Errors?

  • In the event of an SQL error, is it possible to hide the error details from public view? Specifically, I would like to exclude the database name from the error, or the detailed error message all together?

    Thanks for any advice.

Viewing 1 replies (of 1 total)
  • Include these two lines at the bottom of your “.htaccess” file:

    php_flag display_errors off
    php_flag display_startup_errors off

Viewing 1 replies (of 1 total)
  • The topic ‘Hide SQL Errors?’ is closed to new replies.