chash icon indicating copy to clipboard operation
chash copied to clipboard

PHP Fatal error

Open landNull opened this issue 4 years ago • 1 comments

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

landNull avatar Dec 07 '21 11:12 landNull

$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 ?

spacecabbie avatar Jul 16 '23 10:07 spacecabbie