@MichaIng opened this Issue on November 14th 2021

Expected Behavior

The diagnostic check when accessing admin settings does not fail.

Current Behavior

The diagnostic check when accessing admin settings fails with this errro:

Uncaught exception: Error: Call to undefined function Piwik\piwik_fix_lbrace() in /var/www/matomo/plugins/Diagnostics/Diagnostic/DiagnosticResult.php:74

If you need the stack trace, I can add it.

Possible Solution

Steps to Reproduce (for Bugs)

  1. Update to Matomo v4.6.0-b2
  2. Access the admin settings


Your Environment

  • Matomo Version: 4.6.0-b2
  • PHP Version: 8.1.0RC6
  • Server Operating System: Debian Bookworm
  • Additionally installed plugins:
    API, Actions, Annotations, BulkTracking, CoreAdminHome, CoreConsole, CoreHome, CorePluginsAdmin, CoreUpdater, CoreVisualizations, CoreVue, DBStats, DarkTheme 1.1.7, Dashboard, DevicePlugins, DevicesDetection, Diagnostics, Goals, IPReports 4.1.1, ImageGraph, Insights, Installation, Intl, LanguagesManager, Live, LogViewer 4.0.1, Login, Marketplace, Monolog, Morpheus, PagePerformance, PrivacyManager, Proxy, Referrers, Resolution, SEO, SegmentEditor, SitesManager, TrackingSpamPrevention 4.1.0, Transitions, UserLanguage, UsersManager, VisitFrequency, VisitTime, VisitorInterest, VisitsSummary, WebsiteMeasurable
  • Browser: Opera 83
  • Operating System: Windows 10
@sgiehl commented on November 14th 2021 Member

I'm actually not able to reproduce that with PHP 8.1-rc6. For me the diagnostics runs without problems 🤔

@MichaIng commented on November 14th 2021

Hmm, I face regular segmentation faults of all php-fpm children after accessing that page now (the gear icon, initial page, segfauls temporarily solved by service restart) and an error loading the top right diagnostics, but indeed not the same error anymore. Not sure but there seems to be an issue on a different level which I need to identify first.

Btw, another minor one when accessing that page, from browser console:

[Report Only] Refused to load the image 'https://plugins.matomo.org/IP2Location/images/4.0.2/01_Settings.png?w=600' because it violates the following Content Security Policy directive: "img-src 'self' 'unsafe-inline' 'unsafe-eval' data:".

Since this does not match the webserver wide CSP we set, I guess it is set internally by Matomo and hence needs to have https://plugins.matomo.org added as image source?

@sgiehl commented on November 14th 2021 Member

@MichaIng thanks for the update. The CSP issue should already be fixed, but was not yet included in any beta I guess.

@MichaIng commented on November 14th 2021

Great. Sorry for the spam, seems to be a system issue and not necessarily a bug in Matomo. I'll close this hence for now and try to further investigate first what causes this segfault loops. I observed it once already with PHP8.0, so maybe it's a specific PHP module (those get updates for both PHP versions) or another system library or so 🤔.

This Issue was closed on November 14th 2021
Powered by GitHub Issue Mirror