Hi I have a php file that is empty and the only line of code in there is
<?php session_start(); ?>
No html mark-up or any php code besides the code above.
On localhost it doesn't trigger an error, but when it's on the server and I visit the page, a new line is printed on the error log that says
[25-Apr-2016 05:43:34 UTC] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at path/to/file.php:1) in /path/to/file.php on line 1
The server is running apache and php 5.6 if that's relevant, I've also tried deleting the .htacces file just in case that is what's causing the problem but still no luck.
Can anyone point me in the right direction to see what may be causing the issue? Thanks!