I'm new comer to Laravel 4 but not newbie for creating cron or using framework (codeIgniter / Yii, ...)
I set up an installation of Laravel 4, in my localhost and the same in my production web server.
When I launch a command via cron :
php -q path/to/laravel/artisan command:myspecificcommand or (same effect)
php -q path/to/laravel/artisan cache:clear
Then I obtain an Exception:
RuntimeException
Failed to start the session because headers have already been sent by "" at line 0.
It occurs in the vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php
when I launch those commands in the console of MacOs all stuffs are achieved correctly.
I use in my production server: php 5.3.13
, there is a output_buffered set (I look for that due to the title of the error) but I'm completly stuck.
I give image of the result (there is the stack)