Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all 5832 articles
Browse latest View live

Fatal error: Access level to ... after Update to 4.0.5

$
0
0

We have updated from version 4.0.1-b1 to 4.0.5, but the update script allways die:

Fatal error : Access level to Piwik\Plugins\ExampleTracker\Columns\ExampleActionDimension::configureSegments() must be public (as in class Piwik\Columns\Dimension) in /html/typo3/piwik/plugins/ExampleTracker/Columns/ExampleActionDimension.php on line 136

What can we do?

3 posts - 2 participants

Read full topic


Your database does not support utf8mb4

$
0
0

Hi,

I have updated to Matomo 4.0.5.
The update, including the database updates, went fine, but when attempting to convert the DB to use utf8mb4, by running console core:convert-to-utf8mb4, I just get a “Your database does not support utf8mb4” message.

Looking at the script, it seems this has to do with utf8mb4 not being the default character set of our MySQL db - version 5.5.29, on RHEL.

I have tried setting the following parameters in my.cnf manually (and restarted), but without luck:

[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
[mysqld]
character-set-server = utf8mb

Is there anything else I should have a look at, or is this an issue with our (old) version of MySQL?
Many thanks for any suggestions!

3 posts - 2 participants

Read full topic

Updating PHP from 7.0 to 7.4 breaks Matomo

$
0
0

I’m running the the latest 3.x under Hostgator, and just upgraded PHP from 7.0 to 7.4. Now Matomo won’t let me in. It throws an error, and also downloads a small file, both copied below. I’d imagine it wants me to put this file somewhere, but I have no Idea where. I’d be very grateful for any help that someone can offer. Thanks!
-------error------------

**Fatal error** : Uncaught Error: Class 'Piwik\SettingsServer' not found in /home4/vparunak/public_html/cyber-chapel.org/analytics_p/core/testMinimumPhpVersion.php:87 Stack trace: #0 /home4/vparunak/public_html/cyber-chapel.org/analytics_p/core/testMinimumPhpVersion.php(176): Piwik_ShouldPrintBackTraceWithMessage() #1 /home4/vparunak/public_html/cyber-chapel.org/analytics_p/core/testMinimumPhpVersion.php(195): Piwik_GetErrorMessagePage('<p><strong>Mato...', false, '<ul>\n ...') #2 /home4/vparunak/public_html/cyber-chapel.org/analytics_p/core/bootstrap.php(30): require_once('/home4/vparunak...') #3 /home4/vparunak/public_html/cyber-chapel.org/analytics_p/index.php(21): require_once('/home4/vparunak...') #4 {main} thrown in  **/home4/vparunak/public_html/cyber-chapel.org/analytics_p/core/testMinimumPhpVersion.php**  on line  **87**

-------downloaded file------------

<?php

/**

 * Piwik - free/libre analytics platform

 *

 * @link https://matomo.org

 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later

 *

 * @package Piwik

 */

if (!defined('PIWIK_DOCUMENT_ROOT')) {

define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__));

}

if (file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) {

require_once PIWIK_DOCUMENT_ROOT . '/bootstrap.php';

}

if (!defined('PIWIK_INCLUDE_PATH')) {

define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT);

}

require_once PIWIK_INCLUDE_PATH . '/core/bootstrap.php';

if (!defined('PIWIK_PRINT_ERROR_BACKTRACE')) {

define('PIWIK_PRINT_ERROR_BACKTRACE', false);

}

require_once PIWIK_INCLUDE_PATH . '/core/dispatch.php';

2 posts - 2 participants

Read full topic

How to modify Matomo tracking code with the replaced GA onclick

$
0
0

I try to replace GTM tracking events code with the _paq.push to stay GTM tracking. So, tracking events will be kept inside Matomo due to stability but it will replace all GA due to Matomo tracking. In this way I do not need to manualy modify and use only Javascript Matomo tracking code.

onclick=“ga(‘send’, ‘event’, ‘Menu’,‘Support’, ‘Contact Us’);”

It will stay in onclick element but Matomo tracking code will translate into:

onclick="_paq.push(['trackEvent', 'Menu', 'Support', 'Contact Us']);"

1 post - 1 participant

Read full topic

