Hi,
Just installed Piwik, configured mysql etc and was about to login for the first time. However I get the following errors in the JavaScript console:
The screen is almost blank with no text boxes, making it completely unusable. I've attached an image to help you fix the bug.
Here is the offending code for the first error:
If I open a new tab and replace 10.0.2.15 with "localhost" the image does work fine.
Hidden in the HTML (notice the display:none) I found the following which potentially points to the source of the problem. I let you know if resolving this issue fixes it.
I've managed to get my colleagues quite interested in piwik, but now I look a bit stupid. It would be really amazing if you could help me to resolve this.
Thankyou
Just installed Piwik, configured mysql etc and was about to login for the first time. However I get the following errors in the JavaScript console:
Quote
Uncaught TypeError: Cannot read property 'invoke' of undefined
index.php:60 GET http://10.0.2.15/piwik/plugins/Morpheus/images/logo.svg net::ERR_CONNECTION_TIMED_OUT
The screen is almost blank with no text boxes, making it completely unusable. I've attached an image to help you fix the bug.
Here is the offending code for the first error:
Quote
return this.transparentColor;}};piwik.ColorManager=new ColorManager();}(jQuery));
If I open a new tab and replace 10.0.2.15 with "localhost" the image does work fine.
Hidden in the HTML (notice the display:none) I found the following which potentially points to the source of the problem. I let you know if resolving this issue fixes it.
Quote
<section class="loginSection">
<div style="clear:both;width:800px;">
<div style="display:none" data-role="notification" data-noclear="1" data-raw="1" data-context="warning"> <a style="float:right;" href="[piwik.org]; rel="noreferrer" target="_blank"><img src="plugins/Morpheus/images/help.png"></a>
<strong>Warning: </strong>You are now accessing Piwik from <strong>http://localhost:6969/piwik/index.php</strong>, but Piwik has been configured to run at this address: <strong>http://localhost/piwik/index.php</strong>. <br> <br><a href="http://localhost/piwik/index.php">Click here to access Piwik safely</a> and remove this warning. You may also want to contact your Piwik administrator and notify them about this issue (<span style="display:none">click here to email</span>).
<br>
<br>
<small><p><b>How do I fix this problem and how do I login again?</b><br> The Piwik Super User can manually edit the file piwik/config/config.ini.php
and add the following lines: </p><pre>[General]
trusted_hosts[] = "localhost:6969"</pre>After making the change, you will be able to login again.<p></p>
<p>You may also <i>disable this security feature (not recommended)</i>. To do so edit config/config.ini.php and add:
</p><pre>[General]
enable_trusted_host_check=0</pre>
<br><br><a style="float:right;" href="[piwik.org]; rel="noreferrer" target="_blank">Help
<img style="vertical-align: bottom;" src="plugins/Morpheus/images/help.png"></a><br>
</small>
</div>
</div>
</section>
I've managed to get my colleagues quite interested in piwik, but now I look a bit stupid. It would be really amazing if you could help me to resolve this.
Thankyou