Home › Forums › WoodMart support forum › Problem with login sidebar when WP Rocket page cache is activated
Problem with login sidebar when WP Rocket page cache is activated
- This topic has 23 replies, 3 voices, and was last updated 2 years, 6 months ago by
Artem Temos.
-
AuthorPosts
-
February 7, 2022 at 5:42 pm #351153
Rom2021ParticipantHello, the sidebar works in a bizarre way if wp rocket page cache is activated.
I’ve tried to contacted the wp rocket support, they say that:
“1) Regarding the login / logout links in your upper menu, are these being generated and updated using PHP? If so, then that makes them incompatible with page caching.That’s because WP Rocket converts all of the PHP and MySQL processes on a given page into static HTML output instead (as do most page caching plugins) — which means a PHP-based login / logout link on any page which has already been cached won’t be updated again until the cache is cleared.
For an explanation of how page caching works, you might find this post useful:
http://blog.wp-rocket.me/wordpress-page-caching-explained-in-plain-english/One way you could test to see if the problem is definitely related to the page caching would be to temporarily install and activate the helper plugin from this article:
Disable Page Caching
If the problem with the login resolves after that, then you’ll know these links are not compatible with page caching.
Dynamic login links must rely 100% on AJAX / JavaScript to be protected from the page caching — otherwise, they can only be updated when the cache is cleared.”
You can check the issue in the video.
This issue is reproduced in this way:
1) enter in the site.
2) close the browser.
3) reopen the browser and enter in the site.It seems that the first cached page served after reopening the browser is not friendly for login sidebar.
February 7, 2022 at 11:51 pm #351205
Elise NoromitMemberHello,
Please check this manual on how to configure WP Rocket plugin correctly: https://space.xtemos.com/wordpress-performance-optimization-the-ultimate-guide-in-2021#Step_4
If the problem persists, please let us know.
Best Regards
February 8, 2022 at 7:05 am #351254
Rom2021Participanthello, I’ve already followed this manual which is helpful, and I have excluded all necessary Js files but the problem persists. here are the credentials for backend. Please login and check.
p.s. You can create a client account for testing if you wantFebruary 9, 2022 at 7:40 am #351575
Artem TemosKeymasterHello,
We checked your video but we don’t see anything wrong there. Could you please send us step-by-step instructions about how to reproduce the problem?
Kind Regards
February 9, 2022 at 12:46 pm #351690
Rom2021ParticipantFrontend behaviour
Current situation:
1, open the site and consent the cookie.
2,click to open side bar and digit credentials
3, click “Login”
4, after that the page is reloaded click the login/registrati to reopen the sidebar.
5,insert credentials FOR ANOTHER TIME in the sidebar and click “Login”
6, user is finally logged in with success.The ideal one:
1, open the site and consent the cookie.
2,click to open side bar and digit credentials
3, click “Login”
4,user is finally logged in with success.The problem is that user cannot login with success in the first time that he enters the credentials. This issue can be reproduced if the page cache is enabled.
in fact, on the page which is not cached( for exemple wishlist), there isn’t this problem.Please check the site.
February 9, 2022 at 1:33 pm #351722
Artem TemosKeymasterPlease, send the username and password that you use for the test so we can reproduce it.
February 9, 2022 at 1:51 pm #351730
Rom2021Participanthere are the credentials
February 10, 2022 at 7:48 am #351868
Artem TemosKeymasterPlease, send us your FTP access so we can troubleshoot this problem further.
February 10, 2022 at 12:47 pm #351982
Rom2021Participanthere are the ftp credentials
February 10, 2022 at 1:52 pm #351991
Artem TemosKeymasterHello,
Try to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter( 'init', function() { if ( isset( $_REQUEST['woocommerce-login-nonce'] ) ) { $_REQUEST['woocommerce-login-nonce'] = wp_create_nonce( 'woocommerce-login' ); } } );
Regards
February 10, 2022 at 3:34 pm #352016
Rom2021ParticipantThank you for your help, this bug is solved!
Unfortunately, there is an another bug on the cart page.
For testing, you can add a the product that I show you in the private content-
This reply was modified 2 years, 7 months ago by
Rom2021.
February 10, 2022 at 3:42 pm #352026
Artem TemosKeymasterCould you please check the FTP access? We can’t connect to your server at the moment https://gyazo.com/18847f60dd3cd7d0ac2eaa4fa0d584dc
Kind Regards
February 10, 2022 at 3:46 pm #352034
Rom2021ParticipantPlease try this password with the same username and ip address
February 11, 2022 at 7:02 am #352173
Artem TemosKeymasterWe have fixed this issue on your website. Please, check how it works now.
February 11, 2022 at 2:48 pm #352341
Rom2021ParticipantHello, thank you for your work, the error is not showing any more on the site.
But I have 2 doubts:
1, Isn’t the upsell section in the cart page is a carousel? Because I’ve setted 8 upsell products for a single product, on the mobile both of them are shown with carousel, but on the desktop only the first 4 is shown and there isn’t possibility to see other 4 items.
2, What was causing the error that you’ve fixed?February 14, 2022 at 10:24 am #352770
Artem TemosKeymasterHello,
The problem is still not fixed, unfortunately. It looks like something on your website sanitize the script and remove
&&
signs. Try to temporarily disable all external plugins so we can check what is wrong there.Kind Regards
February 15, 2022 at 3:09 pm #353225
Rom2021ParticipantHello, unfortunately, we can’t disable external plugins on production site.
But I’ve created a staging site for you.
You can access it with the same credentialsFebruary 15, 2022 at 3:12 pm #353226
Artem TemosKeymasterWe can’t enter your WordPress dashboard. Please, provide us with a valid admin password.
February 15, 2022 at 3:50 pm #353232
Rom2021Participanthello, here are the credentials
February 16, 2022 at 7:33 am #353375
Artem TemosKeymasterHello,
Please, check how it works now.
Kind Regards
February 16, 2022 at 6:39 pm #353592
Rom2021Participanthello, nothing is changed.
the problem is not solvedFebruary 17, 2022 at 7:08 am #353703
Artem TemosKeymasterWe don’t see any problems with the carousel now. Here is a short video https://gyazo.com/1b0fc8c12449c95f6a91d6a3d01845bd
February 17, 2022 at 3:18 pm #353996
Rom2021Participantok, it is working. I confirm it.
I thought that you haven’t changed the production one.February 18, 2022 at 6:59 am #354117
Artem TemosKeymasterOK, great. Feel free to contact us if you have any further questions.
-
This reply was modified 2 years, 7 months ago by
-
AuthorPosts
Tagged: WP Rocket
- You must be logged in to create new topics. Login / Register