{"id":1595,"date":"2019-02-08T10:35:53","date_gmt":"2019-02-08T10:35:53","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583197-how-to-turn-off-php-error-messages-in-hostinger\/"},"modified":"2026-08-10T10:06:58","modified_gmt":"2026-08-10T10:06:58","slug":"1583197-how-to-turn-off-php-error-messages-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583197-how-to-turn-off-php-error-messages-in-hostinger\/","title":{"rendered":"How to turn off PHP error messages in Hostinger"},"content":{"rendered":"<p>Turn off PHP error messages in Hostinger if you don&rsquo;t want errors displayed on your website.<\/p><h2 id=\"h-disable-php-error-messages\">Disable PHP error messages<\/h2><p class=\"no-margin\">If you do not want PHP errors to be displayed on your website, all you need to do is open <b><a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/hosting\/\" target=\"_blank\" rel=\"noopener\">Hosting<\/a><\/b> &rarr; <b>Dashboard<\/b>, search for <b>PHP Configuration<\/b> on the sidebar and click on it:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/209aeea3-852d-4808-ab93-50730301bbb2.jpg\" alt=\"Hostinger hPanel sidebar with PHP Configuration option highlighted under Advanced\" data-media-id=\"5502\"><\/div><p class=\"no-margin\">Once there, open the <b>PHP options<\/b> page and remove a checkmark from <b>displayErrors <\/b>(display_errors) parameter. If you do not want errors to be logged as well, remove a checkmark from <b>logErrors <\/b>(log_errors) as well:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-15092\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-10_17-06_1.png\" alt=\"\" width=\"1320\" height=\"537\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-10_17-06_1.png 1320w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-10_17-06_1-300x122.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-10_17-06_1-1024x417.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-10_17-06_1-768x312.png 768w\" sizes=\"(max-width: 1320px) 100vw, 1320px\" \/><\/div><p class=\"no-margin\">Make sure to <b>save changes<\/b> before leaving the page.<\/p><p><strong>NOTES<\/strong><\/p><ul>\n<li class=\"no-margin\">If the mentioned parameters were not chosen or errors keep displaying even after disabling them, check <b><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1583189-how-to-hide-errors-and-warnings-on-your-website-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">additional options for disabling errors<\/a><\/b>.<\/li>\n<li>If you&rsquo;re looking to enable them instead for debugging, see <a href=\"https:\/\/www.hostinger.com\/support\/4259219-how-to-display-php-error-messages-in-hostinger\/\">how to display PHP error messages in Hostinger.<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Disabling PHP error messages<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[231],"tags":[],"class_list":["post-1595","post","type-post","status-publish","format-standard","hentry","category-php-errors"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583197-how-to-turn-off-php-error-messages-in-hostinger\/","default":1},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583197-comment-desactiver-les-messages-d-erreur-php-sur-hpanel-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583197-bagaimana-cara-menonaktifkan-notifikasi-php-error-di-hpanel-hostinger\/","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/1583197-como-desativar-as-mensagens-de-erro-php-no-hpanel\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583197-----\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1595"}],"version-history":[{"count":3,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1595\/revisions"}],"predecessor-version":[{"id":15093,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1595\/revisions\/15093"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}