Bulk requests timestamp get all same time

$
0
0

When I am using Bulk Request API, timestamp shown on Matomo console is same to all request.

Some setting on Matomo server side?

1 post - 1 participant

Read full topic

Matomo All Websites Dashboard not showing any websites

Cant create Custom Action Dimensions in Matomo 3.14.1

$
0
0

Installed Custom Dimensions and in the GUI I now have 5 Visit Dimensions and 0 Action Dimensions.

I added 5 action custom dimensions but gained 0, see code below. This is in accordens with the information found here https://matomo.org/faq/how-to/faq_21121/

[root@matomoprd1 matomo]# /bin/scl enable rh-php72 – php ./console customdimensions:add-custom-dimension --scope=action --count=5
Adding 5 Custom Dimension(s) in scope action.
This causes schema changes in the database and may take a very long time.
Are you sure you want to perform this action? (y/N)y
Starting to add Custom Dimension(s)
Your Piwik is now configured for up to 0 Custom Dimensions in scope action.

In the GUI I still have 5 visit dimensions and 0 action dimensions.

Any Idees?

1 post - 1 participant

Read full topic

Trying to Move out "LOAD DATA INFILE"

$
0
0

Hi, I’m using Matomo the wonderful one year ago, truly I don’t think I’m gonna replace it any time in the future, I’m using it for personal work in shared hosting, everything under control but the only problem that I’m trying to solve the “Database abilities” problem a long time ago with no result:
0tWpLOY5RZqIfJ5ZcKr_tg

I did search everywhere and tried every possible solution but with no results

I’m, not a developer since my only knowledge with the front end with some coding skills

2 posts - 2 participants

Read full topic


Upgrading from 3 to 4. Call to undefined method Piwik\Tracker\Request::getDaysSinceLastVisit

$
0
0

Upgraded from v3.14.1 to v4.0.5
Downloaded zip and copied all files to wwwroot (did not remove any of the old v3.14.1 files).
All upgrade steps was executed successfully with no errors.
However I’m getting a php error when requesting the tracker URL below.

Request:
https://matomo.iaf.se/matomo.php?action_name=Start&idsite=1&rec=1&r=809934&h=8&m=51&s=33&url=https%3A%2F%2Fwww.iaf.se%2F&_id=c5df27499ebbe19e&_idn=0&_refts=1608103365&_ref=https%3A%2F%2Farbetsformedlingen.se%2F&send_image=0&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1920x1080&pv_id=ppWfUC&pf_net=0&pf_srv=33&pf_tfr=92&pf_dm1=607

Fatal error : Uncaught Error: Call to undefined method Piwik\Tracker\Request::getDaysSinceLastVisit() in C:\inetpub\wwwroot\matomo\matomo\plugins\VisitorInterest\Columns\VisitsByDaysSinceLastVisit.php:38 Stack trace: #0 C:\inetpub\wwwroot\matomo\matomo\core\Tracker\Visit.php(499): Piwik\Plugins\VisitorInterest\Columns\VisitsByDaysSinceLastVisit->onNewVisit() #1 C:\inetpub\wwwroot\matomo\matomo\core\Tracker\Visit.php(302): Piwik\Tracker\Visit->triggerHookOnDimensions() #2 C:\inetpub\wwwroot\matomo\matomo\core\Tracker\Visit.php(209): Piwik\Tracker\Visit->handleNewVisit() #3 C:\inetpub\wwwroot\matomo\matomo\core\Tracker.php(160): Piwik\Tracker\Visit->handle() #4 C:\inetpub\wwwroot\matomo\matomo\core\Tracker\Handler.php(55): Piwik\Tracker->trackRequest() #5 C:\inetpub\wwwroot\matomo\matomo\core\Tracker.php(140): Piwik\Tracker\Handler->process() #6 C:\inetpub\wwwroot\matomo\matomo\core\Tracker.php(115): Piwik\Tracker->track() #7 C:\inetpub\wwwroot\matomo\matomo\piwik.php(73): Piwik\Tracker->main() #8 C:\inetpub\wwwroot\matomo\m in C:\inetpub\wwwroot\matomo\matomo\plugins\VisitorInterest\Columns\VisitsByDaysSinceLastVisit.php on line 38

