matomo-for-wordpress
matomo-for-wordpress copied to clipboard
Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() in WP plugin
#0 /wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php(221): GeoIp2\Database\Reader->getRecord('City', 'City', '95.255.20.205') #1 /wp-content/plugins/matomo/app/vendor/geoip2/geoip2/src/Database/Reader.php(84): GeoIp2\Database\Reader->modelFor('City', 'City', '95.255.20.205') #2 /wp-content/plugins/matomo/app/plugins/GeoIp2/LocationProvider/GeoIp2/Php.php(128): GeoIp2\Database\Reader->city('95.255.20.205') #3 /wp-content/plugins/matomo/app/plugins/UserCountry/VisitorGeolocator.php(146): Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2\Php->getLocation(Array) #4 /wp-content/plugins/matomo/app/plugins/UserCountry/VisitorGeolocator.php(115): Piwik\Plugins\UserCountry\VisitorGeolocator->getLocationObject(Object(Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2\Php), Array) #5 /wp-content/plugins/matomo/app/plugins/UserCountry/Columns/Base.php(55): Piwik\Plugins\UserCountry\VisitorGeolocator->getLocation(Array, true) #6 /wp-content/plugins/matomo/app/plugins/UserCountry/Columns/City.php(43): Piwik\Plugins\UserCountry\Columns\Base->getLocationDetail(Array, 'city_name') #7 /wp-content/plugins/matomo/app/core/Tracker/Visit.php(514): Piwik\Plugins\UserCountry\Columns\City->onNewVisit(Object(Piwik\Tracker\Request), Object(Piwik\Tracker\Visitor), Object(Piwik\Tracker\ActionPageview)) #8 /wp-content/plugins/matomo/app/core/Tracker/Visit.php(317): Piwik\Tracker\Visit->triggerHookOnDimensions(Array, 'onNewVisit') #9 /wp-content/plugins/matomo/app/core/Tracker/Visit.php(210): Piwik\Tracker\Visit->handleNewVisit(NULL) #10 /wp-content/plugins/matomo/app/core/Tracker.php(172): Piwik\Tracker\Visit->handle() #11 /wp-content/plugins/matomo/app/core/Tracker/Handler.php(55): Piwik\Tracker->trackRequest(Object(Piwik\Tracker\Request)) #12 /wp-content/plugins/matomo/app/core/Tracker.php(152): Piwik\Tracker\Handler->process(Object(Piwik\Tracker), Object(Piwik\Tracker\RequestSet)) #13 /wp-content/plugins/matomo/app/core/Tracker.php(127): Piwik\Tracker->track(Object(Piwik\Tracker\Handler), Object(Piwik\Tracker\RequestSet)) #14 /wp-content/plugins/matomo/app/piwik.php(73): Piwik\Tracker->main(Object(Piwik\Tracker\Handler), Object(Piwik\Tracker\RequestSet)) #15 /wp-content/plugins/matomo/app/matomo.php(13): include('/home/customer/...') #16 {main}
Hello @giorussonextre
Please follow these instructions. https://matomo.org/faq/troubleshooting/how-do-i-fix-the-error-call-to-undefined-method-maxminddbreadergetwithprefixlen/ Kind regards
Mat
Thanks Matt but this fix not working for me. # Matomo
- Versione del plugin Matomo: 4.11.0
- Config esiste ed è scrivibile.: Sì ("$abs_path/wp-content/uploads/matomo/config/config.ini.php" )
- JS Tracker esiste ed è scrivibile.: Sì ("$abs_path/wp-content/uploads/matomo/matomo.js" )
- Directory del plugin: Yes ([{"pluginsPathAbsolute":"$abs_path/wp-content/plugins/matomo/plugins","webrootDirRelativeToMatomo":"../"}])
- Directory Tmp scrivibile: Yes ($abs_path/wp-content/cache/matomo)
- Versione di Matomo: 4.11.0
- Blog idSite di Matomo: 1
- Matomo Install Version: 4.11.0 (Install date: 2022-09-09 08:37:31)
- Upgrades outstanding: No
- Upgrade in progress: No
Endpoints
- Matomo JavaScript Tracker URL: ($site_url/wp-content/uploads/matomo/matomo.js)
- Matomo JavaScript Tracker - WP Rest API: ($site_url/wp-json/matomo/v1/hit/)
- Matomo HTTP Tracking API: ($site_url/wp-content/plugins/matomo/app/matomo.php)
- Matomo HTTP Tracking API - WP Rest API: ($site_url/wp-json/matomo/v1/hit/)
Crons
- Tempo del server: 2022-10-07 09:24:32
- Ora del blog: 2022-10-07 09:24:32 (Le date sottostanti sono mostrate nel fuso orario del blog)
- Sync users & sites: Next run: 2022-10-08 08:39:21 (23 ore 14 minuti) ( Last started: 2022-10-07 08:39:35 (-44 minuti 57 secondi). Last ended: 2022-10-07 08:39:36 (-44 minuti 56 secondi). Interval: daily)
- Archive: Next run: 2022-10-07 09:37:33 (13 minuti 1 secondi) ( Last started: 2022-10-07 08:37:40 (-46 minuti 52 secondi). Last ended: 2022-10-07 08:37:56 (-46 minuti 36 secondi). Interval: hourly)
- Update GeoIP DB: Next run: 2022-10-09 08:39:21 (1 giorni 23 ore) ( Last started: 2022-10-06 14:25:50 (-18 ore 58 minuti). Last ended: 2022-10-06 14:25:53 (-18 ore 58 minuti). Interval: matomo_monthly)
Controlli obbligatori
- Versione PHP >= : ok
- PDO estensione: ok
- PDO\MYSQL estensione: ok
- MYSQLI estensione: ok
- Altre estensioni Richieste: ok
- Funzioni richieste: ok
- Richiesta configurazione PHP (php.ini): ok
- Directories con permessi di scrittura: ok
- Directory con diritti di scrittura per Gestione Tag: ok
Controlli opzionali
- 64-bit PHP Binary: ok
- Stato del tracker: ok
- Memoria massima: ok
- Fuso orario: ok
- Apri URL: ok
- PageSpeed disabilitato: ok
- GD > 2.x + Freetype (grafica): ok
- Altre estensioni: ok
- Altre funzioni: ok
- Filesystem: ok
- Ultima archiviazione completata con successo: ok
- Capacità del database: ok
- Warning Dimensione Massima Pacchetto: warning (Si raccomanda di impostare la dimensione 'max_allowed_packet' nel tuo database MySQL ad almeno 64MB. Quella impostata al momento è 32MB. )
- Geolocalizzazione: ok
- Aggiorna tramite HTTPS: ok
- Supports Async Archiving: No
- Location provider ID: geoip2php
- Location provider available: Yes
- Location provider working: Yes
- Matomo URL: Yes ($site_url/wp-content/plugins/matomo/app)
Matomo Settings
- Track mode: default
- Track codeposition: header
- Track api endpoint: default
- Track js endpoint: default
- Version history: 4.11.0
- Core version: 4.11.0
- Last tracking settings update: 1665134654
- Last settings update: 1665134654
- Track content: all
- Track search: Yes
- Track 404: Yes
Logs
- Nessuno:
WordPress
- Home URL: $site_url
- Site URL: $site_url
- WordPress Version: 4.9.8
- Number of blogs: 1
- Multisite Enabled: No
- Network Enabled: No
- WP_DEBUG: No
- WP_DEBUG_DISPLAY: Yes
- WP_DEBUG_LOG: Yes
- DISABLE_WP_CRON: -
- FORCE_SSL_ADMIN: Yes
- WP_CACHE: No
- CONCATENATE_SCRIPTS: -
- COMPRESS_SCRIPTS: -
- COMPRESS_CSS: -
- ENFORCE_GZIP: -
- WP_LOCAL_DEV: -
- WP_CONTENT_URL: $site_url/wp-content
- WP_CONTENT_DIR: $abs_path/wp-content
- UPLOADS: -
- BLOGUPLOADDIR: -
- DIEONDBERROR: -
- WPLANG: -
- ALTERNATE_WP_CRON: -
- WP_CRON_LOCK_TIMEOUT: 60
- WP_DISABLE_FATAL_ERROR_HANDLER: -
- MATOMO_SUPPORT_ASYNC_ARCHIVING: -
- MATOMO_TRIGGER_BROWSER_ARCHIVING: -
- MATOMO_ENABLE_TAG_MANAGER: -
- MATOMO_SUPPRESS_DB_ERRORS: -
- MATOMO_ENABLE_AUTO_UPGRADE: -
- MATOMO_DEBUG: -
- MATOMO_SAFE_MODE: -
- MATOMO_GLOBAL_UPLOAD_DIR: -
- MATOMO_LOGIN_REDIRECT: -
- Permalink Structure: /%postname%/
- Possibly uses symlink: No
- Upload base url: $site_url/wp-content/uploads
- Upload base dir: $abs_path/wp-content/uploads
- Upload url: $site_url/wp-content/uploads/2022/10
- Custom upload_path:
- Custom upload_url_path:
- Compatible content directory: Yes
WordPress Plugins
MU Plugins
- WP Migrate DB Compatibility: 1.2
Plugins
- AddToAny Share Buttons: 1.8.4
- Advanced Custom Fields PRO: 5.6.10
- Advanced Order Export For WooCommerce: 3.3.1
- Breadcrumb NavXT: 7.0.2
- CF7 to Webhook: 2.2.4
- Click to Chat: 3.9.5
- Contact Form 7: 5.0.4
- Contact Form 7 Conditional Fields: 1.8.3
- Contact Form 7 Redirection: 1.2.9
- Contact Form CFDB7: 1.2.6.4
- Contact Form Entries: 1.2.8
- Cookie and Consent Solution for the GDPR & ePrivacy: 2.5.8
- Custom Icons by Stylemixthemes: 1.4
- Font Awesome Integration: 5
- Google XML Sitemaps: 4.1.3
- Matomo Analytics - Ethical Stats. Powerful Insights.: 4.11.0
- Motors - Classified Listing: 6.0
- Redirection: 3.7.3
- Rentmax Options: 0.0.1
- Rentway Integration: 0.1.1
- STM Importer: 4.3
- STM Post Type: 4.0
- WooCommerce: 3.4.4
- WooCommerce Stripe Gateway: 5.0.0
- WordPress Carousel: 2.4.7
- WPBakery Page Builder: 5.5.4
- WP Mail SMTP: 2.7.0
- WP Maintenance Mode & Coming Soon: 2.4.4
- Yoast SEO: 8.4
- Active Plugins: 29 (add-to-any advanced-custom-fields-pro breadcrumb-navxt cf7-conditional-fields cf7-to-zapier click-to-chat-for-whatsapp contact-form-7 contact-form-cfdb7 contact-form-entries custom_icons_by_stylemixthemes font-awesome-integration google-sitemap-generator iubenda-cookie-law-solution js_composer matomo nx-rentway nx_rentmax redirection stm-post-type stm_importer stm_vehicles_listing woo-order-export-lite woocommerce-gateway-stripe woocommerce wordpress-seo wp-carousel-free wp-mail-smtp wp-maintenance-mode wpcf7-redirect)
- Theme: motors (motors-child)
Server
- Server Info: Apache
- PHP OS: Linux
- PHP Version: 7.3.33
- PHP SAPI: apache2handler
- PHP Error Reporting: 0 After bootstrap: 0
- PHP Found Binary: php -q
- Timezone: UTC
- Locale: it_IT
- User Locale: it_IT
- Memory Limit: 768M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
- WP Memory Limit: 256M
- WP Max Memory Limit: 768M
- Timezone version: 2020.4
- Time: 1665134672
- Max Execution Time: 120
- Max Post Size: 256M
- Max Upload Size: 268435456
- Max Input Vars: 3000
- Disabled PHP functions: No
- zlib.output_compression is off: Yes
- Curl Version: 7.66.0, OpenSSL/1.1.1q-fips
- Suhosin installed: No
Database
- MySQL Version: 5.7.39
- Mysqli Connect: Yes
- Force MySQL over Mysqli: No
- DB Prefix: wp_
- DB CHARSET: utf8mb4
- DB COLLATE:
- SHOW ERRORS: No
- SUPPRESS ERRORS: No
- Uses Socket: No
- Uses IPv6: No
- Matomo tables found: 59
- DB tables exist: Yes
- Matomo users found: 8
- Matomo sites found: 1
- Autorizzazioni obbligatorie: OK
Browser
- Browser: (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36)
- Language: it-it,it,en-us,en
Hello @giorussonextre
Thank you for posting your system report.
I've tested your plugin list, and I've found that you embed another Reader version in the WooCommerce plugin, but this is the same one.
Unfortunately, I've not been able to test all your plugins, as you might have some custom and paid ones.
Do you have shell access on your server? Could you give me the output of the following command?
find wp-content/plugins/ -type f -name Reader.php
Could you also give me the output of the following command?
php -i
And finally, when do you get this error? When accessing Matomo?
Kind regards
Mat
Hello @giorussonextre
Any chances you read my previous comment?
Kind regards
Mat
Hello @giorussonextre
Without any answer, I close this issue. Feel free to open a new one if you need further assistance. Kind regards
Mat