Project

General

Profile

Actions

Bug #22398

closed

Nagging error notices in class.t3lib_div.php / $_SERVER assumptions.

Added by Dave about 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-04-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

A bunch of nagging error notices:

Notice: Undefined index: t3lib/class.t3lib_div.php in typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 5390
Notice: Undefined index: SSL_SESSION_ID in typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 3842
Notice: Undefined index: HTTPS in typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 3842
Notice: Undefined index: ORIG_SCRIPT_NAME in typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 3680
Notice: Undefined index: systemLog in typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 5343
Notice: Undefined offset: 1 in typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 5353
Notice: Undefined index: systemLog in typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 5395

I was trying to debug a plugin i am working on, and there is nothing more annoying than seeing error notices appearing from code you are not interested in.

Just my 2c, there seems to be too many assumptions made on the existence of $_SERVER vars before using them. You have to be careful with environment variables because they may not exist from one hosting environment to the next.

I am guessing there is more of these around the place. You may hear from me again.
(issue imported from #M14030)


Files

patch.diff (531 Bytes) patch.diff Administrator Admin, 2010-04-07 17:13

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #15795: Some notices and warnings in class.t3lib_cs.php (2 things)ClosedChris topher2006-03-09

Actions
Related to TYPO3 Core - Bug #15025: PHP NoticesClosedChris topher2005-10-11

Actions
Has duplicate TYPO3 Core - Bug #20266: Typo3 raises many PHP Notice errors in php.logClosedChristian Kuhn2009-04-02

Actions
Actions

Also available in: Atom PDF