Major Fatal Error
| Project: | FireStats |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hi. Firestats 0.9.9-beta.
AS soon as I enable Firestats.module and go to the settings page for that module, and enter the proper path to firestats on my server, and then go back to the settings page and check the "administrative pages" or any of the roles, I get a blank page with this:
FireStats is not installed in the database, go to the Database tab to install FireStats in the database
Of course, Firestats IS in the right place, the MySQL database has been installed by the Firestats app correctly (or so it indicates), all the passwords and rights are correct, I can access the Firestats standalone over the web, and in fact Firestats is even capturing data and displaying it!
It appears that the firestats.module isn't even needed if all I want to do is capture hits to the top page of my site (index.php) - I have inserted the code snippet to talk to the engine as follows:
the first executable line in index.php now reads:
include /var/www/html/path-to-firestats/php=firestats-hit.php
It is ABOVE the line that says
require_once '.includes/bootstrap.inc'
What is the problem? The site is now unusable.
Thanks.

#1
Added the code to engine?
You dont need to put any hit trcking code in your drupal installation. After installing firestats as standalone, just put in path and configure the settings, nothing more.
No need to put anything in index.php of your drupal installation. The module does the tracking part, itself.
#2
Thanks for your reply!
I will get rid of the code in index.php and re-test. Does the fact that this is module-based mean that I can share one Firestats installation between different Drupal sites? I've created separate MySql databases, eg. Firestats-a for site drupal-a, Firestats-b for site drupal-b, etc.
I have a bunch of sites operating from a single install of Drupal and this ability would be very useful.
#3
Yes, for whichever site(in multisite setup), you enable the module and put in path for each site's settings, it will track all the hits, etc.
Although the stats would be common for all sites, as there would be only single Firestats installation.
Please follow up if your current issue was solved or not.
Good Luck!
#4