cancel
Showing results for 
Search instead for 
Did you mean: 

Exception printing is disabled by default for security reasons.

Exception printing is disabled by default for security reasons.

I installed magento 2.1.6

 

after logging in to the backend i get this error message:

There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 935259304200

 

I have seen other posts but i couldn't solve the issue.

I have changed the local.xml.sample to local.xml to see the error:

 

Warning: is_dir(): open_basedir restriction in effect. File(/etc/pki/tls/certs) is not within the allowed path(s): (/home/signstuff/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/:/usr/local/php70/lib/php/) in /home/signstuff/domains/signstuff.nl/public_html/vendor/composer/composer/src/Composer/Util/RemoteFilesystem.php on line 914

 

Could someone help me with this.

1 REPLY 1

Re: Exception printing is disabled by default for security reasons.

Hello Signstuff,

 

It is a typical error, usually occurring at the time of Magento or an extension update. You might encounter this error while installing a Magento theme or module or if anything goes wrong with the cache folder.

 

The clash between components like themes or extensions induces the "Exception printing is disabled by default for security reasons" error in Magento 2. 

 

However, In order to fix the issue, you must follow the steps below,

 

  • Firstly, navigate to folder pub/errors and locate the file local.xml.sample
  • Now, rename the file local.xml.sample to local.xml in the same folder, i.e., pub/errors.
  • Lastly, set developer mode using the below command:
php bin/magento deploy:mode:set developer

If the issue persists, you need to follow the step below to clear the Magento cache,

 

Clear your cache:

 

In order to clear your cache, access your Magento installation folder,

  • Firstly, navigate to the var/cache folder and delete all the files.
  • Then, navigate to your Magento admin and navigate to below file path:
    System Cache Management Flush Cache Storage
  • Lastly, refresh your Magento site and check whether the issue is fixed.

 

Thus, I hope the above solution helps you to resolve the "Exception printing is disabled by default for security reasons" issue.

 

---------------------------

Regards,

Rex M


VPS Hosting | Magento Hosting