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

Datasource is missing the constructor function #1

Open
michael-e opened this issue Apr 4, 2010 · 0 comments
Open

Datasource is missing the constructor function #1

michael-e opened this issue Apr 4, 2010 · 0 comments

Comments

@michael-e
Copy link

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.

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