-
AuthorPosts
-
June 25, 2022 at 11:42 pm #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!
June 26, 2022 at 12:08 pm #1356522Hey 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,
RikardJune 26, 2022 at 4:43 pm #1356535Here 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.
June 26, 2022 at 7:56 pm #1356543Hi,
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,
RikardJune 26, 2022 at 10:20 pm #1356556I’ve added the information below
June 27, 2022 at 7:37 am #1356577Hi,
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,
IsmaelJune 27, 2022 at 1:27 pm #1356599Sorry 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.
June 27, 2022 at 4:13 pm #1356611Hi,
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,
RikardJune 29, 2022 at 2:30 pm #1356859That’s weird. Trying again.
June 29, 2022 at 5:41 pm #1356895Hi,
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,
RikardJune 29, 2022 at 10:52 pm #1356905I’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.
June 30, 2022 at 9:29 am #1356914where 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.June 30, 2022 at 10:07 am #1356919Hi,
Please try to install and configure this plugin: https://envato.com/market-plugin/
Best regards,
RikardJune 30, 2022 at 12:53 pm #1356946Thanks. Can you tell me what we can hope to achieve by installing the plugin?
June 30, 2022 at 3:24 pm #1356957Hi,
You should hopefully be able to install the latest version of the theme.
Best regards,
Rikard- This reply was modified 2 years, 4 months ago by Rikard.
July 1, 2022 at 3:05 am #1356990The 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.
July 2, 2022 at 1:22 pm #1357068Hi,
The login page you linked to previously is not working anymore, please share a working login page URL with us.
Best regards,
RikardJuly 2, 2022 at 3:19 pm #1357083We 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.
July 2, 2022 at 11:44 pm #1357100Hi,
Thanks for the login, I found that you had a PHP function in your Quick CSS:
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,
MikeJuly 3, 2022 at 1:57 pm #1357128Our 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!
July 3, 2022 at 2:30 pm #1357131Hi,
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,
MikeJuly 3, 2022 at 2:54 pm #1357132Yes! 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?
July 3, 2022 at 3:38 pm #1357134Hi,
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,
MikeJuly 3, 2022 at 5:57 pm #1357141I 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.
July 3, 2022 at 6:44 pm #1357144Hi,
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,
MikeJuly 3, 2022 at 10:40 pm #1357156We’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.
July 4, 2022 at 4:43 am #1357165Hi!
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,
IsmaelJuly 7, 2022 at 1:19 pm #1357529We do have a staging version of the site. I’ll put the details for login below.
July 8, 2022 at 8:31 am #1357630Hi,
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,
IsmaelJuly 8, 2022 at 1:12 pm #1357691Good 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?
-
AuthorPosts
- The topic ‘Enfold CSS/JS merging function still not working properly’ is closed to new replies.