@anonymous-piwik-user opened this Issue on March 9th 2011

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 commented on March 9th 2011 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-piwik-user commented on March 10th 2011

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 commented on March 13th 2011 Member

I assume this is what we should do?

@robocoder commented on March 13th 2011 Contributor

Fixed in #2177 by adding a compat function.

This Issue was closed on March 13th 2011
Powered by GitHub Issue Mirror