I tried to setup my magento to my hosting. So i created a new database and i did import my sql file and changed the settings in the local.xml for the database. but now i’m getting Exception printing is disabled by default for security reasons.
closed as off-topic by Fabian Blechschmidt, brentwpeterson, Amit Bera♦, 7ochem, Marius♦ Jun 4 '15 at 19:26
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: http://sscce.org/" – Marius
Rename the local.xml.sample in /errors to local.xml and you would be able to see the error and the entire stack trace.
Caution: This can lead to a security loop hole if used on a production server. Make sure you revert it once the error is resolved.
PS: To be even more secure. Restrict magento access only to your IP while exception printing is enabled
Exception printing is disabled by default for security reasons
This is a page notifying you that a failure has occured that is so bad that Magento cannot run and is trying to tell you about it. Due to it being a stack trace that could notify unwanted parties that your site is so badly configured that it can be hacked, the Stack Trace that generated it is not displayed.
The number that shows up on that page every time Magento displays it is the name of a file.
Open up your SCP/SFTP client, navigate to your server directory
var/report, sort by file creation date and start reading through the most recent files there.
When you ask for help, you can then post the stack trace of the most current errors that are preventing your Magento site from running so we can actually give you some useful help.
I also got this issue, just Googled and found solution here, you can do as followed:
Locate the root directory where your Magento is installed. Search for “errors” directory.
Change the filename of
Reload the page where it shows error message, you will see a full list of error message – The purpose of rename
local.xmlis to allow the full error message to be shown.
magento_directory/lib/Zend/Cache/Backend/File.phpand look for:
protected $_options = array( 'cache_dir' => 'null', Replace it with: protected $_options = array( 'cache_dir' => 'tmp/', And save the file.
Now, go to Magento root directory and create a new directory with the name “tmp”.
Refresh the error page and see if the issue solved. Hope this helps
If you're getting a 404 error, try putting
/index.php after your domain name. If that takes you to the home page, then the problem is that you either forgot to copy the
.htaccess file (easy to do),
mod_rewrite is not installed or
AllowOverride is not set in your Apache config file. (I'm assuming that you're running on Apache, of course)
In error folder local.xml.sample is exist change the name to local.xml lib/Zend/Cache/Backend/File.php change the cache dir =null to tmp
Here is the solution:
- Navigate to the "errors" folder.
- Change local.xml.sample to local.xml
- You should now see a new list of crazy errors all over the Magento page - this is okay.
Open magento/lib/Zend/Cache/Backend/File.php and look for:
protected $_options = array( 'cache_dir' => 'null',
Change it to:
protected $_options = array( 'cache_dir' => 'tmp/',
- Save it.
- Now the final step is to go create a tmp folder in the root Magento folder.
- That's it.
The Easy and 100% working solution is rename cache file.
In Magento root folder var/cache
Then rename cache file name, and refresh your site.