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

Website dropdown no longer appears #5213

Closed
anonymous-matomo-user opened this issue May 23, 2014 · 15 comments
Closed

Website dropdown no longer appears #5213

anonymous-matomo-user opened this issue May 23, 2014 · 15 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

In 2.3-rc (as well as all betas and version 2.2.2, the website dropdown no longer appears. In addition, when clicking "all websites" a blank page appears. I see an error for siteselector. This error continues to appear through all betas. Everything was fine before the most recent stable release and subsequent betas.

Here is the httpd error log when I start Piwik

May 22 21:27:02 2014 [client 24.18.192.7 (8)Exec format error: exec of '/usr/local/www/piwik/plugins/Feedback/angularjs/ratefeature/ratefeature.html' failed, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday
May 22 21:27:02 2014 [client 24.18.192.7 Premature end of script headers: ratefeature.html, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday
May 22 21:27:02 2014 [client 24.18.192.7 (8)Exec format error: exec of '/usr/local/www/piwik/plugins/CoreHome/angularjs/siteselector/siteselector.html' failed, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday
May 22 21:27:02 2014 [client 24.18.192.7 Premature end of script headers: siteselector.html, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday
May 22 21:27:03 2014 [client 24.18.192.7 File does not exist: /usr/home/vhosts/bobwalter.net/httpsdocs/public_ssl/favicon.ico
May 22 21:27:03 2014 [client 24.18.192.7 File does not exist: /usr/home/vhosts/bobwalter.net/httpsdocs/public_ssl/favicon.ico

@hpvd
Copy link

hpvd commented May 23, 2014

maybe reading ticket #5148 and its comments may give you helpful hints..

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

@anonymous-matomo-user
Copy link
Author

I checked that bug. html is whitelisted, plus I removed .htaccess with no change. This line in the error log I think is the problem:

May 23 07:54:55 2014 [client 166.170.22.104 (8)Exec format error: exec of '/usr/local/www/piwik/plugins/CoreHome/angularjs/siteselector/siteselector.html' failed, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday

The file is loading but fails.

@hpvd
Copy link

hpvd commented May 23, 2014

what helped for me with the other problem was giving all folders! in /Plugins/ read permissions. Before only all files had but that doesn't help...

@anonymous-matomo-user
Copy link
Author

All folders must have read permission since I have been updating via the web page. All folders are 755.

@mattab
Copy link
Member

mattab commented May 24, 2014

there were a couple of bugs fixed recently in: #5034 and #4499 that may help.

In general, please

  • check your directories under plugins/* are worldwide readable (and that .html files within are served properly
  • Update to 2.3.0-rc3 which may solve the 'Exec format error' problem (it deletes htaccess files and re-creates them, they are now compatible with Apache 2.2 and apache 2.4)

You can try accessing the file http://youpiwik.com/plugins/CoreHome/angularjs/siteselector/siteselector.html -> this should return HTML file, if not,

@anonymous-matomo-user
Copy link
Author

2.3.0-rc4 Still doesn't work. The error message is a bit more revealing:

May 24 17:42:51 2014 [client 24.18.192.7 (8)Exec format error: exec of '/usr/local/www/piwik/plugins/CoreHome/angularjs/siteselector/siteselector.html' failed, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday
May 24 17:42:51 2014 [client 24.18.192.7 Premature end of script headers: siteselector.html, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday
May 24 17:42:51 2014 [client 24.18.192.7 (8)Exec format error: exec of '/usr/local/www/piwik/plugins/Feedback/angularjs/ratefeature/ratefeature.html' failed, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday
May 24 17:42:51 2014 [client 24.18.192.7 Premature end of script headers: ratefeature.html, referer: https://bobwalter.net/piwik/index.php?module=CoreHome&action=index&idSite=3&period=day&date=yesterday

@mattab
Copy link
Member

mattab commented May 25, 2014

@bobwalter please can you try to delete

  • piwik/plugins/Feedback/.htaccess
  • piwik/plugins/Feedback/angularjs/.htaccess

if they exist (which they might, due to a bug I fixed here)

and try again?

@anonymous-matomo-user
Copy link
Author

Neither directory has a .htaccess file.

@tsteur
Copy link
Member

tsteur commented May 26, 2014

Hey bob,

quickly googled for this error and found a thread about a similar issue:
https://drupal.org/node/213260
http://serverfault.com/questions/134432/running-cgi-with-perl-under-apache-permission-problem

There was for instance one users who was able to fix it by changing an APC setting. Are you using APC?

Otherwise can you send us a little bit more information about your server? Are you using Apache, Nginx, ... ? Windows, Linux, ...? Running PHP as CGI?

@anonymous-matomo-user
Copy link
Author

I am not, to my knowledge, using APC. I am using Apache on freeBSD 9.2 and run PHP as CGI. Piwik worked correctly until the 2.2.1 (I think).

It has to be a very recent change since I keep current on Piwik versions.

@tsteur
Copy link
Member

tsteur commented May 27, 2014

In b44f692: refs #5213 display a warning if server returns a HTTP 500

@tsteur
Copy link
Member

tsteur commented May 27, 2014

The solution in this case was to put "AddHandler text/html .html" in the "<directory>" section of the Apache host config.

@matt could make sense to add this to a FAQ. Maybe we can have also one FAQ entry for possible "HTML load fails" and link to this FAQ entry from the warning which is displayed in the UI in case there is a 40* or 500 HTTP error. Some reasons so far:

  • PageSpeed
  • AddHandler in case of CGI
  • Outdated nginx config / blocked HTML
  • ...

@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 Jul 3, 2014

@thomas I've created ticket to create a FAQ: #5404

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

mattab commented Aug 5, 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.
Projects
None yet
Development

No branches or pull requests

4 participants