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

The HTTP status code is 403 for URL "plugins/ZenMode/angularjs/quick-access/quick-access.html" #5210

Closed
anonymous-matomo-user opened this issue May 22, 2014 · 10 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.

Comments

@anonymous-matomo-user
Copy link

Using 2.2.3-b7 I'm getting the following upon delving into a websites stats from the All Websites Dashboard:

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 for URL "plugins/ZenMode/angularjs/quick-access/quick-access.html"

Upon looking at the errog log in cPanel is says:
May 22 11:23:32 2014 [client xx.xx.xxx.xx (13)Permission denied: /home/myfolder/public_html/piwik/plugins/ZenMode/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

Which htaccess file is this referring to so I can check settings? The one in the route of plugins has a setting of 0644 and is 896 in size.

Thanks - Richard
Keywords: ZenMode quick-access.html

@mattab
Copy link
Member

mattab commented May 24, 2014

Thanks for the report.

please do following:

@anonymous-matomo-user
Copy link
Author

I've now upgraded to RC3. There is no .htaccess file in that folder any more. Unfortunately the problem still persists - here's the cPanel error log entry:

May 26 04:39:27 2014 [client 90.0.248.87 File does not exist: /home/myfolder/public_html/en
May 26 04:39:27 2014 [client 90.0.248.87 File does not exist: /home/myfolder/public_html/piwik/misc/user/favicon.png
May 26 04:39:22 2014 [client 90.0.248.87 (13)Permission denied: /home/myfolder/public_html/piwik/plugins/ZenMode/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.mydomain.com/piwik/index.php?module=CoreHome&action=index&date=last30&period=range&idSite=8

It seems as though it's still looking for the .htaccess file?

@mattab
Copy link
Member

mattab commented May 27, 2014

please delete this file: /home/myfolder/public_html/piwik/plugins/ZenMode/.htaccess

and try again ?

@anonymous-matomo-user
Copy link
Author

As I mentioned, there is no htaccess file in that directory. There was before I upgraded to v. 2.3.0 and I don't believe I deleted it prior to upgrading, hence the upgrade must have deleted it?

@mattab
Copy link
Member

mattab commented May 30, 2014

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

@mattab
Copy link
Member

mattab commented May 30, 2014

if error in your server log is: Permission denied: /home/myfolder/public_html/piwik/plugins/ZenMode/.htaccess pcfg_openfile: unable to check htaccess file

then there should be a file at: /home/myfolder/public_html/piwik/plugins/ZenMode/.htaccess

can you please ask your webhost to make this file readable ? or maybe check with 2.4.0 as we have fixed some issue there: http://piwik.org/faq/how-to-update/faq_159/

@trec-r
Copy link

trec-r commented May 30, 2014

I am also having the same problem after upgrading to 2.3.0. There is no .htaccess file, I did try creating one with change. I would rather not upgrade to a beta version.

@mattab
Copy link
Member

mattab commented Jun 2, 2014

@trec-r

what is your error found in server error logs ?

@anonymous-matomo-user
Copy link
Author

I found the issue in my case: Directory /plugins/ZenMode/ and it's sub-directories have file mode 750 instead of 755. chmodding the directories fixed the issue for me.

@anonymous-matomo-user anonymous-matomo-user added this to the 2.5.0 - Piwik 2.5.0 milestone Jul 8, 2014
@mattab
Copy link
Member

mattab commented Dec 1, 2014

Unfortunately we don't know how to fix this issue properly. a FAQ was created at: How do I configure server to serve HTML files? which includes helpful steps to troubleshoot. Maybe as good as we can do for now.

@mattab mattab closed this as completed Dec 1, 2014
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Dec 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants