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

Handling Sessions from outside of Piwik?

$
0
0

@bufferoverflowed wrote:

I am making a plugin that needs a session variable. It is all on the same server and same domain, however I get different session variables in Piwik than I do in let's say /test.php at the root. I can get and set session variables fine in both and they stay, however they are separate, confirmed by var_dump($_SESSION).

I have ensured session ID remains the same between pages and plugins. I also tried setting the variable by posting to the plugin API feature and got that "working" however it sets the variable for the wrong session (as I should have guessed).

How can I set a session variable from /test.php and have it save in Piwik's session when I take the user back to the dashboard?

Posts: 1

Participants: 1

Read full topic


JS tracker TypeError: window.Piwik.getAsyncTrackers is not a function [RESOLVED]

$
0
0

@talisto wrote:

I'm attempting to set up a self-hosted instance of Piwik on a development server. I've installed the latest version (3.0.3), set up my site and have added the tracking code to my page. The tracking code is being loaded and the tracker JS script is being fetched, however I'm getting this error in the console (Chrome 58):

Uncaught TypeError: window.Piwik.getAsyncTrackers is not a function
    at piwik.js:73

If I investigate the window.Piwik object in the console, I can see that the object does exist, but does not have a getAsyncTrackers method. It does, however, have a getAsyncTracker method (single, not plural).

Does anyone know why I'm getting this error, or why the tracker is trying to run a function that doesn't exist in the object?

Thanks!

Posts: 2

Participants: 1

Read full topic

Install Premium features in Community version

$
0
0

@morteza wrote:

Hi
I want to buy Premium features[funnel or A/B testing] and i use Community version of Piwik 3.0
can i install and use Premium features[funnel or A/B testing] in community version ?

Posts: 2

Participants: 2

Read full topic

Piwik Table Engines (INNODB / MyISAM)

$
0
0

@futureweb wrote:

Hey there,
I just noticed that there is a mixup of INNODB & MyISAM Tables within my Plesk installation. I remember you switched Table Format quite a time ago ... did there go something wrong with an Update so that my Tables are that mixed up? Or is this intended? Any Performance / Security Problems with this? (Not that I noticed some ...)
See Screenshot ...

thx, bye from sunny Austria
Andreas

Posts: 1

Participants: 1

Read full topic

Tracking code doesn't trigger mysql query

$
0
0

@hpeyerl wrote:

Piwik was working for me but I had to move to a new VPS (digitalocean). Presently running on Ubuntu 16.04, nginx and php7.0 fpm. piwik is 3.0.3. When I moved providers, I did a mysqldump and replayed that into my new mysql instance and upgraded piwik. I believe piwik was able to do a schema update but it's been a few months and I don't remember the details.

I've confirmed the correct tracking code is in my wordpress installation. I've enabled both the js and img tracking.

In my logs, I see lots of tracking hits from the various visitors to my side. They are all getting a 200 and there are no PHP errors or Mysql errors. But I don't see any entries in piwik_log_visit after the date of my VPS move when I use this query:

select * from piwik_log_visit order by visit_last_action_time desc limit 5;

I turned on query logging in mysqld and did a manual GET of the img tracking link and piwik does not even perform a mysql query. It does perform mysql queries when I go to the piwik dashboard so I know that the mysql configuration information is correct.

So I'm at a loss for how to proceed. If the query is getting a 200 from nginx but not getting to mysql, the problem would seem to be inside of piwik somewhere.

Posts: 1

Participants: 1

Read full topic

Problem with configuration SSL & htaccess

$
0
0

@Amin wrote:

hi
I'm running litespeed and I had no problem with http protocol, until I applied https for all my magento store pages.
there is something wrong with my root .htaccess file because removing file will solve the problem.

error is: Oops… there was a problem during the request. Maybe the server had a temporary issue, or maybe you requested a report with too much data. Please try again.

but I could not find any error in error-log

also here is my htaccess code I use:

please someone help what should i do to!?

Posts: 1

Participants: 1

Read full topic

Piwik 3.0.2 issue

$
0
0

@murugha wrote:

/var/www/html/piwik/plugins/RssWidget/RssRenderer.php(47): Warning - simplexml_load_string(): s = s.replace(/</g, "<").replace(/>/g, ">"); - Piwik 3.0.2

Posts: 1

Participants: 1

Read full topic

"analytics" subfolder which does not exist

$
0
0

@CitadelOne wrote:

