Viewing 30 posts - 1 through 30 (of 39 total)
  • Author
    Posts
  • #1356501

    We had an issue with the Enfold’s built-in JS/CSS merge/compression function and you told us that a specific 3rd party file is causing that to fail. We removed that file from the equation but it’s still not working and we are still seeing the same error message in the database as before. Can you please help us figure out which file is causing it to fail this time? Is there a way we can manually see/debug it without needing to ask you to find it since this seems to be a recurring problem for us? If that’s not possible, please send us the current file which is causing the merge/compression to fail. I really appreciate your help on this!

    #1356522

    Hey amyreiley,

    It would be great it you could link to the old topic, so that we can see the history of this problem. If you can’t do that, then please post a link to where we can see the actual problem.

    Best regards,
    Rikard

    #1356535

    Here is the original thread: https://kriesi.at/support/topic/enfold-css-js-merging-function-not-working-on-most-recent-update/#post-1354358

    I can’t show you the problem because we can’t identify the problem, which is what this thread is about. We’re just getting an error.

    #1356543

    Hi,

    Thanks for that. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1356556

    I’ve added the information below

    #1356577

    Hi,

    Thanks for the login info.

    Did you change the login URL? We cannot access the login page using the default login and admin path. Please post the custom login URL so that we can check the dashboard.

    Best regards,
    Ismael

    #1356599

    Sorry about that. Details below.

    Not sure how the gentleman who helped us before was able to identify the problem file without login credentials but he was, so I was totally unprepared for your request.

    #1356611

    Hi,

    Thanks for that. The login details you posted are not working, please check and verify.

    The error message we saw before is that there anymore, it’s a different one this time. That is why we are asking for login details, so that we can investigate further.

    Best regards,
    Rikard

    #1356859

    That’s weird. Trying again.

    #1356895

    Hi,

    Thanks for that. First off, could you try updating the theme to the latest version (5.0.1) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.

    Best regards,
    Rikard

    #1356905

    I’m sorry. When I go to your update page, this is the message I get, “No Updates available. You are running the latest version! (4.9.2.3)”. There is nothing for me to update.

    #1356914

    where does that cash.js come from?

    what is cash?
    cash is a small library (8kb) for modern browsers that provides jQuery style syntax to wrap modern Vanilla JS features.
    It allows developers to use the jQuery syntax they already know, and utilizes modern browser features to minimize the codebase.
    100% feature parity with jQuery isn’t a goal, but cash comes helpfully close, covering most day to day use cases.
    If your project is a closed environment, or you only support the latest and greatest, this could be fairly helpful.

    what do you try to intend to have a benefit from that script?
    And – if you need it – why do you load it from a different source domain ( https://sf.ezoiccdn.com/tardisrocinante ) ? 8kb is something that could be easily self-hosted.
    If you try to load it extern – you can use:
    A working link to that cash.js might be: https://cdnjs.cloudflare.com/ajax/libs/cash/8.1.1/cash.min.js or (Email address hidden if logged out) /dist/cash.min.js”>https: (Email address hidden if logged out) /dist/cash.min.js
    Try to deactivate it if it comes from a plugin – or if it is loaded in your functions.php. Just to see if the error message still exists.

    #1356919

    Hi,

    Please try to install and configure this plugin: https://envato.com/market-plugin/

    Best regards,
    Rikard

    #1356946

    Thanks. Can you tell me what we can hope to achieve by installing the plugin?

    #1356957

    Hi,

    You should hopefully be able to install the latest version of the theme.

    Best regards,
    Rikard

    • This reply was modified 2 years, 5 months ago by Rikard.
    #1356990

    The newest version showed up today and we were able to install it without adding the plugin. However, the error remains, exactly as it was before the update. Please advise.

    #1357068

    Hi,

    The login page you linked to previously is not working anymore, please share a working login page URL with us.

    Best regards,
    Rikard

    #1357083

    We have not changed the login page. If you are having trouble, perhaps try clearing your browser history and try again. Although I’m still curious why you need admin access to the site when in the previous thread, someone was able to identify the problematic file immediately without access to the site.

    #1357100

    Hi,
    Thanks for the login, I found that you had a PHP function in your Quick CSS:
    2022-07-02_017.jpg

    add_filter('avf_magazine_excerpt_length','avf_magazine_excerpt_new_lenght', 10, 1);
    function avf_magazine_excerpt_new_lenght($excerpt) {
    $excerpt = 100;
    return $excerpt;
    }

    I removed this but merging still doesn’t seem to be working, is this site using object-oriented cache such as Memcached, Redis, Varnish, Litespeed, etc. if so please clear the server level cache as the function above may still be in the object cache.

    Best regards,
    Mike

    #1357128

    Our hosting has Varnish and Ezoic, the ad network, has a JS/CSS opaimization service along with their custom page cache. All of these just got cleared.

    I’m now seeing a message on sidebar that says our Mailchimp signup was disabled in the theme settings and the signup box no longer appears/sirgnup function no longer works. So that’s a new problem!

    #1357131

    Hi,
    When I check the Mailchimp sidebar widget is showing for me with no errors, please see the screenshot in the Private Content area.

    Best regards,
    Mike

    #1357132

    Yes! We just figured out what happened right before you responded. Perhaps you did a reset on settings? The notion that allows it to show was disabled but we enabled it again moments before you looked at it.

    Thanks for the quick response.

    As for the rest, does merging appear to be working now that we cleared Varnish and Ezoic caches?

    #1357134

    Hi,
    Glad to hear that the Mailchimp sidebar widget is sorted out, but unfortunately CSS & JS merging doesn’t seem to be occurring, I’m not sure what could be causing this so I have asked the rest of the team if they have any ideas.
    In the meanwhile, I don’t see any reference to you trying to disable all of your plugins and check if that resolves, if you have not tried this yet please do so that we have ruled out this possibility.
    If this does correct the CSS & JS merging, please enable the plugins one at a time a check until the error occurs again.
    Thank you for your patience.

    Best regards,
    Mike

    #1357141

    I can;t remember whether we tried it. I’m double-checking with my team. But the issue started recently and we haven’t added any new plugins.

    #1357144

    Hi,
    Ok, but can your team try again, in the past I have seen situations where a long-standing plugin started a conflict, it’s worth a try.
    I have checked three different test environments that I have access to with the latest theme versions and the CSS & JS merging is working on them, and a handful of other sites that I have worked on this weekend with v5.0.1 and merging enabled, plus I haven’t seen any other threads about this, so it doesn’t look like a widespread error, and my guess is that it is specific to your site/server.
    But I have asked the rest of the team to also check, but since it’s Sunday afternoon I don’t expect a reply right away, we are all remote in different parts of the world.

    Best regards,
    Mike

    #1357156

    We’ll take a look. As a general rule, when a problem arises, we find that the source is Ezoic. We’ve had many issues with the ad network not playing nicely with the Enfold theme. The file that you previously found problematic was Ezoic’s.

    #1357165

    Hi!

    Thank you for your patience.

    Is there a staging or development version of the site? We would like to test the site while all plugins are disabled so that we can rule out any incompatibility issues with third party extensions. If this is not yet available, please create a clone of the site in a subdomain using the following plugin.

    // https://wordpress.org/plugins/duplicator/

    This article should also help.

    // https://www.wpbeginner.com/wp-tutorials/how-to-clone-a-wordpress-site-in-7-easy-steps/

    For the meantime, you should install a cache plugin such as WP Super Cache or W3 Total Cache which contain their own file compression options. The options are almost the same as the default file compression settings in the theme’s performance panel.

    Regards,
    Ismael

    #1357529

    We do have a staging version of the site. I’ll put the details for login below.

    #1357630

    Hi,

    Thank you for the info.

    The file compression option is working correctly in the staging site — the merged stylesheets and the footer scripts load properly. Did you disable the ad network plugin or script in the staging site, or do you notice any difference between the live and staging site?

    If the issue persists in the live site, try to install a cache or compression plugin such as W3 Total Cache or WP Super Cache, as suggested previously. We also recommend Autoptimize or BWP Minify for file compression.

    Best regards,
    Ismael

    #1357691

    Good morning,

    The difference is that we aren’t running the ad network in the staging site. We were pretty much under the assumption that the ad network is at the heart of this issue. I’ve taken this information back to my webmaster. But I have some concerns about trying your suggestions because we already have so many layers of caching that they sometimes mess each other up (Varnish plus the ad network has 2 different layers of caching.) There isn’t any way we can identify what’s creating the problem?

Viewing 30 posts - 1 through 30 (of 39 total)
  • The topic ‘Enfold CSS/JS merging function still not working properly’ is closed to new replies.