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

[4.6.0-b2] Error: Call to undefined function Piwik\piwik_fix_lbrace() in DiagnosticResult.php #18303

Closed
MichaIng opened this issue Nov 14, 2021 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@MichaIng
Copy link
Contributor

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

Context

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
@MichaIng MichaIng added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Nov 14, 2021
@tsteur tsteur added the Regression Indicates a feature used to work in a certain way but it no longer does even though it should. label Nov 14, 2021
@tsteur tsteur added this to the 4.6.0 milestone Nov 14, 2021
@tsteur tsteur added Bug For errors / faults / flaws / inconsistencies etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Nov 14, 2021
@sgiehl
Copy link
Member

sgiehl commented Nov 14, 2021

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

@MichaIng
Copy link
Contributor Author

MichaIng commented Nov 14, 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
Copy link
Member

sgiehl commented Nov 14, 2021

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

@MichaIng
Copy link
Contributor Author

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 🤔.

@sgiehl sgiehl added worksforme The issue cannot be reproduced and things work as intended. and removed Regression Indicates a feature used to work in a certain way but it no longer does even though it should. labels Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants