ℹ️
Welcome to the archive of the old FlatPress support forum. Browse more than a decade of FlatPress wisdom! Login is disabled.

The current FlatPress support forum is available here: forum.flatpress.org
fpstats
  • Is it possible, that the bar chart from fpstats not work with IIS 6.0 and PHP 5.2.6? The "day statistics" and "raw data" are shown corrct, but the "Overview" display only a empty chart with text "bar chart". PHPInfo display "gd support enabled", version "bundled (2.0.34 compatible)".
  • 2laborix: can you try to display only the image? URL is e.g. http://localhost/flatpress/admin.php?p=plugin&action=fpstats&graph=1 Maybe php prints out some error messages...
  • FP 0.812.1 is installed in the root directory on IIS 6 and after trying your question Plugin version used: fpstats svn 35 Fatal error: Cannot use object of type __PHP_Incomplete_Class as array in C:\Inetpub\wwwroot\test1\fp-plugins\fpstats\classes\OverviewManager.php on line 281 Next I tried with fpstats svn 45 and the graph is visible :) Ok, it seems to work with fpstats svn 45. Sorry that I didn't try the current svn 45 version before I post my question.
  • Just a note: rev45 has rewritten database backend, it does not use serialization anymore, but cvs files, where line by line is read -> it should be much more memory efficient... I'm working on browser/os stats at the moment... I'll release it as v0.3 when I'm done... If you want to use rev45 with your old data, please use this utility to convert old data to the new format (it still needs some work on UI, but it works)... EDIT: a lot of fpstats code is rewritten, I hope there there are no bugs, but...
  • a lot of fpstats code is rewritten, I hope there there are no bugs, but...

    Hm, I'm working with SVN 45 in my test lab since your last SVN update. It works with the latest Flatpress SVN 259 without any error on Apache. On IIS 6 I test only FP 0.812.1, to get more deeper into IIS. Hope I understand IIS someday ;) Thanks for your explanations.
  • A new version of fpstats is ready to be published. I just need some testers to test it and/or translators to update language files... fpstats 0.3.0 uses new format to store data, but converter is available... It should be much more memory efficient... Also browsers and operating systems graphs were added. Changelog: 0.3.0alpha ------------------------------------------------------------------------------- % fpstats code completely rewritten % serialization is not used for storing raw data anymore (cvs files with iterators are used) % ttf font is used in graphs by default + browsers and operating systems overview for current month graphs UPDATE FROM 0.2x ------------------------------------------------------------------------------- FIRST OF ALL (just for sure) make backup of your stats data fp-content\content\fpstats 1) download fpstatsDBMigration from sourceforge 2) copy fpstatsDBMigration dir to fp-plugins/ 3) browse to Plugins -> Manage plugins in admin interface, find fpstats line and click on disable 4) browse to Plugins -> Manage plugins in admin interface, find fpstats DB Migration line and click on enable 5) browse to Plugins -> fpstatsDBMigration and click migrate 6) browse to Plugins -> Manage plugins in admin interface, find fpstats DB Migration line and click on disable 7) delete fp-plugins/fpstatsDBMigration and fp-plugins/fpstats 8) upload new version of fpstats to fp-plugins/ 9) browse to Plugins -> Manage plugins in admin interface, find fpstats line and click on enable DONE Download fpstats
  • First impressions: 0.812.x and latest SVN 261 work fine with fpstats on Apache :) Next, your browser counter works wrong. You associate "Mozilla 5.0" with Mozilla, but that's wrong, because Google and Yahoo bots have this in their http identification. If you want to get Mozilla more detailed, you should search in this string for: - Firefox - Netscape - Seamonkey - Mozilla/1.8 - K-Meleon and a few others. I can't get in ten minutes 3 visitors (statistic) and 31 Mozilla browsers. Tested in test lab and tested in ral life. Btw. I will send you the german language pack in a few days to Sourgeforce.net. If my login will work :) Edit: March 2, 2009 Transfered to patches in the project fpstats
  • 2laborix: Thank you for testing and for translation! I have added bots filter and unique user filter. Fpstats uses UserAgentParser class used in Piwik to parse HTTP_USER_AGENT. This class should be able to detect browsers you've mentioned. Download updated fpstats here
  • I will suggest a feature, can you sort the analyses, that the most used browser and os are ascending? Aside from that, now it is really great :) Very useful...
  • Browsers and operating systems stats are sorted from the most to the least used. Download updated fpstats here
  • Here a few informations from my test lab (FP 0.812.1) with IIS 6/PHP 5.2. Fpstats 54 works fine on IIS 6 with - Internet Explorer 8 (final edition) - Firefox 3.0.7 - Safari 3.2 - Opera 9.64 Thanks a lot for the sorted analyses, cool... :)
  • 2laborix: Thanks for testing!
  • Hi there, Great upgrade. One thing: Following step 1 & 2: 1) download fpstatsDBMigration from ADD LINK 2) copy fpstatsDBMigration dir to fp-plugins/ I didn't find where the ADD LINK link was..so I just went googling. Other than that, it worked wonderfully. One request maybe: if it was possible to add a bar chart/piechart of countrie of origin of visitors? Thats the most important thing for me. thanks for the great work. bernard
  • 2ei8fdb: "add link" was kind of todo for me and I forgot to replace it with a link... Sorry...
    if it was possible to add a bar chart/piechart of countrie of origin of visitors? Thats the most important thing for me.

    I'll try to look at it... Do you know how to get this info - is it based on visitors' ip addresses?
  • just did upgrade to flatpress-0.812.1-fortissimo and happy using all these new features! thanks for this pretty growing FlatPress! :-) enabled PHP-version PHP Version 5.2.0-8+etch15 added after that the plugin FPStats after activating the plugin its shown in the Plugin Head - menu: "FPStats" but when i want to click on it and go there: http://www.greenmap-berlin.de/gmb/admin.php?p=plugin&action=fpstats i get prompt this error:
    Warning: Invalid argument supplied for foreach() in /home/web160/gree05/ftproot/www.greenmap-berlin.de/gmb/fp-plugins/fpstats/classes/core/hits/HitsFacade.php on line 13

    did i something wrong? These are the currently used plugins: StatRecord Accessible Antispam AdminArea BBCode BlockParser Categories FavIcon fpstats highlight.js jsUtils LightBox PostViews PrettyURLs QuickSpamFilter SearchBox Sitemap Thumbnails does anybody please give me one idea? thanks in advance! --- edit: safari 3 on mac i mostly use shows if the plugin is switched on first time in a normal looking surface. but if i click on "Day statistics" the Warning written above does appear and after this first error it will never go away. so i have to disable the plugin and if i enable it later again, it possible shows its given interface again. with opera 10 it seems FPStats does work first but by clicking"
      Day statistics
    " it says:
    Warning: Invalid argument supplied for foreach() in /home/web160/gree05/ftproot/www.greenmap-berlin.de/gmb/fp-plugins/fpstats/classes/core/hits/HitsFacade.php on line 13

    and by clicking "" it says:
    Notice: Undefined variable: data in /home/web160/gree05/ftproot/www.greenmap-berlin.de/gmb/fp-plugins/fpstats/classes/FPStatsBaseClass.php on line 18

  • should these errors come cause there has not been time to count any stats of visitors? will the plugin do work if i am a little patient? so i will try to wait one day and look afterwards again.
  • 2GreenMap: Please try fpstats 0.3.1beta version.
  • also, please either use 0.812.2 which contains an important fix, or just use the SVN tarball as explained on the project blog
  • I have a blog at 110mb.com and fpstats did not draw the charts. I got the same problem as laborix has here. I try to draw only the graph as mat say, and the error was: Fatal error: Call to undefined function imagettfbbox() in /www/110mb.com/a/l/l/e/n/p/a/g/allenpage/htdocs/fp-plugins/fpstats/classes/lib/phplot/phplot.php on line 881 I update phplot to version 5.1.0, but I get the same result Fatal error: Call to undefined function imagettfbbox() in /www/110mb.com/a/l/l/e/n/p/a/g/allenpage/htdocs/fp-plugins/fpstats/classes/lib/phplot/phplot.php on line 885 phpinfo() in 110mb says, they have gd support enabled. I use FP 0.909 and fpstats 0.3.1beta EDIT: gd enabled, but freetype support in gd is not... :(
  • 2 _Allen: try: open fpstats/classes/core/PHPlotConfiguration.php in some text editor and set $useTTF = false; Hope this helps.
  • Yes, it helps. Thank you. All graphs are now properly rendered, but i get some overlap, because of browsershots.org. The rendered image Edit: mispelled URL
  • flatpress .909 served by apache2 (2.2.12) with php5 (5.2.10) on a Debian (lenny) server. Problem #1: solved by shutting down apache/unloading php-modules and restarting. fpstats (.3.1beta) constantly crashes in admin panel /plugins / fpstats with
    Fatal error: Uncaught exception 'Exception' with message 'XXX' in /var/www/fp-plugins/fpstats/classes/core/db/DBReader.php:25 Stack trace: #0 /var/www/fp-plugins/fpstats/classes/FPStatsBaseClass.php(32): DBReader->load() #1 /var/www/fp-plugins/fpstats/classes/FPStatsBaseClass.php(15): FPStatsBaseClass->loadByDatesIterator('1.01.0000', '21.01.2010') #2 /var/www/fp-plugins/fpstats/classes/admin_plugin_fpstats.php(110): FPStatsBaseClass->loadByDates('1.01.0000', '21.01.2010') #3 /var/www/fp-plugins/fpstats/classes/admin_plugin_fpstats.php(50): admin_plugin_fpstats->prepareRawData() #4 /var/www/admin/includes/panels.prototypes.php(132): admin_plugin_fpstats->main() #5 /var/www/admin/main.php(90): AdminPanelAction->exec() #6 /var/www/admin/main.php(177): main() #7 /var/www/admin.php(8): require('/var/www/...') #8 {main} thrown in /var/www/fp-plugins/fpstats/classes/core/db/DBReader.php on line 25

    I looked for the not too intuitive error code "XXX" and found what I guessed by the trace on DBReader.php/line 25: "from date > to date". The thing is, I didn't find the file, where things get stored/defined. I never entered anything. The fp-content/content/fpstats dir is well. 01.csv exists and gets constantly written to. What can I do to reset things I never edited? Problem #2 (some kind of follow up): Though data gets written as is shown under raw data and though no filter rule is set, neither graphs nor daily statistics show up. Anything I could check/fix? gd is installed and integrated in php, with png as well as freetype support enabled. admin.php?p=plugin&action=fpstats&graph=1 woes:
    Warning: Invalid argument supplied for foreach() in /var/www/fp-plugins/fpstats/classes/core/hits/HitsGraph.php on line 232 (repeated) Warning: Cannot modify header information - headers already sent by (output started at /var/www/fp-plugins/fpstats/classes/core/hits/HitsGraph.php:232) in /home/andi/www/fp-plugins/fpstats/classes/lib/phplot/phplot.php on line 1451 (repeated) ?PNG  IHDR?? ?$9PLTE (snipped data dump) Fatal error: DrawGraph(): No data array in /var/www/fp-plugins/fpstats/classes/lib/phplot/phplot.php on line 1553

    Many thanks in advance!
  • Me again. Tested it with my limited php knowledge and found out, that it "seems" like php is seriously b0rked on PPC: -> 21.01.0000 - 22:15 *sigh* Asked google and it seems to be some weired php-Bug on PPC platform (G4 over here): http://bugs.php.net/bug.php?id=48276 *sigh*
  • How can I tell the fpstats not to log my own site visits? I am still building on my website and my own clicks outweigh other users by far. There must be some sort of code that i can write into the .php file to not log 92.123.456.78. Something like if(ip=xxx) then do nothing, else (write log). sorry, i'm really not that much of an php crack. thanks for help!
  • .... or even to put a filter option in the admin panel of fp stats. i mean, it's possible to filter for dates. it should be easy to make a form where the admin can enter an ip adress and then press "exclude". or even like a checkbox that applies to the date filter. damn, it can't be that hard..
  • Hi, I have flatpress 0.909.1, PHP 5.2.10-2ubuntu6.4, Apache2 2.2. Flatpress is installed at /home/userX/flatpress, It works fine But in /var/log/apache2/error.log appears: ... [error] ... script '/home/userX/flatpressadmin.php' not found or unable to stat
  • Turkish Language file for fpstats plugin: http://wiki.flatpress.org/_media/res:fpstats_lang.tr-tr.php.zip
  • I got an error with fpstats.

    I cant see any of the charts and of I view the daly stats I get:
    Notice: Undefined offset: 3 in /blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 22
    Notice: Undefined offset: 4 in /blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 23
    Notice: Undefined offset: 5 in /blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 24
    Notice: Undefined offset: 3 in /blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 22
    Notice: Undefined offset: 4 in /blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 23
    Notice: Undefined offset: 5 in /blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 24
    Notice: Undefined offset: 3 in /blog/html/blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 22
    Notice: Undefined offset: 4 in /blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 23
    Notice: Undefined offset: 5 in /blog/fp-plugins/fpstats/classes/core/db/DBRecordArrayMapper.php on line 24

    I deactivated / reactivated the plugin, deleted it, reinstalled it. Recreated the flatpress index and cleared the theme and template cache. If i try to clear the cache of fpstats I get some errors:

  • Hi, go to this file and add a @ on the lines that have errors.
  • Totally forgot about that^^ :D I added the @s but now there ist the error:

    Notice: A non well formed numeric value encountered in /blog/fp-plugins/fpstats/classes/core/hits/HitsGenerator.php on line 36

    The line is:
                $recordDayTimestamp = strtotime(date("d.m.Y",$record->getTimestamp()));

    the Pie Chart won't show up :/
  •  

  • 12
    Add a Comment
    Start a New Discussion

    Howdy, Stranger!

    It looks like you're new here. If you want to get involved, click one of these buttons!

    Categories

    In this Discussion