Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Blank page on new revision: v3232 in API/Common.php #1752

Closed
anonymous-piwik-user opened this Issue · 2 comments

2 participants

@anonymous-piwik-user

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
Collaborator

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

@robocoder
Collaborator

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

@anonymous-piwik-user anonymous-piwik-user added this to the Piwik 1.1 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.