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
PHP 8.1 error with Mysqli "The number of variables must match the number of parameters in the prepared statement" #19413
Comments
There was a similar report with a prepared statement error #19129, but that might be unrelated, as it did happen in a live query. |
@sgiehl here are their installed plugins: Plugins Activated:API, Actions, Annotations, BulkTracking, Contents, CoreAdminHome, CoreConsole, CoreHome, CorePluginsAdmin, CoreUpdater, CoreVisualizations, CoreVue, CustomDimensions, CustomJsTracker, CustomVariables 4.1.0, DBStats, Dashboard, DevicePlugins, DevicesDetection, Diagnostics, Ecommerce, Events, Feedback, GeoIp2, Goals, Heartbeat, ImageGraph, Insights, Installation, Intl, IntranetMeasurable, LanguagesManager, Live, Login, LoginSaml 4.1.2, Marketplace, MobileMessaging, Monolog, Morpheus, MultiSites, Overlay, PagePerformance, PrivacyManager, ProfessionalServices, Provider 4.0.3, Proxy, Referrers, Resolution, RssWidget, SEO, ScheduledReports, SegmentEditor, SitesManager, Tour, Transitions, TwoFactorAuth, UserCountry, UserCountryMap, UserId, UserLanguage, UsersManager, VisitFrequency, VisitTime, VisitorInterest, VisitsSummary, WebsiteMeasurable, Widgetize Plugins Deactivated:MobileAppMeasurable, TagManager |
Hm... that doesn't look very special. I'm not able to reproduce that, so it might get hard to find the problem. matomo/core/DataAccess/LogAggregator.php Line 325 in 70b004c
so maybe logging the query and the bound parameters in case of an error might help. |
@sgiehl Would it be enough to run core:archive with |
I don't think |
Changing the adapter to PDO/MYSQL fixed the error here, so the user didn't get the SQL queries logged. Not sure if you wanted to keep this one open or rather close it since we can't reproduce @sgiehl ? |
When running the core:archive command on a Matomo install using PHP 8.1, the following error is returned:
Matomo version: 4.10.1
MySQL version: 10.3.31-MariaDB-log
PHP version: 8.1.7
For now we've asked the user to try switching the adapter to PDO to see if that temporarily resolves the issue.
The text was updated successfully, but these errors were encountered: