You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beim Einsatz von Piwik auf einem IIS-Server im shared hosting wird eine fehlerhafte CSS-Datei erzeugt, die die Benutzung von Piwik nahezu unmglich macht.
Dies liegt daran, dass vom Asset-Manager die @import-Pfade nicht aufgelst werden knnen, wenn der volle Pfad angegeben ist und nicht auf alle Elemente des Pfades eine Leseberechtigung vorhanden ist. Das ist aber beim shared hosting typischerweise der Fall.
In unserem Fall sah der Pfad wie folgt aus:
":/FTP/Kundennummer/Domain/web/piwik/plugins/..."
Es fehlte also am Anfang auch noch der Laufwerksbuchstabe!
Als Workaround haben wir in der Klasse StylesheetUIAssetMerger in die Funktion getCssPathsRewrite am Schluss folgende Zeile eingefgt:
$publicPath=str_replace(':/FTP/Kundennummer/Domain/web/piwik/', '', $publicPath);
Damit funktioniert das Piwik jetzt.
Es wre schn, wenn dieser Bug im nchsten Release beseitigt sein knnte.
Vielen Dank!
The text was updated successfully, but these errors were encountered:
When using Piwik on an IIS server in a shared hosting environment, defective CSS files are created, which make the use of Piwik almost impossible.
This is because the Asset Manager cannot resolve the @import paths if piwik does not have the read right for all elements in the path. But this is typically the case in a shared hosting environment.
In our case, the path was as follows:
":/FTP/CustNo/domain/web/piwik/plugins/..."
(The drive letter is missing at the beginning)
As a workaround, we have inserted in the StylesheetUIAssetMerger class in the getCssPathsRewrite function:
$publicPath = str_replace (':/FTP/CustNo/domain/web/piwik/','', $publicPath);
It would be nice if this bug could be removed in the next release.
Thank you so much!
I'm still trying to understand this problem but I'm not really sure if I understand it. I made a change which could help but probably not. Have you replaced $public_path rather at the beginning or at the very end? I do not really understand why this variable should contain the whole path at all. Maybe someone else wants to have a look as well?
If I understand the code correct $public_path should only contain a relative path such as plugins/PluginName/images/file.gif.
Closing this issue for now. It might be fixed but I cannot tell for sure without the help of the creator of the issue. Please reopen at any time in case it is not fixed
Beim Einsatz von Piwik auf einem IIS-Server im shared hosting wird eine fehlerhafte CSS-Datei erzeugt, die die Benutzung von Piwik nahezu unmglich macht.
Dies liegt daran, dass vom Asset-Manager die @import-Pfade nicht aufgelst werden knnen, wenn der volle Pfad angegeben ist und nicht auf alle Elemente des Pfades eine Leseberechtigung vorhanden ist. Das ist aber beim shared hosting typischerweise der Fall.
In unserem Fall sah der Pfad wie folgt aus:
":/FTP/Kundennummer/Domain/web/piwik/plugins/..."
Es fehlte also am Anfang auch noch der Laufwerksbuchstabe!
Als Workaround haben wir in der Klasse StylesheetUIAssetMerger in die Funktion getCssPathsRewrite am Schluss folgende Zeile eingefgt:
$publicPath=str_replace(':/FTP/Kundennummer/Domain/web/piwik/', '', $publicPath);
Damit funktioniert das Piwik jetzt.
Es wre schn, wenn dieser Bug im nchsten Release beseitigt sein knnte.
Vielen Dank!
The text was updated successfully, but these errors were encountered: