Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error #55

Open
landNull opened this issue Dec 7, 2021 · 1 comment
Open

PHP Fatal error #55

landNull opened this issue Dec 7, 2021 · 1 comment

Comments

@landNull
Copy link

landNull commented Dec 7, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants