Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Oops, an error occurred! Code: 201601301501048.." in TYPO3 7.6

I installed the TYPO3 version 7.6 and after adding extension to my page I got the error:

"Oops, an error occurred! Code: 201512031647523f4d731f"

I am not getting meaning of this error and I also enable 'displayErrors' => 1, in local configuration but still not get meaningful error.

enter image description here

like image 894
Vishal Tanna Avatar asked Dec 03 '15 11:12

Vishal Tanna


2 Answers

You need to switch off the "Content Object Exception Handler", which is an exception handler in new versions. If a content element/plugin throws an exception, it does no longer take down the whole site, but only itself. To disable it, set

config.contentObjectExceptionHandler = 0

Reference

Don't forget to re-enable the exception handler when going live, and in your live system, you can find the exception trace in your log files. Basically what Viktor Livakivskyi says in the other answer.

like image 162
Jost Avatar answered Nov 17 '22 22:11

Jost


Basically it is date + hash, which makes each of such errors unique.

For development environment you may turn it off, as @Jost suggested.

But for production this is crucial to let it be turned on, so if some of your plugins or TS libs fails, it will not break the complete output and show "Oops an error occurred" without any info, but the message, you see now with a code.

The real user of a website can then report this code to you, and you can search for this code in your TYPO3 error log, which is by default located under typo3temp/logs/, unless you configured it different.

So, this feature really easies your life to find out user-generated errors.

like image 40
Viktor Livakivskyi Avatar answered Nov 18 '22 00:11

Viktor Livakivskyi