Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
litespeed_wiki:cache:litemage:troubleshooting:all-esi-blocks-missing [2017/05/08 18:18] Jackson Zhang created |
litespeed_wiki:cache:litemage:troubleshooting:all-esi-blocks-missing [2018/05/02 11:10] (current) Umar |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== All ESI blocks including shopping cart, my account and the whole footer missing ====== | + | ~~NOTOC~~ |
+ | ====== All ESI Blocks (Shopping Cart, My Account, Footer) Are Missing ====== | ||
- | **Problem**: When enabling LiteMage with some Magento extensions, shopping cart and my account etc in the header and my whole footer are missing. Basically, all ESI blocks missing. | + | ==== Problem ==== |
+ | When enabling LiteMage with some Magento extensions (e.g. HTML minifiers), the [[litespeed_wiki:cache:no-plugin-advanced:esi-support|ESI blocks]] are missing. ESI blocks include the shopping cart, my account in the header, and the entire footer. | ||
The correct header should look like: | The correct header should look like: | ||
{{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-header-esi-blocks-missing1-right.png?700 |}} | {{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-header-esi-blocks-missing1-right.png?700 |}} | ||
- | After: | + | But instead it looks like: |
{{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-header-esi-blocks-missing1-wrong.png?700 |}} | {{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-header-esi-blocks-missing1-wrong.png?700 |}} | ||
Line 12: | Line 14: | ||
{{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-esi-missing2-footer-right.png?700 |}} | {{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-esi-missing2-footer-right.png?700 |}} | ||
- | After: | + | But instead it looks like: |
{{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-esi-missing2-footer-wrong.png?700 |}} | {{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-esi-missing2-footer-wrong.png?700 |}} | ||
- | **Cause**: These "other" extensions (HTML minifier) attempt to parse the web page containing LiteMage's ESI tags while being unfamiliar with the ESI syntax, and so stripping them. For example, <esi:include> and <esi:inline> tags would become <include> and <inline>. This will cause the ESI content to not be parsed and processed by LiteSpeed Web Server, causing shopping cart, my account, footer and other ESI blocks are disappear. | + | ==== Cause ==== |
+ | These HTML minifying extensions attempt to parse the web page containing LiteMage's ESI tags while being unfamiliar with the ESI syntax, thereby stripping them. For example, ''<esi:include>'' and ''<esi:inline>'' tags would become ''<include>'' and ''<inline>''. These changes would cause the ESI content to not be parsed or processed by LiteSpeed Web Server, which would cause the ESI blocks to disappear. | ||
- | **Solution**: If you can locate the extension(HTML minifier) and disable it, everything should be back to normally. | + | ==== Solution ==== |
+ | If you can locate the appropriate HTML minifier extension and disable it, everything should behave normally. | ||
- | Alternatively, You can try LiteSpeed specific ESI syntax setting in LiteMage configuration within Magento Admin: Navigate to System > Configuration > LITEMAGE CACHE > LiteMage Configuration, in General, Settings, set "Use Alternative ESI Syntax" to "Yes". Enabling this setting will change the ESI Syntax used by LiteMage to something only itself and LiteSpeed Web Server are aware of. With the new syntax being used, other extensions should no longer alter LiteMage's ESI tags and your web pages should display properly. | + | Alternately, you can try the LiteSpeed-specific ESI syntax setting in LiteMage configuration. In Magento Admin navigate to **System > Configuration > LITEMAGE CACHE > LiteMage Configuration**. In **General Settings**, set **Use Alternative ESI Syntax** to ''Yes''. Enabling this setting will change the ESI Syntax used by LiteMage to something only itself and LiteSpeed Web Server are aware of. With the new syntax being used, other extensions should no longer alter LiteMage's ESI tags and your web pages should display properly. |
{{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-use-alternative-esi-syntax.png?600 |}} | {{ :litespeed_wiki:cache:litemage:troubleshooting:litemage-use-alternative-esi-syntax.png?600 |}} |