WordPress.org

Forums

[Plugin: WordPress.com Stats] flash stats graph not displaying (24 posts)

  1. ithinkitsnice
    Member
    Posted 5 years ago #

    On one of the several blogs I admin, the Flash stats graph is no longer displaying in the stats dashboard. The combobox to switch between different stats accounts is also not displaying. The plugin appears to be working fine in all other respects.

    screengrab of the affected blog's stats dashboard. A right-click on the space where the graph should be shows a 'movie not loaded' message.
    http://img199.imageshack.us/i/picture1eyk.png/

    This is happening for both me and the blog owner, in different geographical locations and browsers.

    Form the back end of my personal blog, where I can switch between the stats accounts I have access to, my graph displays fine as does the graph for the affected blog.

    screengrab of affected blog's stats graph viewed from my personal blog's dashboard
    http://img269.imageshack.us/i/picture2npy.png/

    The affected blog is at http://www.iambop.com ; it was upgraded by the owner to 2.8.2 which seemed to be when the problem started although I can find no reference to any known issues anywhere. My personal blog is still on 2.8

    Deactivating, deleting and re-installing the plugin has made no difference.

    Thanks for any help
    Scott

  2. HalifaxCentral
    Member
    Posted 5 years ago #

    Seconded on this issue. It just started happening to SouthsideCentral.

  3. boospooky
    Member
    Posted 5 years ago #

    Having the same problem. I'm on version 2.8.2.

  4. b-rad
    Member
    Posted 5 years ago #

    ditto

  5. Captainfancypants
    Member
    Posted 5 years ago #

    I dont feel as bad now, as it is happening to others. I have reloaded etc but the graph has gone. Website is our bands one at http://www.cleavagedownunder.com (Yes a music site!) Can the flash graph be fixed?

  6. jrdub
    Member
    Posted 5 years ago #

    Same problem here: I can access all stats except flash movie. When I right click on it, it says "Movie not loaded". It does this on both Safari and Firefox on Mac 10.5 and also in Windows XP IE7. It happened when I upgraded from 2.7 to 2.8.2 yesterday.

  7. jrdub
    Member
    Posted 5 years ago #

    **RESOLVED?

    Okay, I figured out that by reverting to the last version of the plugin, 1.4, it works again. I have officially confirmed on two separate WP installations (one is 2.8 and the other is 2.8.2) that the problem is resolved by restoring version 1.4. Seems like 1.5 and WP 2.8 don't agree. I went so far as disabling all plugins except that and using the default theme and that did not resolve the issue. It's not a conflicting plugin or customization of the core (I have none). 1.5 works on WP 2.7 (also confirmed in two separate installations). It does not work on 2.8.

  8. beggers
    Member
    Posted 5 years ago #

    None of the graphs load anymore, but the numbers are still being calculated.

  9. ithinkitsnice
    Member
    Posted 5 years ago #

    @ jrdub

    I'll give that a go, but that in no way would be a resolution, it would be a workaround (if it works).

  10. chrislowthian
    Member
    Posted 5 years ago #

    I am also getting this problem. Is there a proper fix for this yet?

  11. mentoce
    Member
    Posted 5 years ago #

    same problem here. started a few days ago and it's annoying as hell. when is an update coming?

    jay ess
    importantless.com

  12. jrdub
    Member
    Posted 5 years ago #

    @ithinkitsnice

    Poor choice of words. Agreed: it's a workaround. Definitely needs to be fixed.

  13. mauhorng
    Member
    Posted 5 years ago #

  14. Andy Skelton
    Member
    Posted 5 years ago #

    I tracked down the "movie not loaded" issue for one user. It was caused by extra characters added to a php file by the text editor. In his case it was the Unicode byte-order mark, but any extra characters could cause it.

    Most programs are capable of dealing with the Unicode BOM, so some text editors just assume it's safe to add it. Flash is weak in this regard. So when your wp-config.php (or any PHP file) is saved with the Unicode BOM, your server adds those characters to every page generated by WordPress. The Flash charts in Stats 1.5 are passed through your WordPress server, which adds the extra characters causing the movie not to load.

    The solution is to find and remove the offending extra characters. Maybe you need to tell your text editor not to save PHP files as Unicode.

  15. jrdub
    Member
    Posted 5 years ago #

    Andy,

    If you revert to version 1.4 of Stats, the Flash movie runs fine, at least it did for me in two separate cases. So, it seems to be something in the plugin file itself. If as you suggest, it was a misplaced (or invisible?) character in another file affecting Flash output, the movie wouldn't appear regardless of which version I was running.

    Since Unicode is the default character set for WordPress (see wp-config-sample.php), it wouldn't make much sense to save files as something else in most cases.

  16. Andy Skelton
    Member
    Posted 5 years ago #

    jrdub, 1.4 does not pass the Flash movie through your web server the way 1.5 does. 1.4 works regardless of extra characters. Look for them.

  17. jrdub
    Member
    Posted 5 years ago #

    Andy,

    Speaking as a developer, no matter how valid your reasons for refactoring the Flash method(s), it will be lost on the average user who just sees a white rectangle where their stats used to be and hears you telling them they have to wade through all their plugins and theme code (hundreds of files in my case) to solve a problem that wasn't there before they "upgraded".

    Given the popularity of Stats, your audience is hardly limited to geeky professionals such as myself who can follow arcane explanations about the "Unicode BOM". They include people who know just enough to be dangerous downloading stock templates and plugin files that very likely have at least one page of code with an extra line or two through no fault of their own and no realistic recourse.

    For the record, I found the offending file on my client's site that had an extra line at the end. But not before spending 2+ hours.

  18. Andy Skelton
    Member
    Posted 5 years ago #

    jrdub, I am sorry you had this trouble and glad you managed to fix the offending file. I'm already working on bypassing this issue in the next version.

  19. ldaily
    Member
    Posted 5 years ago #

    I'm one of those regular Joes who just downloads stock templates and does the upgrades when presented. But I had been relying heavily on WP Stats to give me information on my readership of my website/blog. Since the "upgrade" the chart is either gone or comes and goes. There's no way I could go in and find a bad file or code unless I hired a programmers and spend more than I make on the site.

    I look forward to another "upgrade" or version of Stats that resolves the problem for us all in a simple manner.

  20. MarcAudet
    Member
    Posted 5 years ago #

    I am having a similar issue with stats graph not showing. On my stats page it isn't even there.

  21. Andy Skelton
    Member
    Posted 5 years ago #

    I have uploaded a new version of the plugin that includes the Flash file. This should eliminate all issues with graphs not appearing due to extra characters. Please download and install from here to test it:

    http://downloads.wordpress.org/plugin/stats.zip

  22. rabmaster
    Member
    Posted 5 years ago #

    Thanks for the update Andy - that works. Incidentally, can you say where this rogue text needs eliminating from: we have a number of sites, some work, some don't, as the files have been worked on by a few of us!

    Is it just the wp-config.php file, or does each file which has ever been edited (and saved with the extra chars) require an update?

  23. pshoeg
    Member
    Posted 5 years ago #

    Hey Andy,

    Great work! The graph works for both daily, weekly and monthly stats. However, in my dashboard the flash movie still doesn't work, but I'll live with that until the next version comes out!

  24. Captainfancypants
    Member
    Posted 5 years ago #

    Fixed at our end. Thanks to all!

Topic Closed

This topic has been closed to new replies.

About this Topic