@anonymous-piwik-user opened this issue on June 10th 2009

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 commented on June 10th 2009

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-piwik-user commented on June 10th 2009

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 commented on June 10th 2009

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

This issue was closed on March 28th 2010
Powered by GitHub Issue Mirror