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

add readfile() as a required function during install test (CSS & JS 404 Not found) #2167

Closed
anonymous-matomo-user opened this issue Mar 9, 2011 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.
Milestone

Comments

@anonymous-matomo-user
Copy link

The stylesheet and JS for the dashboard doesn't load. However, the login page works fine.

After doing some debugging I found that the two requests to get the CSS and JS from the server returns 404 Not Found

http://my_server/index.php?module=Proxy&action=getCss&cb=<a_long_number_i_am_hiding>
http://my_server/index.php?module=Proxy&action=getJs&cb=<a_long_number_i_am_hiding>

While other requests like the CSS for the login page work:
http://my_server/plugins/Login/templates/login.css?cb=<a_long_number_i_am_hiding>
http://my_server/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today

I tried all the proposed solutions I found like deleting the files in assess folder. Also i think 1.2 solves the issue of double compression which was in 1.1.
Safe_mode is off, Browser cached is cleared, Reinstalled Piwik from scratch with a new database.
Still the same problem.

I feel it is related to php, but not sure who to solve it

I have had this problem since 1.1 (maybe even before)

  • i replaced that long number since I was not sure if it could reveal some security information.
@robocoder
Copy link
Contributor

I assume that means you had files in tmp/assets/.

If so, the most likely cause would be disabled_functions in php.ini contains "readfile".

@anonymous-matomo-user
Copy link
Author

Replying to vipsoft:

I assume that means you had files in tmp/assets/.

If so, the most likely cause would be disabled_functions in php.ini contains "readfile".

Thanks a lot, that actually was the cause of the problem.

I disabled it along with some other functions based on some security tips to lockdown php. I wish if piwik can do this check during setup time to see if it can access the needed functions. Also regarding the database user and what permission does it normally need after the DB and tables are created.

Thanks again vipsoft.
Problem solved, close this ticket please. (I can not close it right now)

@mattab
Copy link
Member

mattab commented Mar 13, 2011

I assume this is what we should do?

@robocoder
Copy link
Contributor

Fixed in #2177 by adding a compat function.

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.2.1 milestone Jul 8, 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. duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

3 participants