Closed SteveEdson closed 9 months ago
After a bit more digging, it looks like it's caused by the penetration test which was ran against the website. It appears to have logged the pageviews for the random test pages, and cannot be unserialised as a result.
Ideally, it would only add entries to the pageviews file if they exist within statamic. I can share this file with you if it helps.
Thanks for your report!
From the looks of it, your file containing the collected pageviews got corrupted. The file can be found in storage\popular\pageviews
so if you are using version control, you could restore a version of the file from before it got corrupted.
Also, as a workaround, you can temporarily disable the pageview tracking during the penetration test by setting POPULAR_TRACKER_ENABLED=false
in your .env
file
As for the cause, I am not sure how the file got corrupted in your case, it might indeed help if you share the pageviews file.
I hope you were able to restore or recreate your file using the instructions above. I am closing the issue now, please feel free to reopen it if it occurs again.
Bug description
Stacktrace
How to Reproduce
Site has been running fine without issue, then suddenly this issue has occurred.
Expected behavior
A clear and concise description of what you expected to happen.
Extra Detail
If applicable, add screenshots, error messages etcetera to help explain your problem.
Environment
Environment Application Name: Statamic Laravel Version: 10.32.1 PHP Version: 8.2.11 Composer Version: 2.6.5 Environment: production Debug Mode: OFF URL: site.com Maintenance Mode: OFF
Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED
Drivers Broadcasting: log Cache: redis Database: mysql Logs: stack / single Mail: smtp Queue: redis Session: file
Statamic Addons: 3 Antlers: runtime Stache Watcher: Enabled Static Caching: half Version: 4.35.0 PRO
Statamic Addons arthurperton/popular: 1.1.0 pecotamic/sitemap: 1.4.6 statamic/ssg: 2.2.0
Install method for Statamic (choose one):
Fresh install from
statamic/statamic