Hello,
I have a problem with the crontab. Since not all ssh commands are allowed on my server, I have to run the crons via a php file:
<?php
exec("/usr/bin/php -d memory_limit=1024M /www/***/***/espocrm/cron.php >> log.txt 2>&1");
?>
As far everything is fine.
But unfortunately, I get the following error message:
PHP Catchable fatal error: Argument 1 passed to Espo\Core\Container::get() must be an instance of Espo\Core\string, string given, called in /www/***/***/espocrm/application/Espo/Core/Application.php on line 48 and defined in /www/***/***/espocrm/application/Espo/Core/Container.php on line 41
Catchable fatal error: Argument 1 passed to Espo\Core\Container::get() must be an instance of Espo\Core\string, string given, called in /www/***/***/espocrm/application/Espo/Core/Application.php on line 48 and defined in /www/***/***/espocrm/application/Espo/Core/Container.php on line 41
Line 48 is: $GLOBALS['log'] = $this->getContainer()->get('log');
And line 41 is: public function get(string $name)
Can someone help me with this?
Thank you very much.
Philip
I have a problem with the crontab. Since not all ssh commands are allowed on my server, I have to run the crons via a php file:
<?php
exec("/usr/bin/php -d memory_limit=1024M /www/***/***/espocrm/cron.php >> log.txt 2>&1");
?>
As far everything is fine.
But unfortunately, I get the following error message:
PHP Catchable fatal error: Argument 1 passed to Espo\Core\Container::get() must be an instance of Espo\Core\string, string given, called in /www/***/***/espocrm/application/Espo/Core/Application.php on line 48 and defined in /www/***/***/espocrm/application/Espo/Core/Container.php on line 41
Catchable fatal error: Argument 1 passed to Espo\Core\Container::get() must be an instance of Espo\Core\string, string given, called in /www/***/***/espocrm/application/Espo/Core/Application.php on line 48 and defined in /www/***/***/espocrm/application/Espo/Core/Container.php on line 41
Line 48 is: $GLOBALS['log'] = $this->getContainer()->get('log');
And line 41 is: public function get(string $name)
Can someone help me with this?
Thank you very much.
Philip
Comment