BlakesHeaven / Simple-Stats-Plus

This repository combines and enhances Bludits Simple stas and Hit Counter
MIT License
5 stars 2 forks source link

How does it work? #7

Closed xcme closed 4 years ago

xcme commented 4 years ago

Hi! I installed this plugin and disabled the native ones but it didn't show any stats. Three week have passes since than. What should I check to fix it?

BlakesHeaven commented 4 years ago

Hi, Try some of the following:

xcme commented 4 years ago

Thank you for answer. My dashboard is below: image There is no graph below like you just showed.

Yes, I have files here /bl-content/workspaces/simple-stats-plus/. They have 644 permissions and contain lines with hash and date. I changed the permissions to 755 but it didn't help.

I use the 3.10.0 version on Bludit.

xcme commented 4 years ago

I can add there is no more HTML code after this section: image It seems something went wrong and page wasn't constructed properly. In case I turn native plugins back it has following lines with stats and "</body </html" at the end.

BlakesHeaven commented 4 years ago

Thanks, and sorry for slow reply. May I ask what active plugins you have? I'm thinking that maybe I have something activated that you don't that is finishing the closing tags off, thus making it work for me. I did have an issue at one point where the Search plugin was causing mine to fail.

xcme commented 4 years ago

All my plugins are here: image

I noticed when I disable 'Simple Stats Plus' the dashboard page seems correctly and I can see the 'Notification' section. But when I enable 'Simple Stats Plus' it seems something goes wrong ether in the plugin itself or during its inclusion to the site. I tried to enable logs in PHP but I have Centos 7, so I had to use non-typical installation of PHP (rh-php72-php-fpm), so PHP works but I have no idea why logs don't work.

BlakesHeaven commented 4 years ago

Thanks very much. I'll look into it tonight. I think it is still collecting stats though.

BlakesHeaven commented 4 years ago

Hello, I have given the code a review, comparing it back the original and I couldn't see anything obvious. I made it so I have exactly the same plugins activated as you have and my dashboard still displays OK. In the code, I use an international format function requiring the "PHP-Intl" module as referenced in issue #6 . You say you have a non-standard installation of PHP; can you see if installing the PHP-Intl module helps.
https://www.php.net/manual/en/intl.installation.php https://stackoverflow.com/questions/14679990/how-do-i-install-php-intl-extension-on-centos

Below is the generated html: image

xcme commented 4 years ago

Yes! When I installed it and restarted the engine, it started to work. I issued: yum install rh-php72-php-intl on Centos 7.

Thank you for help!

BlakesHeaven commented 4 years ago

That's brilliant, I really pleased 😎👍 Thanks for sticking with it. BTW, I've been doing a little tinkering and am adding individual page counting. Got it doing the data capture; just need to work it into the Contents tab navigation or maybe something to display on an end of page hook.