? Success

User tests: Successful: Unsuccessful:

avatar demis-palma
demis-palma
6 Jul 2014

In Debug Plugin and in "System Information" view, it blindly tries to access the variable $_SERVER['HTTP_USER_AGENT'] without ensuring that it exists. This leads to 'PHP Notice: Undefined index: HTTP_USER_AGENT' when the browser does not send the USER AGENT string.

== How to reproduce the problem ==
1. Under Global Configuration, enable System > Debug System.
2. Anonymize your browser, by preventing to send the USER AGENT string. I used "HTTP UserAgent cleaner" (https://addons.mozilla.org/it/firefox/addon/http-useragent-cleaner/). Once installed on Firefox, you have to manually enable the anonymization of the User Agent string in the options: HTTP > User Agent. Ensure that this option is "Enabled", which corresponds to red color.
If you are unable to block USER AGENT string, simply establish a telnet connection as follows:

(The following telnet session supposes that your joomla runs on localhost)
telnet localhost 80
'When a prompt appear, type:'
GET /joomla/cms/ HTTP/1.0
'Hit enter key twice'

  1. Enjoy the PHP Notices generated in the error log of the web server.

== Tracker ==
http://code.joomla.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33923&start=0

f3dfdf5 30 Jun 2014 avatar demis-palma test
avatar demis-palma demis-palma - open - 6 Jul 2014
avatar Kubik-Rubik
Kubik-Rubik - comment - 27 Jul 2014

@demis-palma Works as described. Thank you!

avatar brianteeman brianteeman - change - 8 Aug 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 8 Aug 2014
Title
PHP Notice: Undefined index: HTTP_USER_AGENT in (sysinfo.php + debug.php)
[#33923] PHP Notice: Undefined index: HTTP_USER_AGENT in (sysinfo.php + debug.php)
avatar demis-palma demis-palma - change - 8 Aug 2014
Title
PHP Notice: Undefined index: HTTP_USER_AGENT in (sysinfo.php + debug.php)
[#33923] PHP Notice: Undefined index: HTTP_USER_AGENT in (sysinfo.php + debug.php)
avatar phproberto phproberto - close - 13 Aug 2014
avatar phproberto phproberto - change - 13 Aug 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-08-13 01:39:49
avatar phproberto phproberto - close - 13 Aug 2014
avatar Sophist-UK Sophist-UK - reference | 9398231 - 7 Oct 14

Add a Comment

Login with GitHub to post a comment