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

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

Closed
anonymous-matomo-user opened this issue Oct 5, 2010 · 2 comments
Closed

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

anonymous-matomo-user opened this issue Oct 5, 2010 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

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
Copy link
Contributor

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

@robocoder
Copy link
Contributor

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

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.1 milestone Jul 8, 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.
Projects
None yet
Development

No branches or pull requests

2 participants