Is there some way to confirm or check that BAWStats is reading Drupal settings.php file?
No matter what domain I enter into the $conf['bawstats_defsite'] variable I get the error 'No statistics found for site myexample.com 04/2010'.

The same error comes up even if I use the $conf['bawstats_admin_access'] = 1; variable.
This makes me think that BAWStats is not even looking at the settings.php file.

I welcome any suggestions on how to troubleshoot this.

CommentFileSizeAuthor
#1 bawstats-786880-1.patch2.13 KBegfrith

Comments

egfrith’s picture

Title: How to Confirm that BAWStats is Reading settings.php File » BAWStats is not reading settings.php file
Assigned: Unassigned » egfrith
Category: support » bug
StatusFileSize
new2.13 KB

The problem is that the module does not use the setting of the bawstats_defsite variable if it has already saved the identity of the site it is looking at in the $_SESSION variable. The attached patch fixes this by only referring to the $_SESSION variable when bawstats_admin_access is set. The patch also adds a bit of documentation.

egfrith’s picture

Status: Active » Fixed

This patch has now been committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.