-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation in catalog view missing when Varnish is activated #3421
Comments
I have also experienced the same issue where the main navigation disappears when Varnish is enabled. |
Closing as duplicate |
I am facing same problem after install new Magento 2.1.1 |
I removed the TTL attribute from /vendor/magento/module-theme/view/frontend/layout/default.xml and the menu bar was there again! But can that do any harm, if I'm correct the default TTL is enheritated. Or am I wrong? |
Hi, thanks a lot for that hint. |
hey @duerstd did you fix the issue ? |
hi, |
I got the same issue and fixed it by removed TTL attribute. Thanks a lot |
Enter Code in theme default.xml
|
Beware of using |
@erikhansen If we use full page varnish cache menu disappears. If we remove ttl from vendor file is not a feasible solution. are you know how to remove TTL from block ? |
@avadh88 Check out this comment as it might be relevant. Specifically, check to see if the |
Hi Guys, Is there any other solution rather than remove the TTL attribute from the block? It looks that's not the proper solution: I'm using: Thanks |
Bruno,
I now use ultimo infortis theme and there is no problem in 2.2.3. I can really recommend that theme! It is highly adjustable and stable
Verzonden vanaf mijn Samsung Galaxy-smartphone.
…-------- Oorspronkelijk bericht --------
Van: "Bruno Binci (Serfe.com)" <notifications@github.com>
Datum: 16-04-18 21:00 (GMT+01:00)
Aan: magento/magento2 <magento2@noreply.github.com>
Cc: Jilco <jilcotigchelaar@hotmail.com>, Comment <comment@noreply.github.com>
Onderwerp: Re: [magento/magento2] Navigation in catalog view missing when Varnish is activated (#3421)
Hi Guys, Is there other any solution rather than remove the TTL attribute from the block? It looks that's not the proper solution:
I'm using:
Varnish (varnish-4.0.5 revision 07eff4c29)
Magento 2.2.3
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmagento%2Fmagento2%2Fissues%2F3421%23issuecomment-381712651&data=02%7C01%7C%7Ca93c453562d14b4a9a8408d5a3cc483e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636595020133020123&sdata=3Kf4ukf4L5JXiAVt2rWFYW755x0Vy4x%2F1vBxi06RhjE%3D&reserved=0>, or mute the thread<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAWoMGmUyjdbGYkoMPJMP56RTg0VW54Vjks5tpOo7gaJpZM4HbCQj&data=02%7C01%7C%7Ca93c453562d14b4a9a8408d5a3cc483e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636595020133020123&sdata=lRMmHfwP94e4gZLjTr4M6ZlKdqlyJyYcCGEnLNfSR9g%3D&reserved=0>.
|
Without varnish, but with nginx and redis. And its super fast with php 7.1
Verzonden vanaf mijn Samsung Galaxy-smartphone.
…-------- Oorspronkelijk bericht --------
Van: "Bruno Binci (Serfe.com)" <notifications@github.com>
Datum: 16-04-18 21:00 (GMT+01:00)
Aan: magento/magento2 <magento2@noreply.github.com>
Cc: Jilco <jilcotigchelaar@hotmail.com>, Comment <comment@noreply.github.com>
Onderwerp: Re: [magento/magento2] Navigation in catalog view missing when Varnish is activated (#3421)
Hi Guys, Is there other any solution rather than remove the TTL attribute from the block? It looks that's not the proper solution:
I'm using:
Varnish (varnish-4.0.5 revision 07eff4c29)
Magento 2.2.3
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmagento%2Fmagento2%2Fissues%2F3421%23issuecomment-381712651&data=02%7C01%7C%7Ca93c453562d14b4a9a8408d5a3cc483e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636595020133020123&sdata=3Kf4ukf4L5JXiAVt2rWFYW755x0Vy4x%2F1vBxi06RhjE%3D&reserved=0>, or mute the thread<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAWoMGmUyjdbGYkoMPJMP56RTg0VW54Vjks5tpOo7gaJpZM4HbCQj&data=02%7C01%7C%7Ca93c453562d14b4a9a8408d5a3cc483e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636595020133020123&sdata=lRMmHfwP94e4gZLjTr4M6ZlKdqlyJyYcCGEnLNfSR9g%3D&reserved=0>.
|
@Jilco is not an option disregard varnish at this point for me. thanks anyway. |
I think they should reopen this issue. I found another partial solution using varnish which is here in the power point - https://pt.slideshare.net/TonyBrown44/magento-2-and-avoiding-the-rabbit-hole |
@gcampedelli I think is the same solution proposed here in this issue: #3897 Do you have tried that? Is it working for you? Thanks |
I solved it using the solution described in Varnish but for Magento 2.2.2. I didn't remove TTL from layout. But I managed to do it in Magento 2.2.2. When I switched to Magento 2.2.3 it happened again. Menu only displays in Checkout. I will try the Magento 2.2.3 install again, but I will check if the issue is not coming from .htaccess. |
@gcampedelli yes, I'm on v2.2.3 and "-p feature=+esi_ignore_https" varnish option didn't work for me, I had to perform an override of the Topmenu block on my theme layout xml. |
Well, the solution just worked after changing some Apache 2 settings.
|
Hi @gcampedelli . Thanks for the solution! Unfortunately, my settings are much more basic than yours and I can't figure out which parts are important. I am having the same problem when connecting to only http, with SSL de-activated in the magento settings. Which were the lines that fixed it for you? Thanks. |
It is hard to help if I don't know your settings. But I had to change varnish and Apache 2 configuration as written above. Include /etc/letsencrypt/options-ssl-apache.conf And same for NGINX in other server which the configuration using varnish is like this upstream fastcgi_backend {
} server {
} |
No worries I have just noticed all sorts of problems with the varnish server configuration. Will let you know if the problem persists once I've cleaned it up. Thanks! |
For anyone coming across this issue in the future please ensure you've read Magento's support article. |
Hi there,
We currently installed and activated Varnish on our new Magento 2 solution. After the installation was successfully, we noticed that the navigation on the catalog view (just on the catalog view) is gone.
Our guess is that something in the varnish configuration file (default.vcl) which we exported from our Magento 2 shop is missing (http://devdocs.magento.com/guides/v2.0/config-guide/varnish/config-varnish-magento.html -> see step 7).
This because after the varnish installation on the server (before the activation in the Magento 2 backend) everything worked fine. Then we activated varnish in the Magento 2 backend, the hole navigation was gone. After updating the default.vcl file with the exported one from the Magento 2 backend, the navigation on the static pages came back - but not the navigation on the catalog view.
System information:
CentOS 6 and 7
Apache 2.2.15
Magento 2.0.2
Checkout the screenshots:


The text was updated successfully, but these errors were encountered: