• Resolved polina92

    (@polina92)


    Hi there,
    I installed the plugin, and nothing happens, there is no record.
    Apparently, there is no log created.
    When I click on report, this leads me to a 403 error on nginx.
    Below the system report
    Waiting for your feedback
    Kind regards

    # Matomo

    * Version de l’extension Matomo: 4.11.0
    * Config existe et est accessible en écriture.: Oui (“$abs_path/wp-content/uploads/matomo/config/config.ini.php” )
    * JS Tracker existe et est accessible en écriture.: Oui (“$abs_path/wp-content/uploads/matomo/matomo.js” )
    * Répertoires de l’extension: Yes ([{“pluginsPathAbsolute”:”$abs_path\/wp-content\/plugins\/matomo\/plugins”,”webrootDirRelativeToMatomo”:”..\/”}])
    * Répertoire temporaire accessible en écriture: Yes ($abs_path/wp-content/cache/matomo)
    * Version de Matomo: 4.11.0
    * idSite du site web Matomo: 1
    * Version installée de Matomo: 4.10.0 (Install date: 2022-06-30 14:36:00)
    * 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

    * Heure du serveur: 2022-10-03 15:15:02
    * Heure du site web: 2022-10-03 16:15:02 (Les dates ci-dessous sont affichées dans le fuseau horaire du site web)
    * Sync users & sites: Next run: 2022-10-04 06:06:41 (13 heures 51 min) ( Last started: 2022-10-03 06:06:54 (-10 heures 8 min). Last ended: 2022-10-03 06:06:55 (-10 heures 8 min). Interval: daily)
    * Archive: Next run: 2022-10-03 17:06:41 (51 min 39s) ( Last started: 2022-10-03 16:06:56 (-8 min 6s). Last ended: 2022-10-03 16:06:57 (-8 min 5s). Interval: hourly)
    * Update GeoIP DB: Next run: 2022-10-22 06:06:41 (18 jours 13 heures) ( Last started: 2022-09-22 06:06:44 (-11 jours 10 heures). Last ended: 2022-09-22 06:06:46 (-11 jours 10 heures). Interval: matomo_monthly)

    ## Contrôles obligatoires

    * Version PHP >= : ok
    * PDO Extension: ok
    * PDO\MYSQL Extension: ok
    * MYSQLI Extension: ok
    * Autres extensions requises: ok
    * Fonctions requises: ok
    * Configuration PHP requise (php.ini): ok
    * Répertoires avec les droits d’accès en écriture: ok
    * Répertoires avec accès en écriture pour Gestionnaire de balises: ok

    ## Contrôles facultatifs

    * Binaire PHP 64 bits: ok
    * État du traqueur: ok
    * Limite mémoire: ok
    * Fuseau horaire: ok
    * Ouvrir l’URL: ok
    * PageSpeed est désactivé: ok
    * GD > 2.x + FreeType (graphics): ok
    * Autres extensions: ok
    * Autres fonctions: ok
    * Système de fichiers: ok
    * Dernière exécution d’archivage réussie: ok
    * Capacités de la base de données: ok
    * Taille maximale des paquets: ok
    * Géolocalisation: ok
    * Mettre à jour via 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: footer
    * Track api endpoint: default
    * Track js endpoint: default
    * Version history: 4.11.0, 4.10.0
    * Core version: 4.11.0
    * Last tracking settings update: 1663692244
    * Last settings update: 1664779771

    ## Logs

    * Aucun:

    # WordPress

    * Home URL: $site_url
    * Site URL: $site_url
    * WordPress Version: 6.0.2
    * Number of blogs: 1
    * Multisite Enabled: No
    * Network Enabled: No
    * WP_DEBUG: Yes
    * WP_DEBUG_DISPLAY: No
    * WP_DEBUG_LOG: Yes
    * DISABLE_WP_CRON: –
    * FORCE_SSL_ADMIN: Yes
    * WP_CACHE: Yes
    * 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

    * aaa-wp-cerber.php: 1.0

    ## Plugins

    * Advanced Shipment Tracking for WooCommerce: 3.4.7
    * Asset CleanUp: Page Speed Booster: 1.3.8.6
    * Blackhole for Bad Bots: 3.3.4
    * Block Visibility: 2.4.3
    * Breeze: 2.0.9 (Network enabled)
    * Classic Editor: 1.6.2
    * Classic Widgets: 0.3
    * Code Snippets: 3.2.0
    * Complianz | GDPR/CCPA Cookie Consent: 6.3.3
    * Contact Form 7: 5.6.3
    * Content Control: 1.1.9
    * Copyright Proof: 4.16
    * Disable Admin Notices Individually: 1.3.0
    * Disable Bloat for WordPress & WooCommerce: 3.0.3
    * Flamingo: 2.3
    * Forget About Shortcode Buttons: 2.1.2
    * GA Google Analytics: 20220517
    * GenerateBlocks: 1.5.4
    * GTM4WP: 1.16.1
    * Gutenberg: 14.2.0
    * Hotjar: 1.0.14
    * Lightbox for Gallery & Image Block: 1.12
    * LuckyWP Table of Contents: 2.1.4
    * Maintenance: 4.06
    * MalCare WordPress Security Plugin – Malware Scanner, Cleaner, Security Firewall: 4.82 (Network enabled)
    * Matomo Analytics – Ethical Stats. Powerful Insights.: 4.11.0
    * Meow Gallery: 4.2.7
    * Mollie Payments for WooCommerce: 7.3.3
    * Payment Plugins for Stripe WooCommerce: 3.3.28
    * Post SMTP: 2.0.26
    * Product Feed PRO for WooCommerce: 11.8.7
    * Product Reviews Import Export for WooCommerce: 1.4.8
    * Query Monitor: 3.10.1
    * Rank Math SEO: 1.0.98.2
    * Safe SVG: 2.0.3
    * Stackable – Gutenberg Blocks: 3.4.5
    * Ultimate Blocks: 2.5.3
    * UpdraftPlus – Backup/Restore: 1.22.23
    * WebP Express: 0.25.5 (Network enabled)
    * WooCommerce: 6.9.4
    * WooCommerce Blocks: 8.6.0
    * WooCommerce Multilingual & Multicurrency: 5.0.2
    * WooCommerce PayPal Checkout Gateway: 2.1.3
    * WooCommerce PDF Invoices & Packing Slips: 3.2.0
    * WooCommerce Table Rate Shipping: 4.3.2
    * Woodmart Core: 1.0.34
    * Wordfence Security: 7.6.2 (Network enabled)
    * WordPress Hide Posts: 1.1.0
    * WP Add Mime Types: 3.0.3
    * WPBakery Page Builder: 6.9.0
    * WP Cerber Security, Anti-spam & Malware Scan: 9.0 (Network enabled)
    * WP Mail Logging: 1.10.4
    * WPML Media: 2.7.1
    * WPML Multilingual CMS: 4.5.11
    * WPML String Translation: 3.2.2
    * WP Rollback: 1.7.2
    * XTEMOS Post Types plugin: 1.14
    * Yoast Duplicate Post: 4.5
    * Active Plugins: 32 (sitepress-multilingual-cms block-visibility breeze code-snippets contact-form-7 duplicate-post duracelltomi-google-tag-manager flamingo ga-google-analytics generateblocks js_composer luckywp-table-of-contents maintenance malcare-security matomo meow-gallery mollie-payments-for-woocommerce post-smtp safe-svg seo-by-rank-math ultimate-blocks woo-advanced-shipment-tracking woo-stripe-payment woocommerce-multilingual woocommerce-pdf-invoices-packing-slips woocommerce-table-rate-shipping woocommerce woodmart-core wordfence wp-cerber wpml-media-translation wpml-string-translation)
    * Warning Extensions non compatibles: 1 (post-smtp Matomo may work fine when using these plugins but there may be some issues. For more information see https://matomo.org/faq/wordpress/which-plugins-is-matomo-for-wordpress-known-to-be-not-compatible-with/ The PDF report files from the email reports will be missing when the PostSMTP mode is selected but it works when the PHPMailer mode is selected.)
    * Theme: woodmart (woodmart)

    # Server

    * Server Info: Apache/2.4.51 (Debian)
    * PHP OS: Linux
    * PHP Version: 7.4.30
    * PHP SAPI: fpm-fcgi
    * PHP Binary Name: php-fpm7.4
    * PHP Error Reporting: 0 After bootstrap: 0
    * PHP Found Binary: php -q
    * Timezone: UTC
    * WP timezone: +01:00
    * Locale: fr_FR
    * User Locale: fr_FR
    * Memory Limit: 2048M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
    * WP Memory Limit: 2048M
    * WP Max Memory Limit: 2048M
    * Timezone version: 0.system
    * Time: 1664810102
    * Max Execution Time: 300
    * Max Post Size: 25M
    * Max Upload Size: 20971520
    * Max Input Vars: 3000
    * Disabled PHP functions: Yes (pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,)
    * zlib.output_compression is off: Yes
    * Curl Version: 7.64.0, OpenSSL/1.1.1n
    * Suhosin installed: No

    # Database

    * MySQL Version: 5.5.5
    * Mysqli Connect: Yes
    * Force MySQL over Mysqli: No
    * DB Prefix: wppz_
    * DB CHARSET: utf8mb4
    * DB COLLATE:
    * SHOW ERRORS: No
    * SUPPRESS ERRORS: No
    * Uses Socket: No
    * Uses IPv6: No
    * Matomo tables found: 62
    * DB tables exist: Yes
    * Matomo users found: 2
    * Matomo sites found: 1
    * Permissions obligatoires: OK

    # Browser

    * Browser: (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36)
    * Language: en-us,en

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @polina92

    Sorry to hear that you encounter some issues with our plugin.

    I’ll need additional details to help you further: first, you told me that you get a 403 error when accessing Matomo.
    Do you also get this error when trying to open the Tag Manager link from the “Matomo Analytics > Tag Manager” menu?

    You told us that you don’t have any visits recorded. I suppose you say that from the Summary reports? What do you mean by “There is no log created?”.
    Here are possible explanations of no visits available.
    https://matomo.org/faq/troubleshooting/faq_58/
    Does one of these solutions bring you visits?

    Kind regards

    Mat

    Thread Starter polina92

    (@polina92)

    Hi Mat,
    First, thank you for answering.
    Sorry, I am a dummie. I reviewed the trouble shooting faq, and did not issue any clue there that could be relevant.

    If I click on matomo analytics, or matamo / start in dashboard, it’s OK, it says that tracking is activated. I also checked that the tracking code is linked to my site.

    If I click on “summary”, text is there, but all values are at zero or empty.

    If I click on “report”, I have a 403 on nginx.

    If I click on “settings” and the “matomo admin”, I also have a 403 on nginx.

    When I look at diagnosis, I see this:
    ## Logs
    * Aucun:
    i.e. none in French.
    What explains that I wrote that no log is generated.

    In debug logs, I see this:
    Matomo: Scheduled tasks archive data
    PHP Warning: chmod(): Operation not permitted in /…./public_html/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    Hoping this helps and remaining at your disposal
    Kind regards

    Thread Starter polina92

    (@polina92)

    ps; i also have this in debug logs:

    Matomo: Scheduled tasks archive data
    PHP Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /…./public_html/wp-includes/wp-db.php on line 1753

    Hello @polina92

    Regarding the 403 errors, you may have a plugin which blocks PHP execution in your plugin subfolder. Do you use the ithemes security plugin? By default, it deactivates PHP usage in the wp-content/plugins folder.

    Regarding the two others errors you have in your debug content, you have first a file system permission issue. Difficult to say where the problem is. Your hosting provider could help you to fix it.
    You also have a database connexion problem. Does your wp-config.php contains the database connexion variables, or do you use environment variables to set your database credentials?

    Kind regards

    Mat

    Thread Starter polina92

    (@polina92)

    Hi Mat,
    This is beyong my knowlegde and competencies, so I will couple of days to test and investigate. My gut feeling is that it’s probably due to hosting … between apache, nginx, varnish, Memcached …
    Re. security, I have 3 plugins wordfence, wp cerber, and bot protection (malcare), but not ithemes’, I had read the warning in your doc.
    So, talk to you soon
    Kind regards
    Polina

    Hello @polina92

    Your answer has been administrated.
    So I’ll answer you here:

    2 Questions for you:
    
    => are you aware of a way to set an exception that does not downgrade the security of the site?
    
    => if not, what is the good reason to allow direct full access to php to all, independently from Matomo? Or do you agree that there is a risk in allowing direct access to php?

    To do the same thing that this feature provided by your hosting provider, you can add in your .htaccess file something like that:

    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    	RewriteCond %{REQUEST_URI} ^/wp-content/.+\.php$
    	RewriteCond %{REQUEST_URI} !/matomo/app/
    	RewriteRule ^(.*)$ - [R=403,L]
    </IfModule>
    

    I didn’t test it, but the aim of these rules is to redirect to a 403 error all requests to a PHP file in your wp-content folder. It excludes the required access to Matomo.

    There is definitively a risk to install a backdoor in your plugin folder through a plugin. But this risk can be reduced if you use only famous plugins, or if you use a security plugin which has a file scanner (Wordfence for example).

    Kind regards

    Mat

    Hello @polina92

    Any chances my answer helped you?

    Kind regards

    Mat

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Does not work’ is closed to new replies.