6.0.0-beta1
8/26/25

[#14289] Horde-Weather-Service: Cannot use object of type stdClass as array
Summary Horde-Weather-Service: Cannot use object of type stdClass as array
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester klaus (at) tachtler (dot) net
Created 03/15/2016 (3451 days ago)
Due
Updated 03/16/2016 (3450 days ago)
Assigned 03/15/2016 (3451 days ago)
Resolved 03/16/2016 (3450 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/16/2016 01:01:23 PM Michael Rubinsky State ⇒ Resolved
 
03/16/2016 12:54:47 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 88385c40ac8ed9e4ab16116c484018928dd1ed83
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Mar 16 08:52:51 2016 -0400

     Bug: 14289 Fix accessing timezone offset in WWO.

  .../lib/Horde/Service/Weather/Wwo.php              |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/88385c40ac8ed9e4ab16116c484018928dd1ed83
03/15/2016 01:36:20 PM Michael Rubinsky Comment #2
Assigned to Michael Rubinsky
State ⇒ Assigned
Reply to this comment
Probably some other change between v1 and v2 of the WWO API. I'll take a look.
03/15/2016 05:10:29 AM klaus (at) tachtler (dot) net Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Horde-Weather-Service: Cannot use object of type stdClass as array
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

OS: CentOS 6.7
PHP 5.3.3 (cli) (built: Feb  9 2016 10:36:17)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

after login to the Horde, following erroro occurs:

ErrorException Object
(
     [message:protected] => Cannot use object of type stdClass as array
     [string:Exception:private] =>
     [code:protected] => 0
     [file:protected] => /usr/share/pear/Horde/Service/Weather/Wwo.php
     [line:protected] => 292
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [function] => catchFatalError
                     [class] => Horde_ErrorHandler
                     [type] => ::
                     [args] => Array
                         (
                         )

                 )

         )

     [previous:Exception:private] =>
     [severity:protected] => 1
     [logged] => 1
)

Temporary help, was comment out the following lines in
--> /usr/share/pear/Horde/Service/Weather/Wwo.php

--- line ---

         //if (isset($station->timezone)) {
         //    $properties['tz'] = $station->timezone[0]->offset;
         //}

--- line ---

Thank you for your help!
Klaus.

Saved Queries