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

Error Exception in seeding the DB #207

@Fulcinator

Description

@Fulcinator

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions