Skip to content

Datasource is missing the constructor function #1

Open
@michael-e

Description

@michael-e

The datasource is missing the standard constructor function:

public function __construct(&$parent, $env=NULL, $process_params=true){
    parent::__construct($parent, $env, $process_params);
    $this->_dependencies = array();
}

Without this function, the datasource will not have any dependencies, which in turn will cause the core (i.e. class.frontendpage.php) to fill the log with warnings like this:

2010/04/03 23:35:43 > WARNING: 2 - array_intersect() [<a href='function.array-intersect'>function.array-intersect</a>]: Argument #2 is not an array in file /var/www/www.example.com/symphony/lib/toolkit/class.frontendpage.php on line 427

Adding the constructor function should solve the problem.

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