Skip to content

Undefined index - getFromDB(1)  #23

@jcervantes-sipecom

Description

@jcervantes-sipecom

Hi, I'm getting a lot of this errors:
image

In plugin version 3.0.0 I found that in differents files there is a line like: getFromDB(1)
plugins/activity/setup.php at line 82 $opt->getFromDB(1);
plugins/activity/inc/option.class.php at line 45 $this->getFromDB(1);

But the problem is that in the database the table glpi_plugin_activity_options the column id has configured as incremental
image

So my registry is not 1 but 3:
image

Changing in my database to 1, the issue is solved.

But I don't know if should be change in the database the autoincrement, or in all files should not be hardcode as getFromDB(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions