chamilo / chash

Chamilo Shell
GNU General Public License v3.0
15 stars 10 forks source link

PHP Fatal error #55

Open landNull opened 2 years ago

landNull commented 2 years ago

When running php chash/chash.php with any commands I receive the following: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Chash\Command\Common\CommonCommand::__construct(), 0 passed in /var/www/chamilo/chash/chash.php on line 62 and exactly 1 expected in /var/www/chamilo/chash/src/Command/Common/CommonCommand.php:36 Stack trace:

0 /var/www/chamilo/chash/chash.php(62): Chash\Command\Common\CommonCommand->__construct()

1 {main}

thrown in /var/www/chamilo/chash/src/Command/Common/CommonCommand.php on line 36

spacecabbie commented 1 year ago

$this->configurationPath = $path; this is line 62 So is most likely because chash is being run from a non standaart directory outside of chamilo I have the same issue.

Example: /home/user/chamillo_www but chash is in: /home/user/tools/chash/

It should be possible to specify a path for chash that would solve it. @ywarnier perhaps you know if this is possible, Should be a quick fix ?