Page 1 of 1

No stylesheets matched the criteria specified

Posted: Fri Jan 25, 2019 7:22 am
by rotezecke
After update from 2.2.8 to 2.2.9 my admin log now gets overrun with these messages

item name: cms_stylesheet
action: No stylesheets matched the criteria specified

I can't see anything wrong with website - so not really a request for help, just FYI.



----------------------------------------------

Cms Version: 2.2.9

Installed Modules:

CGBlog: 1.15.8
CGExtensions: 1.61.4
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.5
CMSContentManager: 1.1.7
CMSMailer: 6.2.14
Captcha: 1.0
CmsJobManager: 0.1.3
DesignManager: 1.1.5
FileManager: 1.6.8
FormBuilder: 0.8.1.6
FrontEndUsers: 2.12.6
JQueryTools: 1.4.0.4
LISE: 1.3.1
LISEaccommodationdb: 1.3.1
LISEinstallersdb: 1.3.1
MicroTiny: 2.2.3
ModuleManager: 2.1.5
Navigator: 1.0.9
News: 2.51.4
Search: 1.51.6


Config Information:

php_memory_limit:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Brisbane
permissive_smarty: true


Php Information:

phpversion: 7.2.14
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 30711
E_STRICT: 0
E_DEPRECATED: 8192
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: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /opt/alt/php72/var/lib/php/session (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 0
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: On (True)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache
Server Api: litespeed
Server Os: Linux 2.6.32-896.16.1.lve1.4.54.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.0.37
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /home/xx/public_html/tmp (0755)
tmp_cache: /home/xx/public_html/tmp/cache (0755)
templates_c: /home/xx/public_html/tmp/templates_c (0755)
modules: /home/xx/public_html/modules (0755)
uploads: /home/xx/public_html/uploads (0755)
File Creation Mask (umask): /home/xx/public_html/tmp/cache (0755)
config_file: 0444

----------------------------------------------

Re: No stylesheets matched the criteria specified

Posted: Fri Jan 25, 2019 3:53 pm
by DIGI3
It looks like this is triggered by MicroTiny, we've been working on a related issue with custom stylesheets for the editor.

Re: No stylesheets matched the criteria specified

Posted: Mon Jan 28, 2019 5:26 pm
by tamsrud
I have the same problem after upgrading to 2.2.9
In my case, it fails when using {cms_stylesheet name='test'}

It won't load the css at all, just return a <!-- cms_stylesheet error: No stylesheets matched the criteria specified --> error instead.

Re: No stylesheets matched the criteria specified

Posted: Mon Jan 28, 2019 5:52 pm
by DIGI3
That's going to be a different issue, this is in the backend. You'll probably want to start your own thread after you've done a bit of investigation and can show how to reliably recreate the problem.

Re: No stylesheets matched the criteria specified

Posted: Mon Jan 28, 2019 11:19 pm
by rotezecke
Actually, while I was referring to admin logs, I now have checked the source, and yes indeed the same error message in source code.

Code: Select all

<!-- cms_stylesheet error: No stylesheets matched the criteria specified -->
my missing stylesheet is for old IE (8 and below) browsers, so I could not care less. but i can confirm there is an issue with

Code: Select all

{cms_stylesheet name="test"}

Re: No stylesheets matched the criteria specified

Posted: Mon Jan 28, 2019 11:42 pm
by DIGI3
This one should be fixed in svn too.

Re: No stylesheets matched the criteria specified

Posted: Fri Feb 01, 2019 9:45 am
by johnboyuk1
Just to confirm I also get this problem - admin log ends up really large.

I'm sure I've been having it since before 2.2.9 though, 2.2.8 at least. Not really a major problem once I'd spotted it as I ended up deleting the tag and the coding in normal <link> tags for the style sheet instead of storing them within CMSMS