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

    Hello!

    KRIESI support already told that the problem is not because ENFOLD Theme, we have contacted WPML Support,
    the answer — it is not because WPML, please contact theme author… Hope to find a solution to resolve this problem.

    We use the latest WordPress, WPML, ENFOLD Theme and PHP8.
    Everything works fine till we switch on WMPL plugins.

    Then our site works extremely slow and also there is an error like:
    cURL error 28: Connection timed out after 5001 milliseconds

    URL: /wp-content/uploads/dynamic_avia/avia-merged-styles-492532152474f1e5ddf8fda33466a455—61d4233e73d3d.css

    aviaAssetManager->generate_file()
    wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:588
    aviaAssetManager->merge()
    wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:214
    aviaAssetManager->try_minifying_scripts()
    wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:101
    do_action(‘wp_enqueue_scripts’)
    wp-includes/plugin.php:470
    wp_enqueue_scripts()
    wp-includes/script-loader.php:2083
    do_action(‘wp_head’)
    wp-includes/plugin.php:470
    wp_head()
    wp-includes/general-template.php:3015
    load_template(‘wp-content/themes/enfold/header.php’)
    wp-includes/template.php:770
    locate_template()
    wp-includes/template.php:716
    get_header()
    wp-includes/general-template.php:48

    please let me know if this error is already known? I hope on your help resolving this issue!

    #1334319

    Hey iretail,

    Thank you for the inquiry.

    Looks like an issue with the file compression settings. Does it work correctly or does it go back to its previous performance when you disable the Enfold > Performance > File Compressions settings? You can also add this filter in the functions.php file to disable the post css manager, which creates an external css file for each post.

    /**
     * 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 );
    

    Please disable the file compression settings and add the filter above, then observe the site for a bit. Make sure to disable the cache plugin as well while testing.

    Best regards,
    Ismael

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