• Resolved kurtzino

    (@kurtzino)


    Hi, I would like to know why the stats icon in wordpress admin bar is broken.
    I changed the site url because wordpress is in a subdirectory.
    I’ve other sites in the same situation (with wordpress in a subdirectory) where the icon works perfectly.

    Any help will appreciated.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @kurtzino

    Do the stats seem to be recording properly even with the icon appearing broken?

    Could you share a screenshot so we can see what you’re describing?

    You can create screenshots using something like Snipboard or Imgur and post the link here.

    Thanks!

    Thread Starter kurtzino

    (@kurtzino)

    Yes, just the icon is broken but the functions working.

    This is the admin bar:

    https://imgur.com/b1gd8zz

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Ciao @kurtzino,

    Thanks for sharing the screenshot. Are you referring to the ? icon next to “Cancella la cache”?

    If so, I wonder if it is indeed a caching hiccup! Have you tried clearing the site and browser cache at all?

    If that won’t bring back the stats icon, can you try logging in to your site through an incognito window and via a different web browser? Let me know if the issue still persists, and we’ll take it from there.

    Thread Starter kurtzino

    (@kurtzino)

    Yes, I’m refer to the ? that is the missing stats icon.
    I tried everything you suggested with no results (cleaning cache…).
    I am attaching the Chrome screen with incognito browsing mode.

    Image

    Let me Know!!

    • This reply was modified 3 years, 10 months ago by kurtzino.
    Thread Starter kurtzino

    (@kurtzino)

    And this is how the stats icon appear in all of the other my sites

    Image

    • This reply was modified 3 years, 10 months ago by kurtzino.
    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hi @kurtzino,

    Are you using any ad blockers? If so, please deactivate those and see if the icon appears.

    If you don’t have luck with that, please try temporarily deactivating all other plugins (leaving Jetpack active) and see if the icon shows as it should. If it does, re-activate each plugin one at a time and see which one makes the icon break.

    If that doesn’t reveal anything, you can try the Theme Switcha plugin to change your theme only for you (your readers won’t see a change on the frontend) and see if the theme is the thing causing the trouble.

    If that still doesn’t reveal anything, do you know how to check your browser’s console for errors? If not, this page in the WordPress Codex has guidance for how to do so in different web browsers:

    Using Your Browser to Diagnose JavaScript Errors

    Please repeat what you’re trying to do and check the page for errors, and let us know what you find. Thanks!

    Thread Starter kurtzino

    (@kurtzino)

    I got it.
    The problem was the theme, but I don’t understand why.

    And maybe the solution is probably around this error that I checked from the javascript console.

    https://www.lucacentola.com/luca/wp-admin/admin.php?page=stats&noheader&proxy&chart=admin-bar-hours-scale-2x

    Thanks

    • This reply was modified 3 years, 10 months ago by kurtzino.
    Plugin Contributor Karen Attfield

    (@wpkaren)

    Hi @kurtzino,

    Ah, I can see how the theme could have been responsible here, as I’ve discovered we had a similar case quite some time ago in which the theme was also responsible for the stats icon (also called ‘sparkline’) disappearing. In this case, it was caused by an extra, invisible character, when receiving a response from the site. To check for this, here are some suggestions:

    – Check all the files you’ve edited in your theme (if you have made any edits to the theme) and make sure each of those files is saved using utf-8 encoding.
    – Make sure there are no extra characters appearing right before the opening PHP tag in those files.
    – Check your wp-config.php file too, both for utf-8 encoding, and for extra characters before the opening PHP tag.

    Do let us know if you find anything in any of those files?

    Thread Starter kurtzino

    (@kurtzino)

    Wow, that’s incredible!!!

    Thanks for the tip, we solved it!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘broken stats icon’ is closed to new replies.