FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Add-on Software › FireStats – Top 40 php script (now with added charts)
- This topic has 175 replies, 17 voices, and was last updated 14 years, 1 month ago by
wwarren.
-
AuthorPosts
-
30/11/2007 at 10:46 PM #14709
sonichouse
ParticipantYou need to edit php.ini and add
extension=pdo.so
extension=sqlite.soto the list of extensions installed.
Download the sqlite.dll from the link.
I’m not sure on the correct path for windows, but the directory is defined in your extension_dir in the php.ini
01/12/2007 at 5:10 AM #14710blamm
Participant@sonichouse wrote:
You need to edit php.ini and add
extension=pdo.so
extension=sqlite.soto the list of extensions installed.
Download the sqlite.dll from the link.
I’m not sure on the correct path for windows, but the directory is defined in your extension_dir in the php.ini
Hi, it allready has
extension=php_sqlite.dll
extension=php_pdo.dlland
php_sqlite.dll
in the “ext” folder
01/12/2007 at 7:05 AM #14711blamm
ParticipantHi. I seem to have got past that by enabling php_pdo.dll
Now I get
Warning: Invalid argument supplied for foreach() in C:wampwwwFireStatssummary.php on line 56
Last 10 Albums Played
Warning: Invalid argument supplied for foreach() in C:wampwwwFireStatsfunctions.php on line 54
01/12/2007 at 9:07 AM #14712fizze
ParticipantThats because you are not using a sqlite3 database, but sqlite2.
Just change the line, and the db filename also is songs.db as opposed to songs3.db.
Also see my previous post.01/12/2007 at 11:32 AM #14713blamm
ParticipantTa.
Firefly tells me I am using sqlite3 so I left it and fiddled with the path to the db. Now I get
Error!: SQLSTATE[HY000] [14] unable to open database file
01/12/2007 at 3:05 PM #14714sonichouse
ParticipantSo near …
You might try using the old non8dot3 format.
If you do a dir /X of the directory you will get something like C:/PROGRA~1/FIREFL~1
Try copying the songs3.db to a directory without whitespace e.g. C:TEMP
Which web server are you using ?
I will try and reproduce on my windows machine.
/Steve
01/12/2007 at 3:24 PM #14715blamm
ParticipantCracked it.
$DSN=”sqlite:C:/Program Files/Firefly Media Server/songs3.db”
Now I get charts but with nothing in them. Playing with smart playlists suggest my DB has no playcounts.
01/12/2007 at 3:34 PM #14716sonichouse
Participant@blamm wrote:
Cracked it.
$DSN=”sqlite:C:/Program Files/Firefly Media Server/songs3.db”
Now I get charts but with nothing in them. Playing with smart playlists suggest my DB has no playcounts.
Good news.
Check the path to libchart in functions.php.
Try changing
include "./libchart-1.2/libchart/classes/libchart.php";
to
require_once "./libchart-1.2/libchart/classes/libchart.php";
this will then error if not found.
01/12/2007 at 3:39 PM #14717blamm
ParticipantMakes no difference. Only the decades chart populates. All the rest are empty.. 🙁
01/12/2007 at 3:45 PM #14718sonichouse
Participant@blamm wrote:
Makes no difference. Only the decades chart populates. All the rest are empty.. 🙁
Strange 👿
Do you get the correct headers on the table that is printed out ?Also, just noticed that the decade query does not check for play_count > 0.
Is this a new database?, have you played any tracks ?
/Steve
-
AuthorPosts
- The forum ‘Add-on Software’ is closed to new topics and replies.