• Resolved thyran

    (@thyran)


    All my Divi sites dont display the admin bar on the front end since the most recent LS Cache update

    6.4 – Aug 13 2024

    Which may have inadvertedly created the problem with the Divi themes.

    I have the majority of my clients using Divi theme and We used Lite Speed servers with the LSCache plugin

    It has become quite time consuming to isolate all the caching conflicts and exclusions to make the LS Cache plugin work with Divi but have managed for the most part getting LS Cache and Divi to work together nicely and export my settings / import them to all my Divi sites.

    I tried disabling minify in LS Cache for HTML, JS and CSS one by one purging cache after each and CTRL + F5 on the front end but admin bar still does not appear

    We dont have instand click turned on in LSCache > Cache > Advanced > Instant Click configured in our LS Cache settings

    If I disable caching of logged in users and purge cache admin bar still does not appear.

    LS Cache in LSCache > Toolbox > Debug Settings > Disable All Feautres the admin bar appears on front end

    Or if it is enabled and I append LSCWP_CTRL=NOCACHE to the end of my URL the admin bar displays

    I have reached out to Elegant Themes and they confirm the issue is not with their theme but the LS Cache plugin after conducting these tests.

    Looking for a speedy resolution / update to the plugin that doesnt require me to make further exclusions for the Divi theme on every site that I have Divi installed on.

    • This topic was modified 3 months, 2 weeks ago by thyran.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 31 total)
  • Thread Starter thyran

    (@thyran)

    Found the problem

    LSCache > ESI > Enable ESI > Turn off

    Purge All

    • This reply was modified 3 months, 2 weeks ago by thyran.
    Thread Starter thyran

    (@thyran)

    Discovered we enabled ESI advised by plugin support due to another issue with the Divi contact forms module showing error on submitting form “Please refresh the page and try again”

    See thread https://www.ads-software.com/support/topic/divi-contact-form-issue-with-litespeed-plugin/#new-topic-0

    I am now worried by disabling ESI we will be creating another problem.

    So wandering if we should not look into what is causing the problem with the Admin bar missing on the front end of WordPress websites using the Divi theme and the LS Cache plugin and ESI enabled.

    • This reply was modified 3 months, 2 weeks ago by thyran.
    Plugin Support qtwrk

    (@qtwrk)

    did a quick test, seems working fine on me

    I got a feeling might 3rd party plugin involves , could you please try copy a stage site , disable all plugins but only keep Divi and LSCWP?

    Thread Starter thyran

    (@thyran)

    Hi @qtwrk

    Thank you for your reply

    What version of WordPress, PHP, Divi and LS Cache are you using?

    I disabled ESI on 18 sites yesterday due to the admin bar missing on the front end. Testing some of the sites where I can now see the admin bar but as mentioned we have now re-introduced the issue with the divi contact forms not submitting showing error when submitting the form “Please refresh the page and try again”

    As per thread?https://www.ads-software.com/support/topic/divi-contact-form-issue-with-litespeed-plugin/#new-topic-0

    I am busy setting up a sandboxing account for testing.

    Is there a way you can send me your LS Cache settings config file so I can compare settings you are using against my own.

    Let me know

    Thank you

    Thread Starter thyran

    (@thyran)

    Hi @qtwrk

    I have done some further testing and I am now at a loss for words.

    I checked three sites where the issue still exists.

    I disabled one plugin at a time and for each plugin that I deactivated the admin bar appeared on the front end. Re-Activating the plugins caused the issue to return. So its impossible to tell which if any plugin could be causing a conflict.

    I created a test site and installed the same LS Cache settings and the same plugins where the issue exists and the issue is not present! Unless the ESI issue requires time to develop the problem.

    However for any of my existing sites that have the issue deactivating any individual plugin resovled the admin bar on visibilty on the front end. And when re-activating I only have to refresh the page once or twice for the admin bar to dissapear again.

    So it seems either the issue takes time to develop and when it is present you can deactivate any plugin to resolve the issue.

    I have this list of plugins installed on approx 60 sites with the Divi theme and LS Cache plugin

    https://www.ads-software.com/plugins/aryo-activity-log/

    https://www.ads-software.com/plugins/google-site-kit/

    https://www.ads-software.com/plugins/wp-smushit/

    https://www.ads-software.com/plugins/wordfence/

    https://www.ads-software.com/plugins/duplicate-post/

    https://www.ads-software.com/plugins/wordpress-seo/

    If I use LS Cache toolbox Debug Helpers View Site Before Optimization or View Site Before Cache to view the sites front end on the sites that currently have the issue I can see the admin bar on the front end with both /?LSCWP_CTRL=before_optm or /?LSCWP_CTRL=NOCACHE appended to the URL

    So I am now thinking it is not an incompatbility issue with another plugin but a bug with LS Cache plugin

    I will leave my sandbox site active for a few days to see if the issue needs time to develop.

    But it would be most helpful to resolve this issue with the LS Cache plugin as we have been using it on approx 60 sites with the above plugins and themes for approx 4 years with no issues until the most recent update of the LS Cache plugin.

    Your assistance is greatly appreciated.

    For now I guess I will have to disable all feautres of the LS Cache plugin accross my 60 sites with the Divi theme until we can identify the cause.

    Any luck with this @thyran ?

    Having the same issue here. Presented itself on a relatively small divi website so it was easy enough to simply turn off the plugin however as per what you’ve said, if ESI is turned off the issue with contact forms comes back (as the nonce isn’t cached correctly) which is HIGHLY undesirable.

    I’ve just setup litespeed on a very large client website with significant benefits however within a week after doing so am having this issue which looks very unprofessional.

    @qtwrk how do we get this logged as a bug? Changes get made all the time for elementor bugs, but don’t see much for Divi???

    In the meantime is there a repo where I can get the previous version (latest working version of 6.3.X as it works AOK and I’ll need to rollback a number of websites similar to @thyran

    • This reply was modified 3 months, 1 week ago by Tim Sutherland. Reason: fixed some grammatical errors
    Thread Starter thyran

    (@thyran)

    Hi @681admin

    I have found that trying to use LS Cache for page optimisation of the JS, CSS and HTML files and managing the exclusions for each plugin when issues present themselves has been absorbing far too much of my time over the past few years.

    I am now turning off LS Cache page optimisations using the LiteSpeed Cache > Presets > Essentials Presets

    I am now able to re-enable all my Divi theme peformance optimisations Divi > Theme Options > General > Performance and Builder > Advanced > Static CSS File Generation

    Sites are now working much faster and smoother and dont have to deal with ongoing conflicts with plugins and the theme due to LS Cache page optimisations.

    Even getting better Google Lighthouse reports now.

    So guess the answer is to not use LS Cache for page optimisations to save you endless hours of trying to resolve conflicts.

    Thanks for that @thyran, I will give it a go. Ultimate goal is one config file to rule them all and perhaps starting with this on a small site and rolling it out over time I’ll get to that point.

    I’m having the same issue on a bunch of Divi sites after updating to this latest version of LiteSpeed Cache. If ESI is turned on, the admin bar disappears on the frontend. It can re-appear intermittently but then disappears again. I’ve tried disabling all plugins and it appears to not be plugin related. It’s just an issue with Divi + ESI + the latest version of LiteSpeed Cache causes issues with the frontend admin bar.

    Plugin Support qtwrk

    (@qtwrk)

    if you can reproduce it on vanilla wordpress , please create a ticket by mail to support at litespeedtech.com , we will investigate further.

    I am seeing the same problem on one of my Divi sites (three other sites are OK). If ESI is turned on the admin bar is not visible. Note that if you deactivate any plugin, caches are cleared and the next time you visit a front end page it is built from scratch and the admin bar is visible. Subsequent visits appear to be looking for the cached admin bar which is missing, so nothing is returned, leaving a blank space at the top of the page (due to CSS).

    For now I have had to roll back to 6.3 to get things to work correctly.

    Plugin Support litetim

    (@litetim)

    @stefanr and @thyran
    I work as a developer and I created a stage site with Divi, LSC, all to latest versions. No child theme and no other codes added.
    I enabled ESI
    Created a test user(editor access)
    Logged in as test user in a incognito browser
    Cleared cache and refreshed the page a few times
    It works for me

    There were changes for admin bar in 6.4 but does not affect DIVI.
    Please see custom code for action wp_body_open

    If further help is needed follow @qtwrk instructions: create a ticket by mail to support at litespeedtech.com

    • This reply was modified 3 months ago by litetim.
    robertstaddon

    (@robertstaddon)

    I’ve repeated these same steps with a brand new dev site with Divi and LiteSpeed with ESI enabled and I am also unable to replicate the issue of the admin bar disappearing on the frontend.

    However, I have over a dozen live sites where this issue is very much a problem and oddly enough disabling all other plugins does not seem to resolve it. There must be a special LiteSpeed or Divi setting somewhere that’s causing the problem but so far I have not been able to pinpoint it. In fact, the only solution that I’ve found so far for all of these live sites has been to roll back to LiteSpeed 6.3.0.1.

    At the moment I’m working through the LiteSpeed 6.4 update code line by line to find out which one is triggering the problem. I’ll let you know what I find…

    robertstaddon

    (@robertstaddon)

    I have confirmed that it is the following two lines of code added in LiteSpeed Cache 6.4 on lines 369 and 370 of src/esi.cls.php (to fix the Elementor button on the admin bar) that is causing the top admin bar to disappear on the frontend of all these Divi installs.

    remove_action('wp_body_open', 'wp_admin_bar_render', 0);
    add_action('wp_body_open', array($this, 'sub_admin_bar_block'), 0);

    I haven’t figured out exactly why quite yet and how to duplicate this on a clean new staging install…

    Plugin Support litetim

    (@litetim)

    You can check what plugins are added, if there are some functions that change admin bar( like wp_admin_bar_render).
    First that comes to mind are some custom plugins/functions added.

Viewing 15 replies - 1 through 15 (of 31 total)
  • You must be logged in to reply to this topic.