Page 1 of 1

Combined stylesheet does not work

Posted: Wed Dec 14, 2016 7:19 pm
by reinhardmohr
Hi, it would be great if somebody could help me. I ran into a problem with combined stylesheets – they do not work and the design of my site falls apart. When I add the parameter nocombine="1" to the stylesheet tag in my template everything is fine and working.
It's a bootstrap theme that I adapted for CMSms.

Here ist what I use:

Code: Select all

----------------------------------------------
Cms Version: 2.1.6
Installed Modules:
AceEditor2: 1.05
AdminSearch: 1.0.2
CMSContentManager: 1.1.4
DesignManager: 1.1.1
ExaExternalizer: 0.6
FileBackup: 0.5
FileManager: 1.5.2
MicroTiny: 2.0.3
ModuleManager: 2.0.5
Navigator: 1.0.3
News: 2.50.6
Search: 1.50.2

Config Information:
php_memory_limit:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale: de_DE.UTF-8
set_names: true
timezone: Europe/Berlin
permissive_smarty: false

Php Information:
phpversion: 5.6.27
md5_function: An (Ja)
json_function: An (Ja)
gd_version: 2
tempnam_function: An (Ja)
magic_quotes_runtime: Aus (Nein)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: Keine Beschränkung
register_globals: Aus (Nein)
output_buffering: An
disable_functions:
open_basedir:
test_remote_url: Erfolgreich abgeschlossen
file_uploads: An (Ja)
post_max_size: 48M
upload_max_filesize: 32M
session_save_path: /var/tmp (1733)
session_use_cookies: An (Ja)
xml_function: An (Ja)
xmlreader_class: An (Ja)
check_ini_set: An (Ja)
curl: An

Performance Information:
allow_browser_cache: Aus (Nein)
browser_cache_expiry: 60
php_opcache: An (Ja)
smarty_cache: Aus (Nein)
smarty_compilecheck: Aus (Nein)
smarty_cache_udt: Aus (Nein)
auto_clear_cache_age: An (Ja)
Server Information:
Server Software: Apache/2.2.31 (Unix)
Server Api: cgi-fcgi
Server Os: SunOS SunOS localhost 5.10 Generic_142901-13 i86pc An SunOS localhost 5.10 Generic_142901-13 i86pc
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.34
Server Db Grants: Es konnte keine „GRANT ALL“-Berechtigung gefunden werden. Dies kann bedeuten, dass Sie bei der Installation oder beim Entfernen von Modulen, oder sogar beim Hinzufügen und Löschen von Elementen, einschließlich Seiten, Probleme haben könnten.

Permission Information:
tmp: /mnt/web112/b0/26/57800926/htdocs/tmp (0750)
tmp_cache: /mnt/web112/b0/26/57800926/htdocs/tmp/cache (0750)
templates_c: /mnt/web112/b0/26/57800926/htdocs/tmp/templates_c (0750)
modules: /mnt/web112/b0/26/57800926/htdocs/modules (0750)
uploads: /mnt/web112/b0/26/57800926/htdocs/uploads (0750)
Maske zum Erstellen von Dateien (umask): /mnt/web112/b0/26/57800926/htdocs/tmp/cache (0750)
config_file: 0444
----------------------------------------------
I checked all of my stylesheets on errors. I rearranged the order and detached every single one. I cleared the cache. I checked the forum. But I could not find a way to solve the problem.
Could someone help me?

Thanks

Reinhard

Re: Combined stylesheet does not work

Posted: Wed Dec 14, 2016 7:44 pm
by Rolf
Just checked a new site I created with CMSMS 2.1.6 this weekend and it works for me.

You have probably a syntax, module or a template error something...

Re: Combined stylesheet does not work

Posted: Thu Dec 15, 2016 10:56 am
by reinhardmohr
Hi, Rolf,
thanks for helping. I was wondering if there could be something in the stylesheets like the double brackets [[ … ]] that could throw a smarty error?
I checked everything but I couldn't find the problem.
Could you give me some direction where to look for?

I know there have been limits for the size of stylesheets in the CMSms-1.x-series. And I know the sizes can be much bigger now – but I don't know the values. Could it be that a combined stylesheet is just to big for CMSms 2.x?

Thanks for giving me a hint and for helping!

Reinhard

Re: Combined stylesheet does not work

Posted: Thu Dec 15, 2016 11:36 am
by Rolf
You could try to unselect the stylesheets one by one from the design in the Design Manager. This way you can find out which stylesheet is the problem.

Re: Combined stylesheet does not work

Posted: Thu Dec 15, 2016 1:16 pm
by velden
It's a bootstrap theme that I adapted for CMSms.
Bootstrap stylesheet(s) usually are very large and should NOT be added in the CMSMS database.

Better upload the bootstrap .css files to the webserver and link to them from within the page template(s).

Then only add the custom css rules in a CMSMS stylesheet connected to the template. Obviously the linked .css files should appear above the {cms_stylesheet} tag.

BTW: not sure if this causes the error, but it is a best practice anyway