@anonymous-piwik-user opened this Issue on October 5th 2010

Just made a svn update, and had no working piwik. The reason is the call of toArray on no object.

$config->Tracker->trusted_proxy_addresses->toArray();

Please check first, if trusted_proxy_addresses exists, or maybe a try catch block?

Solution:

if($config !== false && $config->Tracker->trusted_proxy_addresses)
{
 $trustedProxies = $config->Tracker->trusted_proxy_addresses->toArray();

}
@robocoder commented on October 5th 2010 Contributor

(In [3234]) fixes #1752 - thanks, anj

@robocoder commented on October 5th 2010 Contributor

(In [3235]) fixes #1752 - using isset() as suggested

This Issue was closed on October 5th 2010
Powered by GitHub Issue Mirror