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

CSS & JS files are not loading anymore #2658

Closed
anonymous-matomo-user opened this issue Sep 12, 2011 · 12 comments
Closed

CSS & JS files are not loading anymore #2658

anonymous-matomo-user opened this issue Sep 12, 2011 · 12 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

As I logged in to my piwik administration today the paged looked completely unstyled (no css).
In the source i checked the CSS file (linked to index.php?module=Proxy&action=getCss&cb=980fde30e9ad27f5f1551da52ef7a9d0).
When calling the file directly it prints "Action index not found in the controller Piwik_Proxy_Controller.". At the JS file it is the same. So Piwik is complete useless.
I didn't changed anything at the installation, the piwik folders nor the database.
Renaming/deleting/chmodding the tmp dir was unsuccessful.
Piwik version is 1.5.1

@mattab
Copy link
Member

mattab commented Sep 12, 2011

When you check the CSS/JS you should rename & to &

so try: index.php?module=Proxy&action=getCss&cb=980fde30e9ad27f5f1551da52ef7a9d0

what is displayed?

do you have anything in your webserver error logs?

@robocoder
Copy link
Contributor

& is the html entity for &. The browser will decode it properly.

The most likely cause is that the concatenated/minified/compressed css/js could NOT be generated due file/directory permissions, insufficient memory, or max execution limit. Your web server error log should provide some info.

@mattab
Copy link
Member

mattab commented Sep 13, 2011

Replying to vipsoft:

& is the html entity for &. The browser will decode it properly.

http://demo.piwik.org/index.php?module=Proxy&action=getCss&cb=2d7aea246ef9b905111db85a11001a2c

does not work when put in the browser, that's what i meant ;)

@anonymous-matomo-user
Copy link
Author

Hi.
In Firefox it decodes the url correct and shows JS and CSS (but only in source code view) not as in chrome.
But the site looks unstyled too.

@anonymous-matomo-user
Copy link
Author

