Closed (fixed)
Project:
http:BL
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Nov 2011 at 15:48 UTC
Updated:
13 Jun 2015 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bryrock commentedUndefined index: q is a valid condition when $_GET['q'] is not set. It is only set when a page has a path (arguments) beyond the primary url. It is not set on a home page, for instance.
The fact that you are seeing Notices indicates that your PHP error reporting level is set to include them. The default reporting level in PHP 4 & 5 does not include notices. Notice level reporting is typically only used in development environments.
http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-repor...
Comment #2
danepowell commentedYou are right of course that I should probably not be logging notices... oddly, although the documentation says that the default error_reporting level does not included notices, in actuality my php.ini does default to showing notices in production (PHP 5.3 on Ubuntu, from repos).
Anyway, thanks for a quick response and pointing out my oversight.
Comment #3
sagar ramgade commentedHi,
Changing the error reporting level is not the solution, Change the line no 93 from :
to
Comment #4
spidersilk commentedSagar, thank you! That's very helpful. Not every site has complete control over their PHP configuration, so adjusting the code so that the issue doesn't come up is a better option than just living with an error log clogged with thousands of undefined index notices.
Comment #5
paulrooney commentedThanks Sagar. I have attached your solution as a patch.
Comment #6
akosipax commentedI agree with Sagar. This patch should be committed.
Comment #8
bryrock commentedThis has been committed. Should appear in next 6.x-2.x-dev.