You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dashboard widget displays an error when I add any of the Plausible widgets to my Typo3 dashboard.
Steps to Reproduce
Install typo3-ext-plausibleio extension
Add Url, Plausible API key and Sitename inside "site configuration"
Add Plausible widget to dashboard
Expected behavior: The widget shows analytic data from Plausible.
This is what happens when I use the now deprecated: waldhacker/typo3-plausibleio:3.0.0
Actual behavior: The widget displays an error: An error occurred while retrieving information for this widget. Please try again, and if the problem persists, contact your administrator.
The browser console shows a http-500 error with the following response:
(1/1) #1166546734 TYPO3\CMS\Core\Package\Exception\UnknownPackageException
Package "waldhacker/typo3-plausibleio" is not available. Please check if the package exists and that the package key is correct (package keys are case sensitive).
The same error is found in the Typo3 log. See the entire error at the bottom.
Versions
Tested on local DDEV and our live web server - I'm using Firefox 128.0:
Typo3: 12.4.17
Extension: dreistromland/typo3-plausibleio:3.0.0 "untainted" - no previous plausibleio extension was installed
PHP: 8.2.19
Additional Notes
The issue occurs with the new dreistromland/typo3-plausibleio:3.0.0 extension.
The previous version (waldhacker/typo3-plausibleio:3.0.0) worked as expected. I might have missed something while configuring the new extension, but I cant seem to find any differences in the setup for the waldhacker vs dreistromland version.
TYPO3 and PHP error logs have been checked for additional information:
Bug Report
Description
The dashboard widget displays an error when I add any of the Plausible widgets to my Typo3 dashboard.
Steps to Reproduce
Expected behavior: The widget shows analytic data from Plausible.
This is what happens when I use the now deprecated: waldhacker/typo3-plausibleio:3.0.0
Actual behavior: The widget displays an error:
An error occurred while retrieving information for this widget. Please try again, and if the problem persists, contact your administrator.
The browser console shows a http-500 error with the following response:
The same error is found in the Typo3 log. See the entire error at the bottom.
Versions
Tested on local DDEV and our live web server - I'm using Firefox 128.0:
DDEV:
Online webserver 1:
Online webserver 2:
Additional Notes
The issue occurs with the new dreistromland/typo3-plausibleio:3.0.0 extension.
The previous version (waldhacker/typo3-plausibleio:3.0.0) worked as expected. I might have missed something while configuring the new extension, but I cant seem to find any differences in the setup for the waldhacker vs dreistromland version.
TYPO3 and PHP error logs have been checked for additional information:
Click to expand relevant lines from the Typo3 log
Typo3 error log
Wed, 24 Jul 2024 06:24:47 +0000 [WARNING] request="0ad93819f8fa9" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (FE): PHP Warning: Undefined array key "plausible_trackingScriptBaseUrl" in /var/www/html/vendor/dreistromland/typo3-plausibleio/Classes/Services/ConfigurationService.php line 210
Wed, 24 Jul 2024 06:24:47 +0000 [WARNING] request="0ad93819f8fa9" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (FE): PHP Warning: Undefined array key "plausible_trackingScriptType" in /var/www/html/vendor/dreistromland/typo3-plausibleio/Classes/Services/ConfigurationService.php line 211
Wed, 24 Jul 2024 08:20:12 +0000 [CRITICAL] request="6410d7900eae4" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB: BE): TYPO3\CMS\Core\Package\Exception\UnknownPackageException, code #1166546734, file /var/www/html/vendor/typo3/cms-core/Classes/Package/PackageManager.php, line 475: Package "waldhacker/typo3-plausibleio" is not available. Please check if the package exists and that the package key is correct (package keys are case sensitive).- UnknownPackageException: Package "waldhacker/typo3-plausibleio" is not available. Please check if the package exists and that the package key is correct (package keys are case sensitive)., in file /var/www/html/vendor/typo3/cms-core/Classes/Package/PackageManager.php:475 - {"mode":"WEB","application_mode":"BE","exception_class":"TYPO3\\CMS\\Core\\Package\\Exception\\UnknownPackageException","exception_code":1166546734,"file":"/var/www/html/vendor/typo3/cms-core/Classes/Package/PackageManager.php","line":475,"message":"Package \"waldhacker/typo3-plausibleio\" is not available. Please check if the package exists and that the package key is correct (package keys are case sensitive).","request_url":"https://typo3-12.4.ddev.site/typo3/ajax/dashboard/widget/content?token=--AnonymizedToken--&widget=plausible.visitorsovertime","exception":"TYPO3\\CMS\\Core\\Package\\Exception\\UnknownPackageException: Package \"waldhacker/typo3-plausibleio\" is not available. Please check if the package exists and that the package key is correct (package keys are case sensitive). in /var/www/html/vendor/typo3/cms-core/Classes/Package/PackageManager.php:475\nStack trace:\n#0 /var/www/html/vendor/typo3/cms-backend/Classes/View/BackendViewFactory.php(89): TYPO3\\CMS\\Core\\Package\\PackageManager->getPackage('waldhacker/typo...')\n#1 /var/www/html/vendor/dreistromland/typo3-plausibleio/Classes/Dashboard/Widget/VisitorsOverTimeWidget.php(68): TYPO3\\CMS\\Backend\\View\\BackendViewFactory->create(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Array)\n#2 /var/www/html/vendor/typo3/cms-dashboard/Classes/Controller/WidgetAjaxController.php(60): Waldhacker\\Plausibleio\\Dashboard\\Widget\\VisitorsOverTimeWidget->renderWidgetContent()\n#3 /var/www/html/vendor/typo3/cms-backend/Classes/Http/RouteDispatcher.php(77): TYPO3\\CMS\\Dashboard\\Controller\\WidgetAjaxController->getContent(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#4 /var/www/html/vendor/typo3/cms-backend/Classes/Http/RequestHandler.php(104): TYPO3\\CMS\\Backend\\Http\\RouteDispatcher->dispatch(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#5 /var/www/html/vendor/typo3/cms-core/Classes/Middleware/ResponsePropagation.php(34): TYPO3\\CMS\\Backend\\Http\\RequestHandler->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#6 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\ResponsePropagation->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(TYPO3\\CMS\\Backend\\Http\\RequestHandler))\n#7 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/SiteResolver.php(64): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#8 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\SiteResolver->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#9 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/SudoModeInterceptor.php(51): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#10 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\SudoModeInterceptor->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#11 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/AdditionalResponseHeaders.php(37): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#12 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\AdditionalResponseHeaders->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#13 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/ContentSecurityPolicyHeaders.php(50): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#14 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\ContentSecurityPolicyHeaders->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#15 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/OutputCompression.php(43): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#16 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\OutputCompression->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#17 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/BackendModuleValidator.php(72): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#18 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\BackendModuleValidator->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#19 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/BackendUserAuthenticator.php(159): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#20 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\BackendUserAuthenticator->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#21 /var/www/html/vendor/typo3/cms-reactions/Classes/Http/Middleware/ReactionResolver.php(57): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#22 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Reactions\\Http\\Middleware\\ReactionResolver->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#23 /var/www/html/vendor/typo3/cms-core/Classes/Middleware/RequestTokenMiddleware.php(71): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#24 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\RequestTokenMiddleware->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#25 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/BackendRouteInitialization.php(80): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#26 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\BackendRouteInitialization->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#27 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/ContentSecurityPolicyReporter.php(41): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#28 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\ContentSecurityPolicyReporter->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#29 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/ForcedHttpsBackendRedirector.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#30 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\ForcedHttpsBackendRedirector->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#31 /var/www/html/vendor/typo3/cms-backend/Classes/Middleware/LockedBackendGuard.php(71): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#32 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Backend\\Middleware\\LockedBackendGuard->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#33 /var/www/html/vendor/typo3/cms-core/Classes/Middleware/NormalizedParamsAttribute.php(41): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#34 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\NormalizedParamsAttribute->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#35 /var/www/html/vendor/typo3/cms-core/Classes/Middleware/VerifyHostHeader.php(55): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#36 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\VerifyHostHeader->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(Psr\\Http\\Server\\RequestHandlerInterface@anonymous))\n#37 /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(70): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#38 /var/www/html/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(80): TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#39 /var/www/html/vendor/typo3/cms-backend/Classes/Http/Application.php(58): TYPO3\\CMS\\Core\\Http\\AbstractApplication->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#40 /var/www/html/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(92): TYPO3\\CMS\\Backend\\Http\\Application->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#41 /var/www/html/public/typo3/index.php(20): TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()\n#42 /var/www/html/public/typo3/index.php(21): {closure}()\n#43 {main}"}
Please let me know if I've left out important data, or just missed something obvious.
Best regards Daniel Damm
The text was updated successfully, but these errors were encountered: