Romain / Matomo-IP-to-Company

A plugin for Matomo which gives you the name of the company that visited your website, based on its IP.
GNU General Public License v3.0
15 stars 11 forks source link

Widget takes too long to load, times out #30

Open BenFunnelFuel opened 1 year ago

BenFunnelFuel commented 1 year ago

Hello!

I've added the IPtoCompany widget to my dashboard.

If I've selected a site with a relatively small amount of visits, say under 100, it loads fine. When I select a site that has had thousands of visits, the widget tries to load for 60 seconds and then times out.

I believe that the timeout is related to a PHP setting for max_input_time which is currently set to 60 seconds in php.ini on my server. I can change this setting, but I'd rather not.

I have enabled auto-archiving for Matomo by doing the following:

nano /etc/cron.d/matomo-archive 5 * * * * www-data /usr/bin/php /var/www/html/console core:archive --url=<my website> | logger -t matomoarchive

Is there something else I'm meant to be doing in order to explicitly ensure that archiving is enabled for this plugin? Or is archiving not the issue?

Have I overlooked some critical step in using this plugin's widget?

Thank you all in advance!

Tested on Desktop

Screen Shot 2022-12-05 at 2 19 38 PM

PatrickNetzDesign commented 1 year ago

I currently have the same problem. As soon I try to open the data with the key in place, it shows me the error, if I open it without the key, it shows me the data but without any connections to the company names. Is there some way to resolve this problem?

PatrickNetzDesign commented 1 year ago

Okay, my bug was fiexed right after I tried the following PR: https://github.com/Romain/Matomo-IP-to-Company/pull/31 It was because of the PHP Version.