I decided to install Piwik manually.

  1. subdomain and mysql db was created.
  2. cd to subdomain folder and ran: wget https://builds.piwik.org/piwik.zip && unzip piwik.zip
  3. supposed to be able to access the installation URL but keep getting "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

  4. Error logs indicates:
    [Sun Apr 09 00:27:14.549203 2017] [autoindex:error] [pid 4641:tid 140376081909504] [client 52.15.200.154:43770] AH01276: Cannot serve directory /home/$username/public_html/analytics/: No matching DirectoryIndex (index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive

Tried to install using automated installation:

  1. Installed successfully:
    Piwik has been successfully installed a:

https://analytics.$website.com
Administrative URL : https://analytics.$website.com/index.php

But each of these URL triggers the same 404.

After digging around, this is what I think is happening but know that you can figure it out more easily:

Something within the scripting is redirecting the URL to https://analytics.$website.com/analytics which on the server-side would be: /home/$username/public_html/analytics/analytics

which doesn't exist.

You can see the URL redirect by using curl:

curl https://analytics.$website.com/index.php -vvv
* About to connect() to analytics.$website.com port 443 (#0)
* Trying 123.456.786.87...
* Connected to analytics.$website.com (123.456.786.87) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_************
* Server certificate:
* subject: CN=www.analytics.$website.com
* start date: Apr 07 08:33:00 2017 GMT
* expire date: Jul 06 08:33:00 2017 GMT
* common name: www.analytics.$website.com
* issuer: CN=CA Authority X3,O=CA,C=US
> GET /index.php HTTP/1.1
> User-Agent: curl/7.29.0
> Host: analytics.$website.com
> Accept: /
>
< HTTP/1.1 301 Moved Permanently <===
< Date: Sun, 09 Apr 2017 06:17:07 GMT
< Server: Apache
< Location: https://analytics.$website.com/analytics/ <===
< Content-Length: 257
< Content-Type: text/html; charset=iso-8859-1
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title> <===
</head><body>
<h1>Moved Permanently</h1> <===
<p>The document has moved <a href="https://analytics.$website.com/analytics/">here</a>.</p> <===
</body></html>
* Connection #0 to host analytics.$website.com left intact

As far I can tell, this is not Apache doing this but something within the scripting itself, perhaps a setting in the configuration that asks where the software is installed or relative paths, etc.

To prove Apache is not causing this, but only once the PHP is loaded by the index.php file, I have directly brought up one of the non-PHP files in the directory, such as the "LEGALNOTICE" file:

# ls -lsa /home/$username/public_html/analytics/LEGALNOTICE
8 -rw-r--r-- 1 $username $username 7826 Apr 4 14:11 LEGALNOTICE

https://analytics.$website.com/LEGALNOTICE

Where can I find the settings in the script that is attempting to bring up the "analytics" subfolder which does not exist?

And please can you figure out why this is happening?

Posts: 1

Participants: 1

Read full topic


SQLSTATE[HY000]: General error: 1021 Disk full (/rdsdbdata/tmp/#sql_bec_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")

$
0
0

@Ievgen_Maksymenko wrote:

Hi all.

I am getting this error:

SQLSTATE[HY000]: General error: 1021 Disk full (/rdsdbdata/tmp/#sql_bec_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")

Any suggestions please for what I need to do?

Thank you

Posts: 1

Participants: 1

Read full topic

SQLSTATE[HY000]: General error: 1021 Disk full (/rdsdbdata/tmp/#sql_bec_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")

$
0
0

@Ievgen_Maksymenko wrote:

Hi all.

I am getting this error:

SQLSTATE[HY000]: General error: 1021 Disk full (/rdsdbdata/tmp/#sql_bec_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")

Any suggestions please for what I need to do?

Thank you

Posts: 1

Participants: 1

Read full topic

Cannot allocate memory

$
0
0

@Andras wrote:

I'm new with piwik and tried to make an installation. Everything went good so far, but I receive a lot of error messages. The message I received about 10 times:
what can I do?
Thanks a lot
András


Tue May 16 15:14:43.272688 2017] [:error] [pid 726910] (12)Cannot allocate memory: [client 194.191.251.187:50757] couldn't create child process: /opt/suphp/sbin/suphp for /home/phytonch/analytics.arssacra.org/index.php, referer: http://analytics.arssacra.org/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today&activated=

Posts: 1

Participants: 1

Read full topic

Can't find help with email report bugs - anyone with experience willing to help me?

$
0
0

@x-up wrote:

I have been searching online for queries about the reports and can only find a basic how to, no troubleshooting infos. Has no-one had a problem with email reporting? I set up on 10.05 a monthly report and got yesterday the first automatic report spanning back to 2014! When I ask in the system to send me the report now, it is correct, but why did I get one with so much data and why in the middle of the month? I can't find anywhere troubleshooting with reports. Does anyone have experience and can advise please? I can't send reports to my customers when the data is not working correctly.
Thanks
Sara

Posts: 1

Participants: 1

Read full topic

/ScheduledReports.php(197): Notice - Undefined index: category - Piwik 3.0.3

$
0
0

@Klaren wrote:

As of today this notification poped up when manialy activating the email reports. Which is also a problem, I have to activate these reports every day manualy, as of 16th of december 2016.

Any suggestions

Posts: 1

Participants: 1

Read full topic

Goals don't seem to be assigning to search key words

$
0
0

@spencertarring wrote:

Hi All,

So happy I found this software, have been using GA in China, and it has been slowing down my sites. Trying this on my first site m.pyromusic.cn and I'm trying to track which key words are giving the best click throughs to a download app link on my site.

After a bit of trouble getting the goal to register (had to use both the normal java and image tracker) the goals are working. However, its showing that all the click throughs are coming from direct hits to the site, or returns, and not from any of the key words. I know this is not true as we have done multiple times on many different devices from key words, and also I can see in the live activity tracker people completing the goals after entering the site from a key word.

One point to note, pretty much 95% of users are on mobile.

Any ideas?

Posts: 3

Participants: 1

Read full topic

Problem with access to segment

$
0
0

@E111 wrote:

Hi!
I have created a segment for visitor's IP and I have granted access to it to all users: "This segment is visible for: All users".But when an unlogged user tries to use the segment it demands the user to login. Why?
Has anyone else experienced this kind of problem?
Grateful for any tips and hints!
Best regards,
E

Posts: 1

Participants: 1

Read full topic


Missing data from daily visitors overview

$
0
0

@Nadgob wrote:

Hello,

We are missing history data when accessing daily Visitors Overview from 12th April till 26th April.

We don't know exactly what went wrong, last week we did 2 different things:
- Installed a custom plugin and we ran the cron:archive shell command to pre-process the report data;
- Upgraded Piwik to 3.0.3

Only daily overview was affected, for all the other periods (week, month, year) everything shows correctly.
I've checked in the database and the daily values are still there and saved.

Is there any way to get the missing data to show in the graphs?

Here is a screenshot from DB that data exists, for example for 20th April:

Thanks,
Bogdan

Posts: 1

Participants: 1

Read full topic

After switching to https, our Piwik stops tracking

$
0
0

@amflores wrote:

Guys,

We are having an issue. We are staring to convert our customer sites to https and we noticed that piwik is no longer tracking traffic. Can any of you guys tell me why, and how we fix this?

Posts: 2

Participants: 2

Read full topic

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.piwik_log_link_visit_action' doesn't exist

$
0
0

@glatzenarsch wrote:

Hi!

After upgrading piwik from 2.17.1 to 3.0.4 i cant get to my dashboard and have error message:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.piwik_log_link_visit_action' doesn't exist

What to do? My production is not working.

can i recreate that table and how?

ty

Posts: 1

Participants: 1

Read full topic

Page Name not Defined (trackSiteSearch)

$
0
0

@JCunha wrote:

Hello there,

I'm using this script in my application:

 var _paq = _paq || [];
        _paq.push(['trackSiteSearch', '" + SearchText + "', '" + Page + "', '" + SearchResults + "']);
        _paq.push(['enableLinkTracking']);
        _paq.push(['setUserId','" + Encrypt(Session_UserId(False)) + "']);
        // accurately measure the time spent on the last pageview of a visit
        _paq.push(['enableHeartBeatTimer']);
        (function () {
            var u = '" + GetPiwikAddress() + "';
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            _paq.push(['setSiteId', " + GetPiwikSiteId() + "]);
            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 + 'piwik.js'; s.parentNode.insertBefore(g, s);
        })();

And this script is workine fine, as I can save all the keywords that are searched in my website. The question is that I get a "Page Name not Defined" in Piwik analytics (Page Titles) in several pages and I don't know why. I tried to remove the script, and the issue got solved. Anyone knows why this happens?

Thank you for your attention,

João Cunha

Posts: 1

Participants: 1

Read full topic

Segments: Piwik users

$
0
0

@JCunha wrote:

Hey,

Can you tell me if this is possible?

  • As an Admin User, I've created a Segment to filter data by location (Country = Portugal). Now I have 2 segments: All Visits and Portugal.

  • I've created a new Non-Admin User and he also has these 2 segments. Is it possible to remove the "All Visits" segment? My idea is to grant access only to "Portugal" segment data. He shouldn't be able to see "All Visits". Is it possible?

Thank you!

João Cunha

Posts: 1

Participants: 1

Read full topic

Viewing all 5827 articles
Browse latest View live