Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:litemage:troubleshooting:login-link-still-show-after-logged-in [2017/05/08 21:32]
Lisa Clarke
litespeed_wiki:cache:litemage:troubleshooting:login-link-still-show-after-logged-in [2018/05/02 14:40]
Umar
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-====== "​Login/​Create an Account"​ Links Appearing While Logged In ======+====== "​Login/​Create an Account"​ Links Appearing While Logged In (block hole punch required) ​======
  
 ==== Problem ==== ==== Problem ====
Line 9: Line 9:
   - Add query string ''?​LITEMAGE_DEBUG=SHOWHOLES''​ to the end of a URL on your site. You should see that only welcome is inside a punched hole, while the login links are not. If you do not use an HTML minifier, you can also see the hole punched block when inspecting the HTML source. In the source, you will see something similar to ''<​p class="​welcome-msg"><​!--Litemage esi started welcome-->​Welcome<​!--Litemage esi ended welcome-->​ </​p>''​   - Add query string ''?​LITEMAGE_DEBUG=SHOWHOLES''​ to the end of a URL on your site. You should see that only welcome is inside a punched hole, while the login links are not. If you do not use an HTML minifier, you can also see the hole punched block when inspecting the HTML source. In the source, you will see something similar to ''<​p class="​welcome-msg"><​!--Litemage esi started welcome-->​Welcome<​!--Litemage esi ended welcome-->​ </​p>''​
   - Check the logs output for LiteMage related messages with the following command, ''​tail -f var/​log/​system.log | grep LiteMage''​. You should again see that the welcome block is hole punched while the login link is not. The ESI request should be similar to ''/​litemage/​esi/​getBlock/​t/​welcome/​bi/​welcome/​h/​D/​s/​1/​dp/​sm_market/​dt/​default/''​   - Check the logs output for LiteMage related messages with the following command, ''​tail -f var/​log/​system.log | grep LiteMage''​. You should again see that the welcome block is hole punched while the login link is not. The ESI request should be similar to ''/​litemage/​esi/​getBlock/​t/​welcome/​bi/​welcome/​h/​D/​s/​1/​dp/​sm_market/​dt/​default/''​
 +
 +
 +==== Cause ====
 +Login links are not hole punched.
 +
 +
  
 ==== Solution ==== ==== Solution ====
  • Admin
  • Last modified: 2018/07/16 13:06
  • by Jackson Zhang