I am confused.
I sniffed the HTTP traffic while loading piwik and the result was, that the browser does not request the CSS and JS files. The Webdeveloperbar (FF AddOn) doesnt show up any loaded CSS styles too. So maybe the header is malformed. But why?
Here I copied the complete head of the page, maybe somebody detect anything:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Piwik &rsaquo; Web Analytik Berichte</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Piwik - Open Source Web Analytics" />
<meta name="description" content="Web Analytics report for 'domain.net' - Piwik" />
<link rel="shortcut icon" href="plugins/CoreHome/templates/images/favicon.ico" />
<script type="text/javascript">var translations = {"General_InvalidDateRange_js": "Ungltiger Zeitraum. Bitte versuchen Sie es erneut","General_DateRangeFrom_js": "Von","General_DateRangeTo_js": "Bis","General_Loading_js": "Laden ...","General_OpenInNewWindow_js": "In neuem Fenster ffnen","General_SaveImageOnYourComputer_js": "Um das Bild auf Ihrer Festplatte zu speichern, klicken Sie mit der rechten Maustaste auf das Bild und whlen \"Bild speichern unter...\"","General_ExportAsImage_js": "Als Bild exportieren","CoreHome_IncludeAllPopulation_js": "Gesamte Entwicklung einbeziehen","CoreHome_ExcludeLowPopulation_js": "Niedrige Entwicklung ausschlieen","CoreHome_PageOf_js": "%1$s von %2$s","CoreHome_DaySu_js": "So","CoreHome_DayMo_js": "Mo","CoreHome_DayTu_js": "Di","CoreHome_DayWe_js": "Mi","CoreHome_DayTh_js": "Do","CoreHome_DayFr_js": "Fr","CoreHome_DaySa_js": "Sa","CoreHome_ShortDay_1_js": "So","CoreHome_ShortDay_2_js": "Mo","CoreHome_ShortDay_3_js": "Di","CoreHome_ShortDay_4_js": "Mi","CoreHome_ShortDay_5_js": "Do","CoreHome_ShortDay_6_js": "Fr","CoreHome_ShortDay_7_js": "Sa","CoreHome_LongDay_1_js": "Sonntag","CoreHome_LongDay_2_js": "Montag","CoreHome_LongDay_3_js": "Dienstag","CoreHome_LongDay_4_js": "Mittwoch","CoreHome_LongDay_5_js": "Donnerstag","CoreHome_LongDay_6_js": "Freitag","CoreHome_LongDay_7_js": "Samstag","CoreHome_ShortMonth_1_js": "Jan","CoreHome_ShortMonth_2_js": "Feb","CoreHome_ShortMonth_3_js": "Mr","CoreHome_ShortMonth_4_js": "Apr","CoreHome_ShortMonth_5_js": "Mai","CoreHome_ShortMonth_6_js": "Jun","CoreHome_ShortMonth_7_js": "Jul","CoreHome_ShortMonth_8_js": "Aug","CoreHome_ShortMonth_9_js": "Sep","CoreHome_ShortMonth_10_js": "Okt","CoreHome_ShortMonth_11_js": "Nov","CoreHome_ShortMonth_12_js": "Dez","CoreHome_MonthJanuary_js": "Januar","CoreHome_MonthFebruary_js": "Februar","CoreHome_MonthMarch_js": "Mrz","CoreHome_MonthApril_js": "April","CoreHome_MonthMay_js": "Mai","CoreHome_MonthJune_js": "Juni","CoreHome_MonthJuly_js": "Juli","CoreHome_MonthAugust_js": "August","CoreHome_MonthSeptember_js": "September","CoreHome_MonthOctober_js": "Oktober","CoreHome_MonthNovember_js": "November","CoreHome_MonthDecember_js": "Dezember","General_Save_js": "Speichern","General_OrCancel_js": "oder %s abbrechen %s"};if(typeof(piwik_translations) == 'undefined') { var piwik_translations = new Object; }for(var i in translations) { piwik_translations[i] = translations[i];} function _pk_translate(translationStringId) { if( typeof(piwik_translations[translationStringId]) != 'undefined' ){  return piwik_translations[translationStringId]; }return "The string "+translationStringId+" was not loaded in javascript. Make sure it is suffixed with _js and that you called  {loadJavascriptTranslations plugins='\$YOUR_PLUGIN_NAME'} before your javascript code.";}</script>
<script type="text/javascript">
    var piwik = {};
    piwik.token_auth = "e7ce166822a5a0f0ad858eceab3df2d8";
    piwik.piwik_url = "http://domain.net/";
    piwik.userLogin = "user";   piwik.idSite = "2"; piwik.siteName = "domain.net";  piwik.siteMainUrl = "http://www.domain.net";    piwik.period = "day";       piwik.currentDateString = "2011-09-13";
    piwik.startDateString = "2011-09-13";   piwik.endDateString = "2011-09-13"; piwik.minDateYear = 2011;   piwik.minDateMonth = parseInt("02", 10);    piwik.minDateDay = parseInt("02", 10);  piwik.maxDateYear = 2011;   piwik.maxDateMonth = parseInt("09", 10);    piwik.maxDateDay = parseInt("13", 10);</script><link rel="stylesheet" type="text/css" href="index.php?module=Proxy&amp;action=getCss&amp;cb=980fde30e9ad27f5f1551da52ef7a9d0" />
<script type="text/javascript" src="index.php?module=Proxy&amp;action=getJs&amp;cb=980fde30e9ad27f5f1551da52ef7a9d0"></script>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="themes/default/ieonly.css?cb=980fde30e9ad27f5f1551da52ef7a9d0" />
<script language="javascript" type="text/javascript" src="libs/jqplot/excanvas.min.js"></script>
<![endif]-->
</head>

@mattab
Copy link
Member

mattab commented Sep 13, 2011

sec.elite, delete your browser cache or try with another browser.

Otherwise check web server error logs.

@anonymous-matomo-user
Copy link
Author

Problem is solved.
It was caused by an AdblockPlus filter update...

@robocoder
Copy link
Contributor

what adblockplus filter did that?

@anonymous-matomo-user
Copy link
Author

vipsoft, it was an unofficial filter-abo I added some time ago.
I removed it completely from my settings so I can't tell anymore. Sorry for that.

@anonymous-matomo-user
Copy link
Author

@anonymous-matomo-user
Copy link
Author

That didn't help for me. Still all css is broken up. Clearing caches in FF and Chrome did not help either. The problem persists.

thanks. Henk van Dijk

@anonymous-matomo-user anonymous-matomo-user added this to the 1.x - Piwik 1.x milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 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. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants