0

I get this error on a webpage created for mobiles:

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /customers/6/6/1/chromium.no/httpd.www/mobil/start.php:1) in /customers/6/6/1/chromium.no/httpd.www/mobil/start.php on line 1

I have been trying to read up on what the problem could be, but all the answers is about header-output before the session_start() is called. As you can see, the output is happening on line 1, but line 1 is:

<?php session_start(); ?>

This is the full start of my document:

1: <?php session_start(); ?>
2: 
3: <!DOCTYPE html>
4: <html>
5: <head>
6: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7: <meta charset="UTF-8">
8: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>

So I can't see that something is output in header before session_start() has been called....

I would appreciate any help given!

Thanks!

Alexander N
  • 160
  • 1
  • 10
  • Thank you for you answer mario, but I can't get the help I need in that earlier question/answer. The message tells me that the header is already sent...before line 1.... I recon I've done it right, with session_start() on line 1 and rest of the HTML-header after.... – Alexander N Jun 18 '15 at 22:41
  • No white space there, but the second one was a direct hit :) The issue was resolved by choosing UTF-8 (without BOM) under "Format" in Notepad++. Saved the file again, and uploaded it. No more error messages! Thanks! – Alexander N Jun 18 '15 at 23:01
  • see it was a dupe :-) –  Jun 18 '15 at 23:02

0 Answers0