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

PHP Warning in core/config.php #780

Closed
anonymous-matomo-user opened this issue Jun 10, 2009 · 3 comments
Closed

PHP Warning in core/config.php #780

anonymous-matomo-user opened this issue Jun 10, 2009 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

Warning: htmlentities() expects parameter 1 to be string, object given in /export/home/typo3/www/typo3conf/ext/piwikintegration/piwik/core/Config.php on line 206

@robocoder
Copy link
Contributor

Please attach a backtrace and/or try to capture some information in core/Config.php for debugging, e.g., at line 205:

+          if(!is_string($values)) { var_dump($values); }
           $values = htmlentities($values, ENT_COMPAT);

@anonymous-matomo-user
Copy link
Author

Plugin:TYPO3Login

I found out during looking in the core how to write config options:

require_once('core/Piwik.php');
require_once('core/Config.php');
Piwik::createConfigObject();

$superuser = Zend_Registry::get('config')->superuser->toArray();
$superuser['login']    = md5(microtime());
$superuser['password'] = md5(microtime());
Zend_Registry::get('config')->superuser = new Zend_Config($superuser);

The last line throws the warning, is there a better way to set the configuration options. (This snippet saves the array data into the config file.)

Regards Kay

@robocoder
Copy link
Contributor

You really should use the forum or mailing list for dev help.

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 0.4.1 milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants