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

Warning: session_start(): Cannot start session when headers already sent in system/initialize.php on line 121
#0 [internal function]: __error(2, 'session_start()...', '/customers/c/f/...', 121, Array)
#1 system/initialize.php(121): session_start()
#2 index.php(19): require('/customers/c/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.