3 posts - 2 participants

Read full topic

Max Packet Size warning

$
0
0

I get a Max Packet Size warning "It is recommended to configure a ‘max_allowed_packet’ size in your MySQL database of at least 64MB. Configured is currently 16MB. "

Why do you have these enormous packages, and what kind of data are you trying to store that need so much space?

2 posts - 2 participants

Read full topic

Cannot add new Domains/ Old got deleted / Cannot update

$
0
0

Hello we have multiple problems,

1-2 weeks ago we noticed that the Domains we have added a short while before, were missing and the ability to add new ones gone. We have had 4 domains added and tracked with our self-hosted Matomo installation, but now only 2 remain and we cannot add more (the button simply doesn’t exist).

We are still running v3.14.1. Trying to update, we have to “log back in due to inactivity”, despite being active. No matter what login details (with Admin/Owner accounts), the login for this action is rejected until we just login normally (which works fine).

Is this a problem of Matomo or do we have to contact our hoster?

Thanks for any answers in advance! :slight_smile:

1 post - 1 participant

Read full topic

Setting Up Cron

$
0
0

I am trying to set up cron auto-archiving and have setup the command line as follows:

/usr/local/bin/php -f /home/blssco5/public_html/piwik/console core:archive --url=https://www.blss.com/piwik/ > /home/blssco5/piwik-archive-output.log

Still using piwik as directory my web site is www.blss.com.

After doing this the report still says For optimal performance and a speedy Matomo, it is highly recommended to set up a crontab to automatically archive your reports, and to disable browser triggering in the Matomo settings. Learn more..

Also how do I eliminate this error message:
shell_exec
You need to enable this built-in function.
set_time_limit
mail
parse_ini_file
glob
gzopen
md5_file.

Thanks.

2 posts - 2 participants

Read full topic

Token Is Not Valid - Dashboard Won't Load

$
0
0

I have been using Matomo with Wordpress for nearly a year with no issues. I have the latest version of Wordpress and Matomo plugin installed.

When clicking on “reporting”, the dashboard page attempts to load. The header loads at the top of the page, followed by a red bar across the top that says “Token is not valid”. The rest of the page remains blank. All other links (tag manager, settings etc. all report the same error.

Matomo is tracking visits and the summary page works fine and shows recent data, but the reporting page will not load any data.

Here are things I have already tried:

  • Cleared browser cache. Log out/back in
  • Tried several different browsers - same results.
  • Matopmo System Report - no errors or warnings
  • Matomo Diagnostics - cleared cach, sync users, sync site, run updater

When looking at the browser console inspector I see the following errors:

Refused to execute script from ‘https://xxxx.com/’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

Possibly unhandled rejection: Token is not valid.
(anonymous) @ asset_manager_core_js.js?v=4.0.5?cb=5d790bb576dee577218a2d14bff3098d:200

Thanks in advance for any suggestions. This has been very frustrating and google searches have not yielded anything helpful.

1 post - 1 participant

Read full topic

How report from API log visit action

$
0
0

Hello,

I setup 1 custom variable on each visit page of users. I would like retrieve using API the count of visit depending the custom value that i have setup.

I don’t understand if i must use the Api Actions.get module combined with segment with a custom_var_name & custom_var_value or if i must use the VisitorSummary Api

The log_link_visit_action contains per visit my custom variable. I need count how many hits have been made using the server date as criteria and my custom_var_name= valueX or valueY

Thank a lot ! :slight_smile:

1 post - 1 participant

Read full topic

Email report edit form issues after upgrade to 4.0.5

$
0
0

In Matomo’s email reports instructions https://matomo.org/docs/email-reports/, there are radio buttons next to fields. These radio buttons are not visible in our instance after upgrading to Matomo 4.0.5. There’s an HTML read error notice that briefly appears when running a report, but it has no further detail. I tried removing the .htaccess and resetting permissions on the plugins directory, but that didn’t seem to fix that problem, so I reverted.

On the report edit page, Choosing a Report Period seems to make no difference. Under Display Options no radio buttons appear near the “Evolution graphs…” choices. Email reports only produce data for a period of day, unless Visits by Day of Week is selected below. In which case one week is produced in the data, but not more. There may be other elements broken in less obvious ways. Maybe this is causing some variables to be set incorrectly by the email report edit form, which produces incorrect date range.

Using Inspector in Firefox, I’m able to find the radio button element . It shows up as a small blank element on the page.

What could be causing this?

1 post - 1 participant

Read full topic


Trying to import local apache logs

$
0
0

When I try and run the following import I get an error and it looks like the script dumps to the console…

python /www/mstats/misc/log-analytics/import_logs.py --idsite=1 --url=http://mysite.net /var/log/mysite.net-access_log

[INFO] Error when connecting to Matomo: <urlopen error Matomo returned an invalid response: <!doctype html>

I have tried both --url=http and https and both mysite.net and www.mysite.net with the same error

apache24

page keeps refreshing with [INFO] Retrying request, attempt number 3 at bottom number incrementing

1 post - 1 participant

Read full topic

enableHeartBeatTimer The heartbeat timer Settings did not take effect

$
0
0
_paq.push(['enableHeartBeatTimer', 15]);

  _paq.push(['trackPageView']);

  (function() {

    var u="//matomotest.china.cn/matomo/matomo/";

    _paq.push(['setTrackerUrl', u+'matomo.php']);

    _paq.push(['setSiteId', '1']);

    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];

    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);

  })();

