Simple Stats Plus

User avatar
RalfKerkhoff
Sr. Bludit
Posts: 35
Joined: Sun Jan 03, 2021 11:16 am
Location: Germany
Has thanked: 1 time
Contact:

Hi,

I have some strange issues with the Simple Stats Plus Plugin (PHP 7.4). Running bludit in german language.

1. In the backend the name of the plugin is empty. All I can see is "activate", "deactivate" and the name of the author.
Plugin name and description are empty

2. In the frontend I see the following error message when opening a page:
"Could not read the runningTotalsFile file"

Any ideas how to fix it?

Cheers
Ralf
User avatar
RalfKerkhoff
Sr. Bludit
Posts: 35
Joined: Sun Jan 03, 2021 11:16 am
Location: Germany
Has thanked: 1 time
Contact:

Additional Info:
Backend displays plugin name and description when the backend is set to english.
Error message in frontend remains.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

1) Which version of Bludit do you use?

2) Do you use the plugin Simple Stats or Simple Stats Plus?

3) Is there a file de_DE.json in the direcory /bl-plugins/simple-stats/languages?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
RalfKerkhoff
Sr. Bludit
Posts: 35
Joined: Sun Jan 03, 2021 11:16 am
Location: Germany
Has thanked: 1 time
Contact:

Hi,

I use 3.13.1 and the plugin is:
simple stats plus:
https://plugins.bludit.com/de/plugin/si ... s#download

a de_DE.json file is in the language folder.

The main problem is the error message I get in the frontend when opening a page.
As said, the error message is not a language problem - it remains when I set the language to english in the backend.

Ralf
User avatar
RalfKerkhoff
Sr. Bludit
Posts: 35
Joined: Sun Jan 03, 2021 11:16 am
Location: Germany
Has thanked: 1 time
Contact:

digged a bit deeper into it:
the plugin looks for a file namende running-totals.json which should be under:
bl-content/workspaces/simple-stats-plus
which is not there.
Filled in a bug report on the plugin's github page.

Workaround:
Install older version of the plugin and open the frontend in a browser.
running-totals.json has been created.
Download the file to local computer.
Install the current version of the plugin
Upload the json file to:
bl-content/workspaces/simple-stats-plus

Done - no errors in frontend and a proper statistic in backend.

Cheers
Ralf
haywardgg
Ssr. Bludit
Posts: 19
Joined: Wed Apr 05, 2023 10:46 pm
Has thanked: 4 times
Been thanked: 1 time

This plugin doesn't work for me on Bludit 3.14.1 Pro.

There are not stats or graphs on the admin dashboard, plus it removes the notifications column.
User avatar
tiloschroeder
Ssr. Bludit
Posts: 23
Joined: Sat Feb 25, 2023 10:59 am
Location: Klosterlechfeld
Has thanked: 3 times
Been thanked: 9 times
Contact:

haywardgg wrote: Thu Apr 06, 2023 8:36 am This plugin doesn't work for me on Bludit 3.14.1 Pro.

There are not stats or graphs on the admin dashboard, plus it removes the notifications column.
It works very well with Bludit 3.14.1.

It seems, that your current theme doesn't support the Hook siteBodyEnd. This is needed by the plugin.

You can run a simple test:
1. Go to "Themes" in the admin panel
2. Activate the Theme "Alternative"
3. Open a new browser window in incognito mode and enter the URL of your site
4. The stats should now show 1 new visit and 1 new visitor

You can add the required Hook to your theme by adding the following code just before the closing body-tag (</body> in the file index.php of your theme):

Code: Select all

    <!-- Load Bludit Plugins: Site Body End -->
    <?php Theme::plugins('siteBodyEnd'); ?>
User avatar
tiloschroeder
Ssr. Bludit
Posts: 23
Joined: Sat Feb 25, 2023 10:59 am
Location: Klosterlechfeld
Has thanked: 3 times
Been thanked: 9 times
Contact:

haywardgg
Ssr. Bludit
Posts: 19
Joined: Wed Apr 05, 2023 10:46 pm
Has thanked: 4 times
Been thanked: 1 time

tiloschroeder wrote: Tue Apr 11, 2023 10:55 am
It works very well with Bludit 3.14.1.
Still no dice. I've tried it with 3 different themes, the default themes and a couple I downloaded. I've tried it with your code just before the closing tag. The admin page loads, but there's no stats and the recent actions panel is gone too. So I just reverted back to the old stats plugin.

I'm using Bludit Pro if that helps any further.

Also, I've tried this on a fresh VPS with no other apps or software. Clean install and the site works fine, but the Plus plugin breaks the admin page and no stats etc..

Every time I test something I have to lose all my stats, so I'll probably give it a miss.

EDIT: Forgot to mention that all the themes I've tried already have the code block you suggested.
User avatar
tiloschroeder
Ssr. Bludit
Posts: 23
Joined: Sat Feb 25, 2023 10:59 am
Location: Klosterlechfeld
Has thanked: 3 times
Been thanked: 9 times
Contact:

Hmm, that's strange. The plugin works on my localhost and 2 other live instances with PHP 7.2/8.0/8.2 with the standard version as well with Bludit pro.

2 other guesses:

1. Password protected
If the website is password protected, just remove the protection for testing.

2. Wrong file permissions
If activated, 2 directories are created:
1. /bl-content/databases/plugins/simple-stats (where is the db.php)
2. /bl-content/workspaces/simple-stats

In the second directory the plugin creates the log-files (e.g. 2023-04-11.log for today). The content of each log file looks like that:

Code: Select all

["837ec5754f503cfaaee0929fd48974e7","2023-04-11 07:39:37"]
["837ec5754f503cfaaee0929fd48974e7","2023-04-11 07:57:17"]
["837ec5754f503cfaaee0929fd48974e7","2023-04-11 07:57:32"]
Maybe it helps.
Post Reply