This topic has 16 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #154926
     the-wire
    Participant

    Dynamic.css fails to load from time to time returning 404. The site has a custom media folder but the folder is writable and the files are there. The site uses WP SuperCache but the issue is there even without caching. There were no other errors on the pages as far as I could see – I checked the Console.

    Please help!

     

    #155052
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #155088
     Radu
    Moderator

    Hi,

    Can you please provide the FTP and admin credentials to take a closer look please?

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #155090
     the-wire
    Participant
    This reply has been set as private.
    #155102
     Radu
    Moderator

    Hi

    Thank, you I’ve de-activated the wordfence and I cannot see the 404 link of that resource and the CSS it’s always loaded ( I’ve tried 15 – 20 pages refresh and access again from new windows)

    Let me know if you notice if this issue had dissapeared with wordfence plugin de-activated.

    Let me now

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #155108
     the-wire
    Participant
    This reply has been set as private.
    #155210
     Radu
    Moderator
    This reply has been set as private.
    #155212
     the-wire
    Participant

    Thanks, I made the changes and will test again. Could you please remove the screenshot though? I don’t feel comfortable with the info being public.

    Thanks!

    #155235
     Radu
    Moderator

    Sure,
    Marked as private.

    And how it works now ?

    Let me know

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #155236
     the-wire
    Participant

    Thanks. It seems ok so far but it is hard to say at the issue appeared very rarely anyway. I will re-activate Wordfence and keep an eye on it on the next few days.

    Thanks!

    #155237
     Radu
    Moderator

    Ok activate back your plugins and test the behaviour, let me know

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #155273
     the-wire
    Participant

    Sorry but I am still experiencing the issue.

    When is dynamic.css actually generated? It looks like it is periodically generated even if there are no changes/edits to the site. Just trying to understand the logic…

    Thanks,
    Gabriela

    #155330
     Radu
    Moderator

    Hi,

    The dynamic.css file it’s generated after you press save changes in theme options, as you can see the file remains physically on the server but isn’t accessible via http and if the folder isn’t writable the styles will be rendered in head instead of dynamic.css file.

    Try to add this function to child theme

    COPY CODE
    
    function handle_rendering_css() {
        add_action('wp_head', 'kleo_custom_head_css');
    }
    add_action('init', 'handle_rendering_css');
    

    The function needs to be pasted in wp-content/themes/kleo-child/functions.php

    This will render also the css to the head

    Let me know if the problem continue to happens using that snippet

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #155332
     the-wire
    Participant

    Hi Radu,

    I added the function and I will keep testing.

    If the file is generated only when changes are made to theme options then why is the file modification date always very fresh? I have another site that I know no one has touched in the last week and dynamic.css was last modified this morning.

    Sorry for so many questions. I like the theme and I would like to continue using it for other sites but I need to get to the bottom of this.

    Thanks,
    Gabriela

    #155509
     Radu
    Moderator

    The dynamic.css file it’s generated in certain cases like:

    theme activate, theme save options, customized save changes and theme update.

    It’s ok with the function provided above ?

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #155510
     the-wire
    Participant

    It seems that the function solved the issue (I hope I don’t speak too soon). I will keep a close eye on it for the next few days.

    Thanks,
    Gabriela

    #155624
     Radu
    Moderator

    Ok, using that it should be ok loading the CSS into head, it cannot causes problem, but be with eyes on that and let me know

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 17 posts - 1 through 17 (of 17 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?