I follow the instruction provide by @escopecz but i get this error.
so i download the commands.php file from GitHub
and know i get this
I follow the instruction provide by @escopecz but i get this error.
I follow the instruction provide by @escopecz but i get this error.
[RuntimeException]
Failed to start the session because headers have already been sent by "/home/MYDOMAIN/public_html/marketing/commands.php" at line 48.
so i download the commands.php file from GitHub
and know i get this
[RuntimeException]
Failed to start the session because headers have already been sent by "/home/MYDOMAIN/public_html/marketing/commands.php" at line 59.
I think i fix it. Copy this Code and remember change ILoveMAUTIC
[quote]<?php
if (!isset($_GET['ILoveMAUTIC])) {
echo āThe secret phrase is wrong.ā;
die;
}
$link = āhttp://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]ā;
$allowedTasks = array(
ācache:clearā,
āmautic:leadlists:updateā,
āmautic:campaigns:updateā,
āmautic:campaigns:triggerā,
āmautic:email:processā,
āmautic:fetch:emailā,
ādoctrine:migrations:migrateā,
ādoctrine:schema:update --dump-sqlā,
ādoctrine:schema:update --forceā
);
if (!isset($_GET[ātaskā])) {
echo āSpecify what task to run. You can run these:ā;
foreach ($allowedTasks as $task) {
$href = $link . ā&task=ā . urlencode($task);
echo ā
ā . $href . āā;
}
echo ā
Read moreā;
echo ā
Please, backup your database before executing the doctrine commands!ā;
die;
}
$task = urldecode($_GET[ātaskā]);
if (!in_array($task, $allowedTasks)) {
echo āTask ā . $task . ā is not allowed.ā;
die;
}
$fullCommand = explode(ā ', $task);
$command = $fullCommand[0];
$argsCount = count($fullCommand) - 1;
$args = array(āconsoleā, $command);
if ($argsCount) {
for ($i = 1; $i <= $argsCount; $i++) {
$args[] = $fullCommand[$i];
}
}
require_once DIR.ā/app/bootstrap.php.cacheā;
require_once DIR.ā/app/AppKernel.phpā;
use SymfonyBundleFrameworkBundleConsoleApplication;
use SymfonyComponentConsoleInputArgvInput;
use SymfonyComponentConsoleOutputBufferedOutput;
defined(āIN_MAUTIC_CONSOLEā) or define(āIN_MAUTIC_CONSOLEā, 1);
try {
$input = new ArgvInput($args);
$output = new BufferedOutput();
$kernel = new AppKernel(āprodā, false);
$app = new Application($kernel);
$app->setAutoExit(false);
$result = $app->run($input, $output);
echo ā
nā.$output->fetch().āā;
For the rest of the world, @ninjoan is talking about this script:
https://gist.github.com/escopecz/9a1a0b10861941a457f4
If I compared your version of the script correctly, you removed this row:
echo '<h3>Executing ' . implode(' ', $args) . '</h3>';
And it no longer throws this error:
[RuntimeException]
Failed to start the session because headers have already been sent by "/home/MYDOMAIN/public_html/marketing/commands.php" at line 59.
If thatās correct, well great youāve solved it. It doesnāt make much sense to me, but thatās not the first or the last wonder in PHP world for me 
I hope this work for another user with problem like me.
Thanks @escopecz for be so patience.
Also there is any way to get in touch with David Hurley?