Support » Plugin: LiteSpeed Cache » CCSS not generated

  • Resolved joy0114

    (@joy0114)


    Hi,

    I use v4.1-rc22.

    With specific page, I can’t have a ccss used by the page.
    <head> tag does not contain the ccss instructions.

    Indeed, using debug tool, I found these lines:

    06/14/21 18:31:31.616 [my-ip:59620 1 5q6] ❄️ posting to : https://node5.quic.cloud/ccss
    06/14/21 18:31:32.011 [my-ip:59620 1 5q6] [Cloud] response ok --- array (
    'ccss' => '/* Failed to generate CCSS */',
    'msg' => 'ccss generator error',
    )
    06/14/21 18:31:32.012 [my-ip:59620 1 5q6] [CSS] con: /* Failed to generate CCSS */
    06/14/21 18:31:32.012 [my-ip:59620 1 5q6] [CSS] ❌ empty ccss [content] /* Failed to generate CCSS */

    It seems a random issue: sometimes, no problem.

    Here is my report: JGLPBKSV

    Thanks a lot if you have any idea.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please trigger that error again , and then post the page URL and time ,in UTC format , so I can locate the log about this request.

    Best regards,

    Thread Starter joy0114

    (@joy0114)

    Hi Qtwrk,

    The url which present an issue is, for example (because it’s not the only):

    https://lesbijouxdelhermine.fr/categorie-produit/parures/

    Here, this is the part of debug log which seems to be related. I get this log after I force cron in order generating the ccss.

    
    06/17/21 10:00:33.325 [my-personnal-ip:56206 1 LbU] [CSS] Generating: --- array (
    'type' => 'CCSS',
    'url' => 'https://lesbijouxdelhermine.fr/categorie-produit/parures',
    'ccss_type' => ' https://lesbijouxdelhermine.fr/categorie-produit/parures',
    'user_agent' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0',
    'is_mobile' => 0,
    'is_webp' => 1,
    'html' => '<!DOCTYPE html><html lang="fr-FR"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="profile" href="https://gmpg.org/xfn/11"><title>Parures --- Les Bijoux de l'Hermine</title><link rel="alternate" href="https://lesbijouxdelhermine.fr/categorie-produit/parures/" hreflang="fr" /><link rel="alternate" href="https://lesbijouxdelhermine.fr/en/categorie-produit/jewelry-sets/" hreflang="en" /><meta name="description" content="Nos parures vous proposent des accords harmonieux basés sur nos colliers, boucles d'oreilles et bracelets. Dans ce même esprit qui évoque l'océan et la Bretagne" /><meta name="robots" content="index, follow" /><meta name="googlebot" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" /><meta name="bingbot" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" /><link rel="canonical" href="https://lesbijouxdelhermine.fr/categorie-p...',
    'css' => '/* https://lesbijouxdelhermine.fr/wp-content/ajouts/editorplus/dist/gutenberg-frontend.css */[class^=eplusicon-],[class*=" eplusicon-"]{font-family:"eplus-icon" !important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.eplusicon-asterisk:before{content:"\\f069"}.eplusicon-plus1:before{content:"\\f067"}.eplusicon-question1:before{content:"\\f128"}.eplusicon-minus1:before{content:"\\f068"}.eplusicon-glass1:before{content:"\\f000"}.eplusicon-music1:before{content:"\\f001"}.eplusicon-search1:before{content:"\\f002"}.eplusicon-envelope-o:before{content:"\\f003"}.eplusicon-heart1:before{content:"\\f004"}.eplusicon-star:before{content:"\\f005"}.eplusicon-star-o:before{content:"\\f006"}.eplusicon-user1:before{content:"\\f007"}.eplusicon-film1:before{content:"\\f008"}.eplusicon-th-large:before{content:"\\f009"}.eplusicon-th:before{content:"\\f00a"}.eplusicon-th-list:before{content:"\\f00b"...',
    )
    06/17/21 10:00:33.326 [my-personnal-ip:56206 1 LbU] ❄️ posting to : https://node5.quic.cloud/ccss
    06/17/21 10:00:33.698 [my-personnal-ip:56206 1 LbU] [Cloud] response ok --- array (
    'ccss' => '/* Failed to generate CCSS */',
    'msg' => 'ccss generator error',
    )
    06/17/21 10:00:33.698 [my-personnal-ip:56206 1 LbU] [CSS] con: /* Failed to generate CCSS */
    06/17/21 10:00:33.698 [my-personnal-ip:56206 1 LbU] [CSS] ❌ empty ccss [content] /* Failed to generate CCSS */
    06/17/21 10:00:33.698 [my-personnal-ip:56206 1 LbU] [Ctrl] 301 from https://lesbijouxdelhermine.fr/wp-admin/admin.php
    06/17/21 10:00:33.698 [my-personnal-ip:56206 1 LbU] [Ctrl] 301 to https://lesbijouxdelhermine.fr/wp-admin/admin.php?page=litespeed
    06/17/21 10:00:33.698 [my-personnal-ip:56206 1 LbU] [Ctrl] X Cache_control -> no Cache ( 301 to same url ) => LiteSpeed\Control::set_nocache(( 301 to same url ))@362 => LiteSpeed\Control->check_redirect(https://lesbijouxdelhermine.fr/wp-admin/admin.php?page=litespeed,302)@518 => WP_Hook->apply_filters(https://lesbijouxdelhermine.fr/wp-admin/admin.php?page=litespeed,ARRAY)@292
    06/17/21 10:00:33.698 [my-personnal-ip:56206 1 LbU] 💰 [Tag] Add --- HTTP.302
    06/17/21 10:00:33.699 [my-personnal-ip:56206 1 LbU] [Core] CHK html bypass: miss footer const
    06/17/21 10:00:33.699 [my-personnal-ip:56206 1 LbU] [Ctrl] not cacheable before ctrl finalize
    06/17/21 10:00:33.699 [my-personnal-ip:56206 1 LbU] [Router] get_role: administrator
    06/17/21 10:00:33.699 [my-personnal-ip5:56206 1 LbU] [Vary] role in vary_group [group] 99
    06/17/21 10:00:33.699 [my-personnal-ip:56206 1 LbU] [Vary] show_admin_bar_front: true
    06/17/21 10:00:33.699 [my-personnal-ip:56206 1 LbU] [Vary] admin bar : true
    06/17/21 10:00:33.699 [my-personnal-ip5:56206 1 LbU] [Vary] no custimzed vary
    06/17/21 10:00:33.699 [my-personnal-ip:56206 1 LbU] 💰 X-LiteSpeed-Cache-Control: no-cache
    06/17/21 10:00:33.699 [my-personnal-ip:56206 1 LbU] [Core] CHK html bypass: miss footer const
    06/17/21 10:00:33.699 [my-personnal-ip:56206 1 LbU] End response
    --------------------------------------------------------------------------------

    `

    UTC Time is 06/17/21 08:00:33

    I created a new report, few minutes later: FUIQJWTH

    Do you need some other informations to understand this issue ?

    Another notice:
    I ask for specific ccss for uri like /categorie-produit/xxxxxxxxx/

    Generating CCSS does not work for /categorie-produit/parures/ or /categorie-produit/boucles-doreilles/, but works for:

    /categorie-produit/colliers
    /categorie-produit/bracelets
    /categorie-produit/marque-pages
    /categorie-produit/sacs-besaces
    /categorie-produit/sacs-fourre-tout

    Another notice, but perhaps I have to open a new topic… page with redirection has no ccss. For example, https://lesbijouxdelhermine.fr/nos-creations/ is redirected towards https://lesbijouxdelhermine.fr/toutes-nos-creations/

    For this last url: impossible to get a ccss.

    Thanks a lot if you can see where is the problem….

    Best regards.

    • This reply was modified 5 months, 2 weeks ago by joy0114.
    Thread Starter joy0114

    (@joy0114)

    Hi,

    I definitely not understand why specific pages do not have ccss …

    I tried to remove my items from “separate URL for CCSS” (in tuning tab) and “CCSS Per URL” is enabled.

    I was expecting that a ccss was include in html file of each URL.
    No…

    Some pages yes, some pages definitely no. For example, always:
    https://lesbijouxdelhermine.fr/categorie-produit/parures/

    which is showing:

    <head><meta charset="UTF-8"><link data-optimized="2" rel="stylesheet" href="https://lesbijouxdelhermine.fr/wp-content/litespeed/css/aab07ace8f7b1cf413393764cbd5d8c1.css?ver=35c99" />...............

    And no evidence of:
    <head><meta charset="UTF-8"><style id="litespeed-optm-css-rules">a,body,div,h2,html,li,p,span,strong,ul{border:0;font-size:100%;.........

    Always same error message in debug log.

    ❄️ posting to : https://node5.quic.cloud/ccss
    [Cloud] response ok — array (
    ‘ccss’ => ‘/* Failed to generate CCSS */’,
    ‘msg’ => ‘ccss generator error’,
    )
    [CSS] con: /* Failed to generate CCSS */
    [CSS] ❌ empty ccss [content] /* Failed to generate CCSS */`

    What could I do to understand how to solve this ?

    Thanks a lot because, after reading with great attention docs.litespeedtech.com/lscache/lscwp, I don’t know what to try in addition of this.

    Best regards

    Thread Starter joy0114

    (@joy0114)

    Hi,

    To be more precise, I can add these informations:

    When I inspect database table “my-website_litespeed_url_file”, there is no entry for a file of “type 3” (ccss) with a url_id matching with https://lesbijouxdelhermine.fr/categorie-produit/parures/ (when I search in table litespeed_url).

    But when a robot like google inspect this url, in the frontend I see the request for optimizing this url (in “page optimization”).

    Could it be related with group and vary functionality ?

    In table litespeed_url_file, I can see these item for field “vary”:

    guest_mode:1
    2fca374e61e4d524e104d6dd133ba2cc
    and third possibility : an empty field for “vary”

    I’m going to make new investigations, if some ideas come to me ….

    Plugin Support usabe

    (@usabe)

    Hello @joy0114

    Sorry for the late response due to some miscommunication in the past weeks. I just checked server node for your case and found the URLs you mentioned in the posts which could not be generated have been blocked by our server since the beginning of June. Usually this is due to some past failures. I just cleared the URLs from the blocking list for you so you can try again.

    From the past logs the more direct error message for your case is typically like this:

    
    [2021-06-04T22:59:34.087Z] [vdn] --- [URL] https://lesbijouxdelhermine.fr/toutes-nos-creations
    [2021-06-04T22:59:34.087Z] [vdn] ❌ [ERR] UnCSS: no stylesheets found
    [2021-06-04T22:59:34.087Z] --------------------------------
    [2021-06-04T22:59:34.087Z] [vdn] Response CSS: /* null */
    

    Looks like our UCSS engine did not find stylesheets for those URLs so it put them into the blocking list to avoid wasting resources on failed ones. If it happens to these URLs again then we need to dig it out further.

    Best regards,
    Abe

    Thread Starter joy0114

    (@joy0114)

    WAHHHOOOOO !!!

    Thanks ever so much !!!
    You solved the issue for these pages which “did not want to be optimized”.

    I do not use UCSS no more, but CCSS are important for me.
    All ccss are well generated now.

    Thanks you very very very much.

    Best regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.