1 post - 1 participant

Read full topic

Email reports no longer sent after upgrade to 4.0.5

$
0
0

Greetings from Vienna!

I am asking this community for help with an issue after upgrading my Matomo instance from the latest 3.x version to 4.0.5. Since the upgrade, I am no longer receiving reports by email, which was working with version 3.x for more than 2 years.

In Firefox, when I click on “Send report now” I can briefly (for less than a second) see an error message in red: “Failed to load HTML file - Please check if you have an ad blocker or something similar enabled.”.

Again in Firefox, the following is shown in the console:

While I do have an ad blocker installed in Firefox, it is disabled for the Matomo instance. So I installed Chrome without any extensions. In Chrome, when I click on “Send Report now”, I can briefly see a success message, but I still don’t receive any emails.

In Chrome, I also do see any messages in the console.

This happens independent from the report format (HTML or PDF) and whether I have chosen to create graphs or not. Interestingly, when I click on “Download”, this works perfectly fine in both Firefox and Chrome. The HTML report is opened in a new window, and the PDF report is downloaded as expected. The content is always fine, and the charts are accurate.

My Matomo instance is running on Nginx, which I have configured according to the Matomo-Nginx configuration on GitHub.

What I have read and tried so far to get my email reports working again:

Let me point out again that there was no change to the configuration when Matomo was upgraded. The configuration was working fine with Matomo 3.x and I did receive weekly emails.

Any suggestions are welcome, thank you in advance for reading this.

Robert

1 post - 1 participant

Read full topic

Domain Move - New Installation White Page and Server Temporer Overloaded

$
0
0

Good day,

I would like to change the domain of my Matomo installation. For this I have copied all files as described and changed the “Trusted Domains” entry. I can also log in, the overview “All websites” also works. But I can’t see the details for any site or open the settings. When I look at the exact statistics comes" Server Temporer overloaded" Although in the original installation everything still works. On the “Settings” page it just shows a white page.

What could be the reason for this and how can I fix it?

With kind regards
Tobias Pries

1 post - 1 participant

Read full topic

How to get token_auth programmatically

$
0
0

In the past I have automated the configuration of the WP-Matomo (WP-Piwik) plugin by getting the token_auth string for the user using a MySQL query and then setting the required variables using the WordPress CLI (see the Ansible tasks here).

However with Matomo 4.x the token_auth string is encrypted in the database so this won’t work.

Last year when asked about this on GitHub:

The answer given was to use the API:

You can find more info about APIs here: https://developer.matomo.org/api-reference/reporting-api

Checkout UsersManager.getTokenAuth method to get token.

However that method is not in the list of UsersManaged methods, is there an undocumented method that can be used or is some PHP now needed to access the token_auth for a user?

2 posts - 2 participants

Read full topic

Viewing all 5832 articles
Browse latest View live