Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating Zen: Failed to load HTML file... #5148

Closed
hpvd opened this issue May 12, 2014 · 12 comments
Closed

Activating Zen: Failed to load HTML file... #5148

hpvd opened this issue May 12, 2014 · 12 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@hpvd
Copy link

hpvd commented May 12, 2014

Activating new Zen plugin
see #4987
I got this message:
"Failed to load HTML file: Please check your server configuration. You may want to whitelist "*.html" files from the "plugins" directory. The HTTP status code is 403"

Do one really has to change server config to make it work?

Piwik Version 2.2.3-b1

@tsteur
Copy link
Member

tsteur commented May 12, 2014

A whitelist of *.html files is needed since Piwik 2.2.0. Does the All Websites Dashboard or the website selector work for you? In case *.html files are blocked they should not work either

@mattab
Copy link
Member

mattab commented May 13, 2014

In 60f40c9: Maybe this would help, taht the htaccess files white list html files refs #5148

@hpvd
Copy link
Author

hpvd commented May 13, 2014

Does the
- All Websites Dashboard or
- the website selector
work for you?

both work fine!

@hpvd
Copy link
Author

hpvd commented May 13, 2014

message keeps the same after update to b4...

@hpvd
Copy link
Author

hpvd commented May 13, 2014

deactivate and reactivate the Zen Plugin after b4 update doesn't help....

@tsteur
Copy link
Member

tsteur commented May 14, 2014

In 7c2bab3: refs #5148 in the error notification display which url cannot be loaded

@tsteur
Copy link
Member

tsteur commented May 14, 2014

That's very weird. I just might a change to display the name of the file that cannot be loaded. Can you open this file, probably http://$yourdomain/$yourpath/plugins/ZenMode/angularjs/quick-access/quick-access.html in the browser window without any issues?

If not, the file is blocked by your server for some reason. Maybe a webserver restart fixes the issue? If the browser opens the file without any issues can you send us credentials with view permission to your Piwik installation to hello @ piwik.org? Otherwise we cannot solve this issue.

@hpvd
Copy link
Author

hpvd commented May 14, 2014

thank you for your work.

Just made some tests:

  1. installing this version:
    piwik-latest.zip 14-May-2014 08:16 9.4M
    from http://builds.piwik.org/
    => Dashboard is also gone as you has described above

  2. Installing
    the version from git hub
    https://github.com/piwik/piwik/
    available at 14.05. 20:30
    => dashboard is there (same as with b4)

BUT with all 3 tested versions the file
... /plugins/ZenMode/angularjs/quick-access/quick-access.html
could not be opened (403)

Do I have to ask the admin to make it accessible (managed server)
but why is dashboard working with some versions?
is it not possible to use this "feature" for ZEN-files too? ;-)

@mattab
Copy link
Member

mattab commented May 15, 2014

@hpvd
It may also be related to a recent bug fix I made.

Two things I can think of:

  • could you try to delete file plugins/.htaccess folder -> maybe it helps?
  • check your server error log file, maybe you will find that the HTML file could not be served and it will be an error there.

@tsteur
Copy link
Member

tsteur commented May 19, 2014

Indeed, it's very weird the dashboard html file works but the ZenMode html file not. Maybe the dashboard file was made accessible by a sys admin earlier? Did you have time to look into this meanwhile? Without having a look on the server/.htaccess files/logs I can currently not really explain this behavior :(

@hpvd
Copy link
Author

hpvd commented May 19, 2014

after some searching:
the folders within plugins/ZenMod did not have read permissions.
The files I checked before were fine.

Do not know why and how this could happen because I only installed complete Piwik updates and never worked on permissions..

=> but: know it works fine!
Many thanks for your help!

ticket solved!

@mattab
Copy link
Member

mattab commented May 30, 2014

See also #5266 Serve HTML files as text/html mime type, on Apache2 web server

@hpvd hpvd added this to the 2.3.0 - Piwik 2.3.0 milestone Jul 8, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants