Warning: Use of undefined constant TL_PATH - assumed 'TL_PATH' (this will throw an Error in a future version of PHP) in system/config/localconfig.php on line 24
#0 system/config/localconfig.php(24): __error(2, 'Use of undefine...', '/customers/8/f/...', 24, Array)
#1 system/modules/core/library/Contao/Config.php(380): include('/customers/8/f/...')
#2 system/initialize.php(81): Contao\Config::preload()
#3 index.php(18): require('/customers/8/f/...')
#4 {main}

Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in system/initialize.php on line 119
#0 [internal function]: __error(2, 'session_set_coo...', '/customers/8/f/...', 119, Array)
#1 system/initialize.php(119): session_set_cookie_params(0, '/')
#2 index.php(18): require('/customers/8/f/...')
#3 {main}

Warning: session_start(): Cannot start session when headers already sent in system/initialize.php on line 120
#0 [internal function]: __error(2, 'session_start()...', '/customers/8/f/...', 120, Array)
#1 system/initialize.php(120): session_start()
#2 index.php(18): require('/customers/8/f/...')
#3 {main}
An error occurred

An error occurred

What's the matter?

An error occurred while executing this script. Something does not work properly.

How can I fix the issue?

Open the system/logs/error.log file and find the associated error message (usually the last one). You can also add the following line to the local configuration file and reload this page:

$GLOBALS['TL_CONFIG']['displayErrors'] = true;

However, please be aware that anyone will be able to see error messages on your website then!

Tell me more, please

The script execution stopped, because something does not work properly. The actual error message is hidden by this notice for security reasons and can be found in in the system/logs/error.log file (see above). If you do not understand the error message or do not know how to fix the problem, search the Contao FAQs or visit the Contao support page.

To customize this notice, create a custom template file named templates/be_error.html5.