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

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data #1183

Open
georgemichaelis opened this issue Jul 23, 2024 · 1 comment

Comments

@georgemichaelis
Copy link

Hello,
when hitting the "Archive reports" button in the Troubleshooting section of the WP Plugin it says:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
The Matomo Dashboard is not generating reports.
I attached the system report.
Can you help`?

Thanks.

Best Regards


			  # Matomo
  • Matomo Plugin Version: 5.1.2
  • Config exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/config/config.ini.php" )
  • JS Tracker exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/matomo.js" )
  • Plugin directories: Yes ([{"pluginsPathAbsolute":"$abs_path/wp-content/plugins/matomo/plugins","webrootDirRelativeToMatomo":"../plugins"}])
  • Tmp directory writable: Yes ($abs_path/wp-content/cache/matomo)
  • Matomo Version: 5.1.0
  • Matomo Blog idSite: 1
  • Matomo Install Version: 5.1.2 (Install date: 2024-07-23 14:50:58)
  • 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

  • Server time: 2024-07-23 13:02:57
  • Blog time: 2024-07-23 15:02:57 (Below dates are shown in blog timezone)
  • Sync users & sites: Next run: 2024-07-23 14:51:43 (-11 Minuten 14s) ( Last started: Unknown. Last ended: Unknown. Interval: daily)
  • Archive: Next run: 2024-07-23 14:51:02 (-11 Minuten 55s) ( Last started: Unknown. Last ended: Unknown. Interval: hourly)
  • Update GeoIP DB: Next run: 2024-07-23 14:51:33 (-11 Minuten 24s) ( Last started: Unknown. Last ended: Unknown. Interval: matomo_monthly)

Mandatory checks

  • PHP-Version >= 7.2.5: ok
  • PDO Erweiterung: ok
  • PDO\MYSQL Erweiterung: ok
  • MYSQLI Erweiterung: ok
  • Weitere erforderliche Anforderungen: ok
  • Erforderliche Funktionen: ok
  • Benötigte PHP Konfiguration (php.ini): ok
  • Verzeichnisse mit Schreibzugriff: ok
  • Verzeichnisse mit Schreibzugriff auf Tag Manager: ok

Optional checks

  • 64-bit PHP Binär: ok
  • Tracker-Status: ok
  • Speicherlimit: ok
  • Zeitzone: ok
  • Öffnen einer URL: ok
  • GD > 2.x + FreeType (Grafiken): ok
  • Andere Erweiterungen: ok
  • Andere Funktionen: ok
  • Dateisystem: ok
  • Letzter erfolgreicher Abschluss der Archivierung: ok
  • Datenbankfähigkeiten: ok
  • Maximale Packetgröße: ok
  • Warning Standorterkennung: warning (Der Standard-Standortanbieter bestimmt das Land, aus dem die Besucher eine Verbindung herstellen, anhand der von ihnen gewählten Sprache. Dies ist nicht sehr genau, daher installieren und verwenden Sie eine Geolocation-Datenbank. )
  • Update über HTTPS: ok
  • Mobile Messaging SMS Provider: ok
  • Supports Async Archiving: No
  • Async Archiving Disabled in Setting: No
  • Location provider ID: default
  • Location provider available: Yes
  • Location provider working: Yes
  • Had visit in last 5 days: Yes
  • Matomo URL: Yes ($site_url/wp-content/plugins/matomo/app/)

Matomo Settings

  • Track mode: default
  • Track ecommerce: No
  • Track codeposition: footer
  • Track api endpoint: default
  • Track js endpoint: default
  • Version history: 5.1.2
  • Core version: 5.1.0
  • Last tracking settings update: 1721739271
  • Last settings update: 1721739271
  • Show get started page: 0
  • Track ecommerce: No

Logs

  • None:

WordPress

  • Home URL: $site_url
  • Site URL: $site_url
  • WordPress Version: 6.6
  • Number of blogs: 1
  • Multisite Enabled: No
  • Network Enabled: No
  • WP_DEBUG: Yes
  • WP_DEBUG_DISPLAY: No
  • WP_DEBUG_LOG: Yes
  • DISABLE_WP_CRON: Yes
  • 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_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/2024/07
  • Custom upload_path:
  • Custom upload_url_path:
  • Compatible content directory: Yes
  • WP_Filesystem Initialized: Yes

WordPress Plugins

MU Plugins

  • 1&1 Product Subdomain: 1.1.0
  • InfiniteWP - Client Loader: 1.0.1

Plugins

  • Advanced Category and Custom Taxonomy Image: 1.0.8
  • Advanced Custom Fields: 6.3.4
  • Advanced Database Cleaner: 3.1.4
  • Avada Builder: 3.11.9
  • Avada Core: 5.11.9
  • Better Search Replace: 1.4.7 (Network enabled)
  • Borlabs Cookie - Cookie Opt-in: 2.2.68
  • Disable Comments: 2.4.6
  • Duplicator Pro: 4.5.17.4 (Network enabled)
  • Hide My Site: 2.2
  • Import and export users and customers: 1.26.10
  • InfiniteWP - Client: 1.13.0 (Network enabled)
  • Limit Login Attempts Reloaded: 2.26.12
  • Loco Translate: 2.6.11
  • Matomo Analytics - Ethical Stats. Powerful Insights.: 5.1.2
  • PDF Embedder: 4.8.2
  • Really Simple SSL: 8.1.5 (Network enabled)
  • Slider Revolution: 6.7.14
  • Ultimate Member: 2.8.6
  • Ultimate Member - reCAPTCHA: 2.3.7
  • WPCode Lite: 2.2.0
  • WP Job Manager: 2.3.0
  • WP Mail SMTP: 4.1.0
  • Active Plugins: 24 (iwp-client:1.13.0 advanced-category-and-custom-taxonomy-image:1.0.8 advanced-custom-fields:6.3.4 advanced-database-cleaner:3.1.4 better-search-replace:1.4.7 borlabs-cookie:2.2.68 disable-comments:2.4.6 duplicator-pro:4.5.17.4 duplicator-pro:4.5.17.4 fusion-builder:3.11.9 fusion-core:5.11.9 hide-my-site:2.2 import-users-from-csv-with-meta:1.26.10 insert-headers-and-footers:2.2.0 limit-login-attempts-reloaded:2.26.12 loco-translate:2.6.11 matomo:5.1.2 pdf-embedder:4.8.2 really-simple-ssl:8.1.5 revslider:6.7.14 ultimate-member:2.8.6 um-recaptcha:2.3.7 wp-job-manager:2.3.0 wp-mail-smtp:4.1.0)
  • Theme: Avada (Avada-Child-Theme)

Server

  • Server Info: Apache
  • Apache AddHandler support: Supported
  • PHP OS: Linux
  • PHP Version: 8.0.30
  • PHP SAPI: cgi-fcgi
  • PHP Binary Name: /usr/lib/cgi-bin/php8.0
  • PHP Maxmind DB extension: Not loaded
  • PHP Error Reporting: 4437 After bootstrap: 4437
  • PHP Found Binary: /usr/lib/cgi-bin/php8.0 -q
  • Timezone: UTC
  • WP timezone: Europe/Berlin
  • Locale: de_DE
  • User Locale: de_DE_formal
  • Memory Limit: -1 (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
  • WP Memory Limit: 40M
  • WP Max Memory Limit: -1
  • Timezone version: 2022.6
  • Time: 1721739779
  • Max Execution Time: 30000
  • Max Post Size: 64M
  • Max Upload Size: 67108864
  • Max Input Vars: 5000
  • Disabled PHP functions: No
  • zlib.output_compression is off: Yes
  • Curl Version: 7.64.0, OpenSSL/1.1.1n
  • Suhosin installed: No

PHP cli

  • PHP CLI Version: Usage: php8.0 [-q] [-h] [-s] [-v] [-i] [-f ]
    php8.0 [args...]
    -a Run interactively
    -b address:port| Bind Path for external FASTCGI Server mode
    -C Do not chdir to the script's directory
    -c | Look for php.ini file in this directory
    -n No php.ini file will be used
    -d foo[=bar] Define INI entry foo with value 'bar'
    -e Generate extended information for debugger/profiler
    -f Parse . Implies `-q'
    -h This help
    -i PHP information
    -l Syntax check only (lint)
    -m Show compiled in modules
    -q Quiet-mode. Suppress HTTP Header output.
    -s Display colour syntax highlighted source.
    -v Version number
    -w Display source with stripped comments and whitespace.
    -z Load Zend extension .
    -T Measure execution time of script repeated times. (The detected PHP CLI version does not match the PHP web version. To avoid archiving errors, enable archiving via HTTP requests, or manually set the path to your PHP CLI executable to the one for PHP version 8.0.30.)
  • MySQLi support: missing (Your PHP cli does not load the MySQLi extension. You might have archiving problems in Matomo but also others problems in your WordPress cron tasks. You should enable this extension)

Database

  • MySQL Version: 8.0.36
  • Mysqli Connect: Yes
  • Force MySQL over Mysqli: No
  • DB Prefix: vb0vz0vhkl
  • DB CHARSET: utf8mb4
  • DB COLLATE:
  • SHOW ERRORS: No
  • SUPPRESS ERRORS: No
  • Uses Socket: No
  • Uses IPv6: No
  • Matomo tables found: 50
  • DB tables exist: Yes
  • Matomo users found: 3
  • Matomo sites found: 1
  • Required permissions: OK

Browser

  • Browser: (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0)
  • Language: de,en-us,en
@diosmosis
Copy link
Member

Hi @georgemichaelis, this is a known issue for some hosting providers. The archiving ran, your browser is just not able to display the page again due to a currently unknown reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants