Hello,
I am facing a blank manager/backend when I turn on Compress_js, compress_css on.
the solution is, to turn off these settings in the config file in cache.
On my local install everything works normally. So I guess my hoster is doing some strange stuff.
I found out what causes this phenomenom and wanted to ask, if someone could tell me, how I might fix that, if it's
my server config, or just a simple misconfiguration of my system_settings.
I have tested some stuff:
The problem with CSS_Compression is,
that the path of the icons inside css is set to "/myDirectoryOnServer/manager/templates/default/images/restyle/icons/context.png"
when I change it in FireBug to
"/manager/templates/default/images/restyle/icons/context.png" the image shows up correctly.
So, strangely modx puts my directory in front of the link in
http://www.mywebsite.com/manager/min/index.php?f=/manager/templates/default/css/xtheme-modx.css,/manager/templates/default/css/index.css
Why? How can I set this up correctly?
The Problem with js_compression is rather unclear.
In the HTML of the backend, there's a link to minified js:
<script type="text/javascript" src="/manager/min/index.php?f=/manager/assets/modext/core/modx.localization.js,/manager/assets/modext/util/utilities.js,/manager/assets/modext/core/modx.component.js,/manager/assets/modext/widgets/core/modx.panel.js,/manager/assets/modext/widgets/core/modx.tabs.js,/manager/assets/modext/widgets/core/modx.window.js,/manager/assets/modext/widgets/core/modx.tree.js,/manager/assets/modext/widgets/core/modx.combo.js,/manager/assets/modext/widgets/core/modx.grid.js,/manager/assets/modext/widgets/core/modx.console.js,/manager/assets/modext/widgets/core/modx.portal.js"></script><script type="text/javascript" src="/manager/min/index.php?f=/manager/assets/modext/widgets/modx.treedrop.js,/manager/assets/modext/widgets/windows.js,/manager/assets/modext/widgets/resource/modx.tree.resource.js,/manager/assets/modext/widgets/element/modx.tree.element.js,/manager/assets/modext/widgets/system/modx.tree.directory.js,/manager/assets/modext/core/modx.view.js,/manager/assets/modext/core/modx.layout.js"></script>
this is the link when followin the link:
http://www.mywebpage.com/manager/min/index.php?f=/manager/assets/modext/core/modx.localization.js,/manager/assets/modext/util/utilities.js,/manager/assets/modext/core/modx.component.js,/manager/assets/modext/widgets/core/modx.panel.js,/manager/assets/modext/widgets/core/modx.tabs.js,/manager/assets/modext/widgets/core/modx.window.js,/manager/assets/modext/widgets/core/modx.tree.js,/manager/assets/modext/widgets/core/modx.combo.js,/manager/assets/modext/widgets/core/modx.grid.js,/manager/assets/modext/widgets/core/modx.console.js,/manager/assets/modext/widgets/core/modx.portal.js
clicking on it gives me a 400 bad request:
Getting the following errors:
"NetworkError: 400 Bad Request - http://www.mywebpage.com/manager/min/index.php?f=/manager/assets/modext/core/modx.localization.js,/manager/assets/modext/util/utilities.js,/manager/assets/modext/core/modx.component.js,/manager/assets/modext/widgets/core/modx.panel.js,/manager/assets/modext/widgets/core/modx.tabs.js,/manager/assets/modext/widgets/core/modx.window.js,/manager/assets/modext/widgets/core/modx.tree.js,/manager/assets/modext/widgets/core/modx.combo.js,/manager/assets/modext/widgets/core/modx.grid.js,/manager/assets/modext/widgets/core/modx.console.js,/manager/assets/modext/widgets/core/modx.portal.js"
index....rtal.js
"NetworkError: 400 Bad Request - http://www.mywebpage.com/manager/min/index.php?f=/manager/assets/modext/widgets/modx.treedrop.js,/manager/assets/modext/widgets/windows.js,/manager/assets/modext/widgets/resource/modx.tree.resource.js,/manager/assets/modext/widgets/element/modx.tree.element.js,/manager/assets/modext/widgets/system/modx.tree.directory.js,/manager/assets/modext/core/modx.view.js,/manager/assets/modext/core/modx.layout.js"
index....yout.js
"NetworkError: 400 Bad Request - http://www.mywebpage.com/manager/min/index.php?f=/manager/assets/modext/widgets/core/modx.grid.settings.js,/manager/assets/modext/widgets/system/modx.panel.system.settings.js,/manager/assets/modext/sections/system/settings.js"
index....ings.js
"NetworkError: 400 Bad Request - http://www.mywebpage.com/manager/min/index.php?f=/manager/assets/modext/core/modx.localization.js,/manager/assets/modext/util/utilities.js,/manager/assets/modext/core/modx.component.js,/manager/assets/modext/widgets/core/modx.panel.js,/manager/assets/modext/widgets/core/modx.tabs.js,/manager/assets/modext/widgets/core/modx.window.js,/manager/assets/modext/widgets/core/modx.tree.js,/manager/assets/modext/widgets/core/modx.combo.js,/manager/assets/modext/widgets/core/modx.grid.js,/manager/assets/modext/widgets/core/modx.console.js,/manager/assets/modext/widgets/core/modx.portal.js"
index....rtal.js
"NetworkError: 400 Bad Request - http://www.mywebpage.com/manager/min/index.php?f=/manager/assets/modext/widgets/modx.treedrop.js,/manager/assets/modext/widgets/windows.js,/manager/assets/modext/widgets/resource/modx.tree.resource.js,/manager/assets/modext/widgets/element/modx.tree.element.js,/manager/assets/modext/widgets/system/modx.tree.directory.js,/manager/assets/modext/core/modx.view.js,/manager/assets/modext/core/modx.layout.js"
index....yout.js
"NetworkError: 400 Bad Request - http://www.mywebpage.com/manager/min/index.php?f=/manager/assets/modext/widgets/core/modx.grid.settings.js,/manager/assets/modext/widgets/system/modx.panel.system.settings.js,/manager/assets/modext/sections/system/settings.js"
index....ings.js
TypeError: b[e] is not a constructor
[Bei diesem Fehler anhalten]
...;if(a.getMonth()==G.getMonth()&&a.getFullYear()==G.getFullYear()){this.cells.rem...
ext-all.js (Zeile 7)
"NetworkError: 404 Not Found - http://www.mywebpage.com/myDirectory/manager/templates/default/images/restyle/contentArea_bg.png"
conten..._bg.png
"NetworkError: 404 Not Found - http://www.mywebpage.com/myDirectory/manager/templates/default/images/restyle/headers.jpg"
headers.jpg
"NetworkError: 404 Not Found - http://www.mywebpage.com/myDirectory/manager/templates/default/images/style/separator/menu_sep.png"
menu_sep.png
"NetworkError: 404 Not Found - http://www.mywebpage.com/myDirectory/manager/templates/default/images/modx-theme/qtip/tip-anchor-sprite.gif"
The linking to the files should be:
"http://www.mywebpage.com/manager/assets/modext/widgets/core/modx.grid.settings.js"
when I call the link above, the js shows up correctly....
How can I change the parameters to work properly?
thank you all.
AD
[ed. note: ad2003 last edited this post 13 years, 5 months ago.]