Connection Error in iFrame

Hello guys!

Limited skill set here but I have spent quite some time on trying to get this one analytics extension 0.5.0 to install properly with Flarum BETA 6. It displays Piwik inside the Admin page of Flarum, which is a forum software.

Here are my steps and it failed each time (so I can reproduce):

  1. Installed Piwik 3.0.4 with a one-click Softaculous host install. Piwki URL:
  2. Used
composer require flagrow/flarum-ext-analytics
php flarum cache:clear
  1. Analytics then is visible under the Flarum Admin page and enabling it (checking the check box) opens a pop-up window but its appearance is broken. I filled it out anyway, at that point the extension does get added to the left admin pane but it can’t load the page.

See screenshots and details below.
(I have removed the extension and deleted the Piwik install after taking these screenshots).

Pointing to
Table 1
Authentication Code (copied and pasted from the Piwik admin page under API)


The browser console shows the following error:

Failed to load resource: net::ERR_CONNECTION_REFUSED

Even after adding these under [General} to the config file, it still doesn’t work:


My host uses apache servers so I couldn’t follow the instructions here:

Any other ideas I can try?
So looking forward to getting this to work!


Failed to load resource: net::ERR_CONNECTION_REFUSED seems to indicate, that your request never reaches piwik. Can you check in the network tab of your browsers developer tools why exactly the request fails and if the URL it tries to reach is really correct. (Maybe test it by directly accessing it)

Is it possible that there is some sort of firewall/anti-virus blocking the request (as an ad-blocker)?

Hi there!

Thank you very much for helping me.

I didn’t know whether it was safe to post the URL publicly? May/ should I?
Happy to post it if it is safe.

I use Opera and I do have the ad-block feature turned on. But isn’t that for incoming?


As the dashboard is only availible inside the admin interface (if I understood you correctly) the URL won’t help much.

Have you tried disabling adblock? I guess you won’t need it in your admin interface anyway.

I am not sure I get what you mean. Every HTTP request consists of an request from the browser to the server and an response from the server to the browser.

I just noticed the URL the browser is callout out to has https://https:// (so twice).

So in the Extension settings, I removed https:// and just typed the URL for my Piwik instal without it and it worked!

I feel so silly.

The name of the extension in the left pane is still messed up and Piwik is showing 0 for every metric but at least now, the iFrame content loads.