Opened 2 years ago

Closed 2 years ago

#2988 closed Bug (fixed)

Notice: Undefined variable: errno in piwik/libs/Zend/Http/Client/Adapter/Socket.php on line 236

Reported by: matt Owned by: vipsoft
Priority: normal Milestone: 1.12.x - Piwik 1.12.x
Component: Core Keywords:
Cc: Sensitive: no

Description

When piwik.org is down or feedburner maybe, the following errors can be displayed.

Should we report upstream?
Should we add silent fail @ in front of the initial call?

Notice: Undefined variable: errno in /home/xxx/httpdocs/piwik/libs/Zend/Http/Client/Adapter/Socket.php on line 236

Backtrace -->
#0 Piwik_ErrorHandler(...) called at [/home/xxx/httpdocs/piwik/libs/Zend/Http/Client/Adapter/Socket.php:236]#1 Zend_Http_Client_Adapter_Socket->connect(...) called at [/home/xxx/httpdocs/piwik/libs/Zend/Http/Client.php:1068]#2 Zend_Http_Client->request(...) called at [/home/xxx/httpdocs/piwik/libs/Zend/Feed.php:171]#3 Zend_Feed::import(...) called at [/home/xxx/httpdocs/piwik/plugins/ExampleRssWidget/ExampleRssWidget.php:103]#4 Piwik_ExampleRssWidget_Rss->get(...) called at [/home/xxx/httpdocs/piwik/plugins/ExampleRssWidget/ExampleRssWidget.php:62]#5 Piwik_ExampleRssWidget_Controller->rssPiwik(...) called at [:]#6 call_user_func_array(...) called at [/home/xxx/httpdocs/piwik/core/FrontController.php:138]#7 Piwik_FrontController->dispatch(...) called at [/home/xxx/httpdocs/piwik/index.php:53]


There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Undefined variable: errstr in /home/xxx/httpdocs/piwik/libs/Zend/Http/Client/Adapter/Socket.php on line 236

Backtrace -->
#0 Piwik_ErrorHandler(...) called at [/home/xxx/httpdocs/piwik/libs/Zend/Http/Client/Adapter/Socket.php:236]#1 Zend_Http_Client_Adapter_Socket->connect(...) called at [/home/xxx/httpdocs/piwik/libs/Zend/Http/Client.php:1068]#2 Zend_Http_Client->request(...) called at [/home/xxx/httpdocs/piwik/libs/Zend/Feed.php:171]#3 Zend_Feed::import(...) called at [/home/xxx/httpdocs/piwik/plugins/ExampleRssWidget/ExampleRssWidget.php:103]#4 Piwik_ExampleRssWidget_Rss->get(...) called at [/home/xxx/httpdocs/piwik/plugins/ExampleRssWidget/ExampleRssWidget.php:62]#5 Piwik_ExampleRssWidget_Controller->rssPiwik(...) called at [:]#6 call_user_func_array(...) called at [/home/xxx/httpdocs/piwik/core/FrontController.php:138]#7 Piwik_FrontController->dispatch(...) called at [/home/xxx/httpdocs/piwik/index.php:53]

Change History (3)

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

  • Owner set to vipsoft
  • Status changed from new to assigned

I already reported this upstream. I thought it was fixed n our local copy.

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

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

(In [5944]) fixes #2988 (ZF-10871) - uninitialized variables when socket functions are disabled by php config

Note: See TracTickets for help on using tickets.