No stylesheets matched the criteria specified

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

No stylesheets matched the criteria specified

Post 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

----------------------------------------------
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: No stylesheets matched the criteria specified

Post by DIGI3 »

It looks like this is triggered by MicroTiny, we've been working on a related issue with custom stylesheets for the editor.
Not getting the answer you need? CMSMS support options
tamsrud
Forum Members
Forum Members
Posts: 37
Joined: Mon Jun 06, 2011 6:25 am

Re: No stylesheets matched the criteria specified

Post 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.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: No stylesheets matched the criteria specified

Post 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.
Not getting the answer you need? CMSMS support options
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: No stylesheets matched the criteria specified

Post 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"}
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: No stylesheets matched the criteria specified

Post by DIGI3 »

This one should be fixed in svn too.
Not getting the answer you need? CMSMS support options
johnboyuk1
Forum Members
Forum Members
Posts: 192
Joined: Mon Nov 26, 2018 3:09 pm

Re: No stylesheets matched the criteria specified

Post 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
Post Reply

Return to “CMSMS Core”