ForumHulp / statistics

Statistics is a phpBB 3 extension displaying everything you want to know about your visitors
GNU General Public License v2.0
5 stars 8 forks source link

Website too slow #14

Open Leinad4Mind opened 7 years ago

Leinad4Mind commented 7 years ago

With the 3.1.1 and even with the new 3.1.2 the website is too much slow to open. More then 30 seconds. If I disable the extension, all is fine.

Leinad4Mind commented 7 years ago

I've edit the line 183 to this: if ($this->user->data['session_ip'] != '127.0.0.1' && $x = @fsockopen('www.ip-api.com', 80, $errno, $errstr, 10))

and it seems to fix it.

ForumHulp commented 7 years ago

If it takes so long you have a problem with getting ip address information from ip-api.com

Greetz

http://forumhulp.com/ Webhosting, Custom MODs, Technisch beheer, MOD installaties, Webdesign en website ontwikkeling

Van: Daniel Mota [mailto:notifications@github.com] Verzonden: vrijdag 27 januari 2017 19:32 Aan: ForumHulp/statistics statistics@noreply.github.com CC: Subscribed subscribed@noreply.github.com Onderwerp: [ForumHulp/statistics] Website too slow (#14)

With the 3.1.1 and even with the new 3.1.2 the website is too much slow to open. More then 30 seconds. If I disable the extension, all is fine.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ForumHulp/statistics/issues/14 , or mute the thread https://github.com/notifications/unsubscribe-auth/AGaIJvbjwUsSALaAd7u5AqOWXVVx6K4nks5rWjg3gaJpZM4LwEjL . https://github.com/notifications/beacon/AGaIJvWfh0k2XI7peT0ukJECO6wyp9dEks5rWjg3gaJpZM4LwEjL.gif

Leinad4Mind commented 7 years ago

I can open it fine on my browser. Dunno why the server can't open it too.

ForumHulp commented 7 years ago

It’s a problem in your server, php can not access this site.

Check with var_dump(ini_get('allow_url_fopen'));

Greetz

http://forumhulp.com/ Webhosting, Custom MODs, Technisch beheer, MOD installaties, Webdesign en website ontwikkeling

Van: Daniel Mota [mailto:notifications@github.com] Verzonden: maandag 30 januari 2017 13:51 Aan: ForumHulp/statistics statistics@noreply.github.com CC: Forumhulp.com info@forumhulp.com; Comment comment@noreply.github.com Onderwerp: Re: [ForumHulp/statistics] Website too slow (#14)

I can open it fine on my browser. Dunno why the server can't open it too.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ForumHulp/statistics/issues/14#issuecomment-276054965 , or mute the thread https://github.com/notifications/unsubscribe-auth/AGaIJrDbs4p-gdHaiCMCJt_RzuS-9aX6ks5rXdyjgaJpZM4LwEjL . https://github.com/notifications/beacon/AGaIJgd_5DkaTeczzB7IYeO9lPCQL6wzks5rXdyjgaJpZM4LwEjL.gif

Leinad4Mind commented 7 years ago

I get a 1 doing _echo ini_get('allow_urlfopen') so its enabled. Even on the phpBB ACP, on phpinfo it says its enabled.

MySQL 10.0.29-MariaDB PHP 5.4.16 Linux plesk server