SQLSTATE[HY000] [2002] No such file or directory (Frontend)

Posted on Leave a commentPosted in Magento 2

Just fixed this issue that i was approached for. This relates to all magento 2 version below 2.4.0. Everything is working in cli. upgrade, compile and deployment codes are working. Only the frontend is showing Exception #0 (Zend_Db_Adapter_Exception): SQLSTATE[HY000] [2002] No such file or directory Exception #1 (PDOException): SQLSTATE[HY000] [2002] No such file or directory. Mysqld […]

connect() to unix:/run/php/php7.4-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream

Posted on Leave a commentPosted in Uncategorized

You have magento >=2.3.5 running in nginx server and your customer might face 502 error from time to time. Not always but from time to time. You check your error log for nginx and find this “4746#4746: *1502011 connect() to unix:/run/php/php7.4-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream” . So what you do […]

upstream sent too big header while reading response header from upstream nginx

Posted on Leave a commentPosted in Magento 2

You might have experienced this when you have a Nginx server for Magento >=2.3.5 onwards. You have a very easy solution for this just add this to your nginx conf usually you can find this configuration under this path /etc/nginx/nginx.conf http { fastcgi_buffers 16 16k;. fastcgi_buffer_size 32k.; proxy_buffer_size 128.k; proxy_buffers 4 256k;. proxy_busy_buffers_size 256k;   Just […]

Mega Menu Disappears When using Varnish Cache Magento 2

Posted on Leave a commentPosted in Magento 2, Theme

Once you have varnish cache in your server setup and configured one of the problems you might face if you use varnish cache. Thats your mega menu will disappear from the site mobile as well as desktop version. Simple solution to that is to go to /vendor/magento/module-theme/view/frontend/layout/default.xml. In this file find “<block class=”Magento\Theme\Block\Html\Topmenu” name=”catalog.topnav” template=”Magento_Theme::html/topmenu.phtml” ttl=”3600″ […]

Tinymce error in Magento 2.3

Posted on Leave a commentPosted in Magento 2

So here are the things you need to know about Magento 2.3. Tinymce is not supported from Magento 2.3 onwards. You might have extensions that used to work in Magento 2.2 and Magento 2.1 but in Magento 2.3 now wysiwyg editor wont load stating tinymce error. So what can be done ?? Easy just find […]