Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 8.0, 8.1 & 8.2] Error with Simple Statistics plugin #324

Open
Galixte opened this issue Oct 17, 2024 · 2 comments
Open

[PHP 8.0, 8.1 & 8.2] Error with Simple Statistics plugin #324

Galixte opened this issue Oct 17, 2024 · 2 comments

Comments

@Galixte
Copy link

Galixte commented Oct 17, 2024

Hi @robiso,

With WonderCMS 3.4.3 I encounter an error with this plugin: https://github.com/robiso/simple-statistics/tree/master

Fatal error
: Uncaught Error: Attempt to assign property "accueil" on null in /home/clients/xxx/domain.tld/plugins/simple-statistics/class.SimpleStatistics.php:72 Stack trace:
#0 /home/clients/xxx/domain.tld/plugins/simple-statistics/class.SimpleStatistics.php(122): SimpleStatistics->set('pageviews', '18-10-2024', 'accueil', 1)
#1 /home/clients/xxx/domain.tld/index.php(1206): SimpleStatistics->collectData(Array)
#2 /home/clients/xxx/domain.tld/index.php(1677): Wcms->hook('js', '')
#3 /home/clients/xxx/domain.tld/themes/universeGradient/theme.php(91): Wcms->js()
#4 /home/clients/xxx/domain.tld/index.php(1717): require_once('/home/clients/e...')
#5 /home/clients/xxx/domain.tld/index.php(210): Wcms->loadThemeAndFunctions()
#6 /home/clients/xxx/domain.tld/index.php(16): Wcms->render()
#7 {main} thrown in /home/clients/xxx/domain.tld/plugins/simple-statistics/class.SimpleStatistics.php
on line 72

Do you have an idea to fix this issue?

This error message disappears on PHP 7.4.

@Galixte
Copy link
Author

Galixte commented Oct 17, 2024

After deleting this plugin, then re-activated it this issue disappeared.

I close this issue.

@Galixte Galixte closed this as completed Oct 17, 2024
@Galixte Galixte reopened this Oct 29, 2024
@Galixte
Copy link
Author

Galixte commented Oct 29, 2024

Hi @robiso,

The error appeared again:

Fatal error
: Uncaught Error: Attempt to assign property "login-path" on null in /home/clients/xxx/domain.tld/plugins/simple-statistics/class.SimpleStatistics.php:72 Stack trace:
#0 /home/clients/xxx/domain.tld/plugins/simple-statistics/class.SimpleStatistics.php(122): SimpleStatistics->set('pageviews', '29-10-2024', 'login-path', 1)
#1 /home/clients/xxx/domain.tld/index.php(1206): SimpleStatistics->collectData(Array)
#2 /home/clients/xxx/r-m.io/index.php(1677): Wcms->hook('js', '')
#3 /home/clients/xxx/domain.tld/themes/universeGradient/theme.php(91): Wcms->js()
#4 /home/clients/xxx/r-m.io/index.php(1717): require_once('/home/clients/e...')
#5 /home/clients/xxx/domain.tld/index.php(210): Wcms->loadThemeAndFunctions()
#6 /home/clients/xxx/domain.tld/index.php(16): Wcms->render() #7 {main} thrown in
/home/clients/xxx/domain.tld/plugins/simple-statistics/class.SimpleStatistics.php
on line
72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant