PHP Notices: "Trying to get property of non-object" and "Undefined index"
gorlov - March 22, 2009 - 14:01
| Project: | Browscap |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
(already described as a "feature request" without much information in http://drupal.org/node/360347)
My apache error log is ***filled*** with the following PHP Notices:
PHP Notice: Trying to get property of non-object in /usr/local/www/drupal6/sites/all/modules/browscap/browscap.module on line 362
PHP Notice: Trying to get property of non-object in /usr/local/www/drupal6/sites/all/modules/browscap/browscap.module on line 367
PHP Notice: Undefined index: parent in /usr/local/www/drupal6/sites/all/modules/browscap/browscap.module on line 90The "get property" notices always come in pairs, and the "undefined index" is less frequent.
Browscap.module version : // $Id: browscap.module,v 1.6.2.3.2.4 2008/08/13 02:49:43 robloach Exp $
Environment:
Drupal 6.10
FreeBSD 7.1
apache-2.2.11_3
php5-5.2.9
Everything else in the site is working perfectly.

#1
duplicate of: #360347: PHP Notice: Trying to get property of non-object
#2