Closed (works as designed)
Project:
Statistics Advanced
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2009 at 16:03 UTC
Updated:
10 Mar 2009 at 11:29 UTC
Why there is execution of full bootstrap?
function statistics_advanced_boot() {
global $user;
// Load path handling.
drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
It causing sometimes following errors:
array
'type' => int 8
'message' => string 'A session had already been started - ignoring session_start()' (length=61)
'file' => string 'includes\bootstrap.inc' (length=65)
'line' => int 1029
It's really necessary?
Comments
Comment #1
dave reidIt's not a full bootstrap (DRUPAL_BOOTSTRAP_FULL), but statistics_advanced needs to know the current normalized 'path' via $_GET['q']. That can be only done in a path bootstrap. If you have suggestions on how to fix this without changing the functionality of the module, please let me know.
Comment #2
kenorb commentedWhy you can't use $_GET['q']?
Or following code:
to receive path, if I understand correctly.