Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1481616

    I’m having a continual issue with my sites in Enfold not loading background images. I can go into the page, click update/save and they come back or do an Object Cache clear in my hosting, but it’s impossible for me to keep up with and know when they aren’t loading.

    I’ve contacted my hosting company – Pressable – and this is what they told me (and this is just one example, it’s happening on multiple sites):

    I inspected the page using the browser’s console and saw the following error:
    GET https://vetvoicecan.org/wp-content/uploads/dynamic_avia/avia_posts_css/post-1446.css?ver=ver-1742321465 net::ERR_ABORTED 404 (Not Found)
    It looks like the issue is that the dynamic CSS file post-1446.css is returning a 404 error, meaning the file is not being found or generated properly.

    and another:
    I checked the case and noticed that the following CSS style was missing on the page https://joiefarm.com/people/partners/retail/:
    ​https://joiefarm.com/wp-content/uploads/dynamic_avia/avia_posts_css/post-1765.css?ver=ver-1742319333 The file avia_posts_css/post-1765.css appears to be dynamically generated, which can sometimes cause problems if it’s not properly updated or cleared, leading to missing background images or styles.

    I have these settings under Performance:
    CSS File Compression and Merging – Disabled
    Javascript File Compression and Merging – Disabled
    and Delete old CSS and JS Files checked.

    How can I solve this? It’s really becoming an issue for my clients.

    #1481631

    Hey BrendaSarg,

    There’s nothing wrong with that functionality in the theme, but I’m guessing that you have active caching which is trying to serve a file which is no longer there. If you want to disable the post CSS generation, then please use this filter in functions.php:

    /**
     * Filter to skip css file generation.
     * You can add logic to skip for certain pages/posts only.
     * 
     * @since 4.8.6.1
     * @param boolean $create
     * @return boolean					true | false or anything else to skip generation of css file
     */
    function custom_avf_post_css_create_file( $create )
    {
    	return false;
    }
    
    add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );

    Best regards,
    Rikard

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