Post by shenzhen_bt2@126.com » Mon Jan 29, 2018 3:25 pm

Hi everybody,

I encountered an error described as: https:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/xxx.com/config.php:1) in /home/xxx/xxx.com/system/library/session.php on line 21.

This happened after we edited the config.php in both admin and main site folder to HTTPS:

// HTTPS
define('HTTPS_SERVER', 'https://www.domain.com/');
define('HTTPS_CATALOG', 'https://www.domain.com/');
define('HTTPS_IMAGE', 'https://www.domain.com/image/');
define('HTTPS_ADMIN', 'https://www.domain.com/admin/');

Even though we enabled SSL in the dashboard, this error still happened, not sure why, thank you for your assistance and help.

BT


Posts

Joined
Mon Jan 29, 2018 3:12 pm

Post by synapseindia » Mon Apr 09, 2018 9:18 pm

Please check your index file or config file. Make sure no line break after PHP tag start .

Code: Select all

<?php /* Your Code  */ ?>
Also you can follow the below link for more information . https://stackoverflow.com/questions/802 ... es#tab-top

User avatar
Active Member

Posts

Joined
Thu Apr 05, 2018 2:27 pm

Post by MrPhil » Tue Apr 10, 2018 2:17 am

The error message is telling you that output (tags and/or text) is being sent to the browser at the very first line of config.php. That means you have something before the opening <?php. It may be as simple as an extra carriage return or a blank line. Some editors are notorious for adding such stuff, or a UTF-8 BOM, at the beginning of a file. The <?php should be the very first characters of the file.

User avatar
Active Member

Posts

Joined
Wed May 10, 2017 11:52 pm
Who is online

Users browsing this forum: No registered users and 52 guests