I updated to 4.12.1 and the error persists. Finally the “Visit in real-time” is working for the troubled domain name, but “Visits Log” is still returning “Oops… there was a problem during the request.”
I followed your suggestion of disabling “Archive reports when viewed from the browser” in the General Settings, and have setup Windows: How to Set up Auto-Archiving Using Windows Scheduler.
Error log (Windows Logs Application) I get
Fault bucket 2030093307063167446, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: php-cgi.exe
P2: 8.1.10.0
P3: 630e526d
P4: php8.dll
P5: 8.1.10.0
P6: 630e5af2
P7: c0000005
P8: 0000000000005417
P9:
P10:
Attached files:
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER6EA9.tmp.dmp
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER6EF8.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER6F09.tmp.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER6F09.tmp.csv
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER6F29.tmp.txt
These files may be available here:
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_php-cgi.exe_e7c22930974321c49c5812606cc767d5a429c3f6_2b7980f3_489a0859-4aa0-4d17-80bd-3fd7bff87928
Analysis symbol:
Rechecking for solution: 0
Report Id: 4090d5d2-65a6-44dd-9453-7b35e41e9ad6
Report Status: 268435456
Hashed bucket: d7379339d968842c2c2c571b5c65e9d6
Cab Guid: 0
and find no files in the suggested locations on the server. The "C:\ProgramData\Microsoft\Windows\WER\Temp" is empty. I am not sure if the above php crash is actually related to the problem: “Oops… there was a problem during the request.”
matomo.log:
ERROR Piwik\FrontController[2022-10-19 05:35:38 UTC] [64575] Uncaught exception:C:\matomo\plugins\Live\templates\getLastVisitsStart.twig(76): The string to escape is not a valid UTF-8 string. [Query: ?date=2022-10-05,2022-10-17&module=Live&action=getLastVisitsStart&idSite=2&period=range, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 15:36:50 UTC] [a02ef] Uncaught exception: C:\matomo\plugins\CoreVisualizations\templates_dataTableViz_htmlTable.twig(11): An exception has been thrown during the rendering of a template (“Failed to write cache file “C:\matomo/tmp/templates_c/ce/cee8a44a4cabd76257f3dda3e3b87061.php”.”). [Query: ?date=2022-10-05,2022-10-17&module=DevicesDetection&format=html&action=getType&period=range&idSite=2&segment=&widget=&showtitle=1&random=9594, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 15:36:50 UTC] [8d7cc] Uncaught exception: C:\matomo\plugins\CoreVisualizations\templates_dataTableViz_htmlTable.twig(52): An exception has been thrown during the rendering of a template (“Failed to write cache file “C:\matomo/tmp/templates_c/ed/ed85ccdd78d58901b7a926c183fdbe13.php”.”). [Query: ?date=2022-10-05,2022-10-17&module=DevicesDetection&format=html&action=getModel&period=range&idSite=2&segment=&widget=&showtitle=1&random=6940, CLI mode: 0]
ERROR API[2022-10-19 15:38:58 UTC] [56dfd] Uncaught exception in API: You can’t access this resource as it requires ‘view’ access for the website id = 1. C:\matomo\core\Access.php:756
ERROR Piwik\ExceptionHandler[2022-10-19 15:38:59 UTC] [aef22] Uncaught exception: C:\matomo\core\API\Request.php(472): This user has super-user access. Embedding widgets with super-user token authentication is not allowed. Check the FAQ for more info. [Query: ?date=2022-10-06,2022-10-19&module=Annotations&action=getEvolutionIcons&idSite=1&period=range&filter_limit=-1, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 15:40:08 UTC] [648e1] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=previous30&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&idSite=2&period=range&segment=&widget=&showtitle=1&random=374, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 15:40:22 UTC] [2d877] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=previous30&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&idSite=2&period=range&segment=&widget=&showtitle=1&random=7549, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 15:40:33 UTC] [a82a9] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=2022-10-04,2022-10-18&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&period=range&idSite=2&segment=&widget=&showtitle=1&random=9191, CLI mode: 0]
ERROR Piwik\ExceptionHandler[2022-10-19 15:50:24 UTC] [b221e] Uncaught exception: C:\matomo\vendor\twig\twig\src\Cache\FilesystemCache.php(76): Failed to write cache file “C:\matomo/tmp/templates_c/d4/d4edc4546262ebe318340d73fed70587.php”. [Query: ?date=2022-09-19,2022-10-18&module=Referrers&action=getKeywords&widget=1&isFooterExpandedInDashboard=0&disableLink=0&filter_limit=50&idSite=1&period=range, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 15:51:40 UTC] [3d66f] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=previous30&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&period=range&idSite=2&segment=&widget=&showtitle=1&random=1139, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 15:52:20 UTC] [e84da] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=previous30&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&period=range&idSite=2&segment=&widget=&showtitle=1&random=634, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 16:29:12 UTC] [ea66c] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=previous30&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&period=range&idSite=2&segment=&widget=&showtitle=1&random=449, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 16:30:40 UTC] [1ccc1] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=previous30&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&period=range&idSite=2&segment=&widget=&showtitle=1&random=4120, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 16:32:01 UTC] [b6ec4] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=previous30&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&period=range&idSite=2&segment=&widget=&showtitle=1&random=6397, CLI mode: 0]
ERROR Piwik\FrontController[2022-10-19 16:37:31 UTC] [2da0f] Uncaught exception: C:\matomo\plugins\Live\templates_actionCommon.twig(25): The string to escape is not a valid UTF-8 string. [Query: ?date=previous30&module=Live&format=html&forceView=1&viewDataTable=VisitorLog&action=getLastVisitsDetails&small=1&idSite=2&period=range&segment=&widget=&showtitle=1&random=6278, CLI mode: 0]
At a closer look it looks to me like it could be a Windows back-slash forward-slash problem in the way C:\matomo/tmp/templates_c/ce/cee8a44a4cabd76257f3dda3e3b87061.php it trying to write the temp file. But this would be odd - because it would not explain why just that on domain name has the problem, all the other domain names do not have that problem.