{"id":6090,"date":"2024-06-13T10:00:03","date_gmt":"2024-06-13T08:00:03","guid":{"rendered":"https:\/\/ekiwi.de\/index.php\/6090\/output-php-error-if-only-a-white-page-is-displayed\/"},"modified":"2024-06-13T10:00:03","modified_gmt":"2024-06-13T08:00:03","slug":"output-php-error-if-only-a-white-page-is-displayed","status":"publish","type":"post","link":"https:\/\/ekiwi.de\/en\/index.php\/6090\/output-php-error-if-only-a-white-page-is-displayed\/","title":{"rendered":"Output PHP error if only a white page is displayed"},"content":{"rendered":"<p>White page and no error message, what to do if the PHP script does not want to.<\/p>\n<p><!--more--><\/p>\n<p>Recently I had the problem that a PHP script was not running for a customer. Instead, only a white page was displayed. The whole thing can often be solved with a <a href=\"https:\/\/ekiwi.de\/index.php\/462\/php-error-reporting-bei-hosteurope\/\">.htaccess file<\/a>, but unfortunately this was not supported in this specific case.<\/p>\n<p>Instead, I solved it like this:<\/p>\n<pre>\r\nerror_reporting(E_ALL);\r\nini_set(\"display_errors\", 1);\r\n<\/pre>\n<p>The lines activate error reporting and set the setting that PHP error messages are displayed in the browser. It is inserted at the beginning of the script.<\/p>","protected":false},"excerpt":{"rendered":"<p>White page and no error message, what to do if the PHP script does not want to.<\/p>\n","protected":false},"author":1,"featured_media":2228,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[882,870],"tags":[918],"class_list":["post-6090","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-en","category-programming","tag-apache-en"],"_links":{"self":[{"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/posts\/6090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/comments?post=6090"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/posts\/6090\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/media\/2228"}],"wp:attachment":[{"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/media?parent=6090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/categories?post=6090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/tags?post=6090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}