Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Error Exception in seeding the DB #207

Open
Fulcinator opened this issue May 19, 2021 · 0 comments
Open

Error Exception in seeding the DB #207

Fulcinator opened this issue May 19, 2021 · 0 comments

Comments

@Fulcinator
Copy link

Good Morning everyone, I'm installing Timegrid in a Ubuntu 18.04 environment with php 7.2.

When installing timegrid, after installing all the dependencies and completing the migration of tables, when seeding,

php artisan db:seed

one of the php script fails: in particular in CountriesSeeders.php at the line:

public function run() {
[....]
$countries = Countries::getList();
[...]

the error is a generic Error Exception, reporting the following message:

[ErrorException]
sizeof(): Parameter must be an array or an object that implements Countable

I tried to figure out how the Countries class was built but with no result, also this error seems to be related to php version >=7.2 which produces a warning that artisan transforms to an error.

Does anyone know a possible solution? Thanks for helping

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

No branches or pull requests

1 participant