Cron job failing due to undefined variables?

Situation:

Mautic installed via Softaculous. (Hosting: shared hosting on A2)

Cron jobs set.

(Example: php /home/{path}/app/console mautic:segments:update

Cron jobs aren’t working because it isn’t seeing the commands. Just getting the command options as output.



I contact support and mention register_argc_argv. (https://www.mautic.org/community/index.php/3016-cron-just-returns-list-of-available-commands/0#p9002)



They replied with

“The file “console” inside it has references to paths and variables not listed for example: “DIR” is not defined and we would require you to contact Mautic or your developer and discuss how to work this correctly.



The cron environment, will not see variables unless they are defined in the scriot itself.”



The console file created by Softaculous and the one I downloaded look identical.



Any suggestions?


Situation:
Mautic installed via Softaculous. (Hosting: shared hosting on A2)
Cron jobs set.
(Example: php /home/{path}/app/console mautic:segments:update
Cron jobs aren’t working because it isn’t seeing the commands. Just getting the command options as output.

I contact support and mention register_argc_argv. (https://www.mautic.org/community/index.php/3016-cron-just-returns-list-of-available-commands/0#p9002)

They replied with
"The file “console” inside it has references to paths and variables not listed for example: “DIR” is not defined and we would require you to contact Mautic or your developer and discuss how to work this correctly.

The cron environment, will not see variables unless they are defined in the scriot itself."

The console file created by Softaculous and the one I downloaded look identical.

Any suggestions?