Closed (fixed)
Project:
Droptor
Version:
6.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2012 at 13:46 UTC
Updated:
2 Dec 2012 at 14:40 UTC
We receive the following error whenever a user lands on the homepage:
PHP Notice: Undefined index: q in ..../sites/all/modules/droptor/droptor.module on line 150
This is because on the homepage, the value of $_GET['q'] is not set.
Comments
Comment #1
jemond commentedI can't reproduce this with Drupal 6 or 7. What is the value of your site_frontpage variable?
Comment #2
andrewsuth commentedWe're experiencing the problem on all Drupal 6 platforms which have Droptor installed, so this does not seem to be a fringe case. It only happens on the homepage, where $_GET['q'] appears not to be set at this point in the execution process.
Perhaps it is due to the following (from bootstrap.inc):
I think this is important as it is called in the sixth bootstrap phase, where as $_GET['q'] is set in the eighth phase. So the variable is not as yet set. But it only seems to affect the homepage (?).
It is an unusual condition as it causes errors on every homepage load on one platform but on every third load on another.
Comment #3
jemond commentedThanks for the additional information. Now I'm clear. This is indeed a bug. I just pushed a fix to the 3.x branch for D6 and D7. Would you give that a try and let me know if that fixes the issue?
Thanks again for taking the time report this;
Comment #4
jemond commentedAssume fixed. Please re-open if you have any more problems on this.