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

Uncaught TypeError: Argument 1 passed to TheHostingTool\\Database\\AbstractModel::__construct() must be of the type array #3

Open
dongshan3 opened this issue Nov 1, 2017 · 0 comments

Comments

@dongshan3
Copy link

Sir,

installed php7.0 + apache 2.4 + mysql5.5 on debian8,

after run composer create-project thehostingtool/thehostingtool ./t --stability=dev and composer install, web browser visited THT2 URL, got 500 error, apache2 error log show as:

PHP Fatal error: Uncaught TypeError: Argument 1 passed to TheHostingTool\Database\AbstractModel::__construct() must be of the type array, string given, called in /var/www/html/t/index.php on line 10 and defined in /var/www/html/t/vendor/thehostingtool/core/src/Database/AbstractModel.php:72\nStack trace:\n#0 /var/www/html/t/index.php(10): TheHostingTool\Database\AbstractModel->__construct('/var/www/html/t')\n#1 {main}\n thrown in /var/www/html/t/vendor/thehostingtool/core/src/Database/AbstractModel.php on line 72

What can I do? Thanks.

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

1 participant