{"id":4890,"date":"2022-07-04T16:20:33","date_gmt":"2022-07-04T13:20:33","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=4890"},"modified":"2023-03-02T11:36:21","modified_gmt":"2023-03-02T09:36:21","slug":"how-to-enable-joomla-php-error-reporting","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/how-to-enable-joomla-php-error-reporting\/","title":{"rendered":"How to Enable Joomla PHP Error Reporting"},"content":{"rendered":"\n<p>When Joomla causes problems, it\u2019s often due to a software bug or coding error. Ideally, you will get an error report, deal with the issue, and carry on. But what if your <strong>Joomla site stops working<\/strong> and leaves you in complete darkness about what\u2019s happening?<\/p>\n\n\n\n<p>Error messages may not be popping up because the default settings aren\u2019t <strong><em>sensitive<\/em> <em>enough<\/em><\/strong> to trigger a response. That\u2019s why we need to turn up the error reporting knob, so to speak! After setting it to maximum, it\u2019s much easier to detect errors and respond to them immediately.&nbsp;<br>Every step you need to take is right here in this guide\u2013how to access the Joomla configuration file from the admin panel and<strong> how to enable Joomla PHP error reporting<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Error-Reporting-in-Joomla\"><strong>Error Reporting in Joomla: What are your options?<\/strong><\/h2>\n\n\n\n<p><strong>You can switch between Joomla\u2019s five levels of error reporting at any time:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>None<\/strong>\u2014This option<em> disables PHP error reporting<\/em>. If you get tired of guessing what the problem could be, you can always turn it back on.<\/li>\n\n\n\n<li><strong>Simple<\/strong>\u2014This level overrides the server default settings and provides the bare minimum for error reporting.&nbsp;&nbsp;<\/li>\n\n\n\n<li><strong>System Default<\/strong>\u2014A preset level of the Joomla install. It\u2019s what most people continue to use if they never run into problems. These settings are found in the <a href=\"https:\/\/www.scalahosting.com\/kb\/what-is-php-ini\/\"><em>php.ini file<\/em><\/a>.&nbsp;<\/li>\n\n\n\n<li><strong>Maximum<\/strong>\u2014This is a diagnostic error reporting level for when you need to troubleshoot and solve all possible issues.&nbsp;<\/li>\n\n\n\n<li><strong>Development<\/strong>\u2014You can set your error reporting to this level and receive the same complete reporting that Maximum provides. The Development option used to include errors added in future upgrades, but since <strong>PHP 5.4<\/strong> &#8211; Maximum includes that as well.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/system-default-1.jpg\"><img decoding=\"async\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/system-default-1.jpg\" alt=\"How to Enable Joomla PHP Error Reporting, Error Reporting in Joomla: What are your options?\" class=\"wp-image-65461\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Option-1\"><strong>Option 1: The Joomla Admin Panel<\/strong><\/h3>\n\n\n\n<p>Of the two methods for enabling PHP error reporting, using <strong>Joomla\u2019s administrator panel<\/strong> is the least technical. To achieve this, log in to the Joomla dashboard and go to <strong>System<\/strong> &gt; <strong>Global Configuration<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/global-configuration-1.jpg\"><img decoding=\"async\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/global-configuration-1.jpg\" alt=\"How to Enable Joomla PHP Error Reporting, Option 1: The Joomla Admin Panel\" class=\"wp-image-65460\"\/><\/a><\/figure>\n\n\n\n<p>After you click on <strong>Global Configuration, <\/strong>the administration page will appear. It looks a little something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/server-settings-1.jpg\"><img decoding=\"async\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/server-settings-1.jpg\" alt=\"How to Enable Joomla PHP Error Reporting, Option 1: The Joomla Admin Panel 2\" class=\"wp-image-65459\"\/><\/a><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on the <strong>Server<\/strong> tab.<\/li>\n\n\n\n<li>Find the <strong>Error Reporting<\/strong> drop-down menu where it says <strong>System<\/strong> <strong>Default<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Select the <strong>Maximum<\/strong> or <strong>Development<\/strong> error reporting option.<\/li>\n\n\n\n<li>Click on <strong>Save &amp; Close<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p>And that\u2019s it! You can always follow the same steps to change the reporting level again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Option-2\"><strong>Option 2: Joomla\u2019s configuration.php file<\/strong><\/h3>\n\n\n\n<p>The previous option takes advantage of<strong> Joomla\u2019s tidy graphical user interface<\/strong> but using the<strong> PHP config file <\/strong>will take straight to the code. While this may sound like a more challenging route, it&#8217;s actually a shortcut.<\/p>\n\n\n\n<p>All we have to do here is <strong>find the error reporting line<\/strong> in the config file and <strong>change the word \u2018<em>default<\/em>\u2019 to \u2018<em>maximum<\/em>\u2019 or \u2018<em>development<\/em>.\u2019<\/strong><\/p>\n\n\n\n<p class=\"alert-green\"><strong>NOTE:<\/strong> If you\u2019ve already set your error reporting level to <em>Maximum <\/em>or <em>Development <\/em>using <strong>Option 1<\/strong>, change it back to <strong>System Default<\/strong> from your Joomla admin page before you try <strong>Option 2<\/strong>.&nbsp;<\/p>\n\n\n\n<p>1. In the folder that has your Joomla installation files, <strong>find and open the configuration.php file<\/strong>. It looks slightly different depending on whether you\u2019re using your local computer or a remote virtual server.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>Joomla folder tree in a local computer:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/configuration-php-1.jpg\"><img decoding=\"async\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/configuration-php-1-469x1024.jpg\" alt=\"How to Enable Joomla PHP Error Reporting, Option 2: Joomla\u2019s configuration.php file\" class=\"wp-image-65458\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>From a remote virtual server:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/configuration-php2-1.jpg\"><img decoding=\"async\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/configuration-php2-1-484x1024.jpg\" alt=\"How to Enable Joomla PHP Error Reporting, Option 2: Joomla\u2019s configuration.php file 2\" class=\"wp-image-65456\"\/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>2. In the PHP config file, locate the line stating:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>public $error reporting = \u2018default\u2019;<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/error-reporting.jpg\"><img decoding=\"async\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/error-reporting.jpg\" alt=\"How to Enable Joomla PHP Error Reporting, Option 2: Joomla\u2019s configuration.php file 3\" class=\"wp-image-65452\"\/><\/a><\/figure>\n\n\n\n<p>3. Change the \u2018<strong>default<\/strong>\u2019 value to \u2018<strong>maximum<\/strong>\u2019 or \u2018<strong>development<\/strong>\u2019 and save.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/error-reporting-maximum.jpg\"><img decoding=\"async\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/error-reporting-maximum.jpg\" alt=\"How to Enable Joomla PHP Error Reporting, Option 2: Joomla\u2019s configuration.php file 4\" class=\"wp-image-65453\"\/><\/a><\/figure>\n\n\n\n<p>That\u2019s all you need to do! Naturally, we should always check to see if it works afterwards.<\/p>\n\n\n\n<p>Return to your Joomla administrator panel via <strong>System<\/strong> &gt; <strong>Global Configuration<\/strong> &gt; <strong>Server<\/strong>&nbsp; &gt; <strong>Error Reporting<\/strong>. If you see the error reporting level now stating <strong>Maximum<\/strong>\u2013well done, all changes have been applied correctly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/error-reporting-maximum2.jpg\"><img decoding=\"async\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/06\/error-reporting-maximum2.jpg\" alt=\"How to Enable Joomla PHP Error Reporting, Option 2: Joomla\u2019s configuration.php file 5\" class=\"wp-image-65454\"\/><\/a><\/figure>\n\n\n\n<p>Suppose, after all this, you still have problems with your <a href=\"https:\/\/www.scalahosting.com\/joomla-hosting.html\"><strong>Joomla website<\/strong><\/a>. If that\u2019s case, it may be time to upgrade your server. For the best Joomla experience, ScalaHosting recommends the ease and power of a <a href=\"https:\/\/www.scalahosting.com\/managed-cloud-hosting.html\"><strong>managed VPS plan<\/strong><\/a>.&nbsp;<\/p>\n\n\n\n<p>A virtual server combines the full customization control of your local system with the <strong>speed<\/strong>, <strong>storage capacity<\/strong>, and <strong>security <\/strong>of the cloud. In other words, you can easily optimize your entire hosting performance without losing anything.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.scalahosting.com\/contact-us.html\"><strong>Contact the team at ScalaHosting<\/strong><\/a> for more information about PHP error reporting and upgrading your Joomla site to make it safer, faster, and easier to use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"FAQs\">FAQs<\/h2>\n\n\n\n<p><strong>Q:<\/strong> <strong>What is Joomla used for?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> <strong>Joomla is a content management system (CMS)<\/strong>. Similar to <strong>WordPress<\/strong>, you can use the platform to publish content on the web. It\u2019s a free and <strong>open-source software <\/strong>program you can install directly to your local system or set up on a remote hosting server.<\/p>\n\n\n\n<p><strong>Q:<\/strong> <strong>Is Joomla as good as WordPress and Drupal?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> Although<strong> Joomla, WordPress<\/strong>, and <strong>Drupal<\/strong> are all popular content management systems, they have their differences. Drupal is more suitable for developers looking for customization freedom. Both WordPress and Joomla are accessible to anyone with little to no technical experience, but <strong>Joomla is compatible with more programming languages.<\/strong><\/p>\n\n\n\n<p><strong>Q:<\/strong> <strong>What is PHP?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> <strong>PHP (Hypertext Preprocessor) <\/strong>is a popular scripting language for managing dynamic content, databases, session tracking, and building websites. <em>PHP is a server-side scripting language, whereas something like JavaScript is a client-side scripting language. It integrates with several popular databases like MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.<\/em><\/p>\n\n\n\n<script type=\"application\/ld+json\">\n    {\n      \"@context\": \"https:\/\/schema.org\",\n      \"@type\": \"FAQPage\",\n      \"mainEntity\": [{\n        \"@type\": \"Question\",\n        \"name\": \"What is Joomla used for?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Joomla is a content management system (CMS). Similar to WordPress, you can use the platform to publish content on the web. It\u2019s a free and open-source software program you can install directly to your local system or set up on a remote hosting server.\"\n        }\n      }, {\n        \"@type\": \"Question\",\n        \"name\": \"Is Joomla as good as WordPress and Drupal?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Although Joomla, WordPress, and Drupal are all popular content management systems, they have their differences. Drupal is more suitable for developers looking for customization freedom. Both WordPress and Joomla are accessible to anyone with little to no technical experience, but Joomla is compatible with more programming languages.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"What is PHP?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"PHP (Hypertext Preprocessor) is a popular scripting language for managing dynamic content, databases, session tracking, and building websites. PHP is a server-side scripting language, whereas something like JavaScript is a client-side scripting language. It integrates with several popular databases like MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.\"\n        }\n      }]\n    }\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>When Joomla causes problems, it\u2019s often due to a software bug or coding error. Ideally, you will get an error report, deal with the issue, and carry on. But what if your Joomla site stops working and leaves you in complete darkness about what\u2019s happening? Error messages may not be popping up because the default [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":5394,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[69],"tags":[],"class_list":["post-4890","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-joomla-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/4890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=4890"}],"version-history":[{"count":10,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/4890\/revisions"}],"predecessor-version":[{"id":5433,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/4890\/revisions\/5433"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media\/5394"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=4890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=4890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=4890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}