Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1752 closed Bug (fixed)

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

Reported by: anj Owned by:
Priority: normal Milestone: Piwik 1.1
Component: Core Keywords:
Cc: Sensitive: no


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


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


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

Change History (3)

comment:1 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 4 years ago by vipsoft (robocoder)

  • Keywords api common removed
  • Milestone set to 1.1 - Piwik 1.1

comment:3 Changed 4 years ago by vipsoft (robocoder)

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

Note: See TracTickets for help on using tickets.