Magento 2 custom module not loading after deployment – DI compilation error
A new module version deployed to production caused a 500 error across the whole shop. DI compilation ended with an error about a missing interface. The problem was a constructor signature change without updating di.xml. Fix time: 1 hour.
- Published in Magento / Adobe Commerce
Magento 2 cart loss – Redis session and eviction policy
Customers were losing their cart contents and getting logged out randomly during shopping. The problem intensified on weekends with high traffic. Fix time: 2 hours.
- Published in Magento / Adobe Commerce
Xdebug 3 + DDEV + PHPStorm – debugging, profiling, flamegraph
Xdebug 3 changed the configuration approach – instead of many directives, one option xdebug.mode controls all behaviour. Combining Xdebug 3, DDEV and PHPStorm gives a complete environment: step debugger with breakpoints, a profiler generating cachegrind files, and coverage reports for PHPUnit. I show the configuration from scratch and how to analyse profiler results in PHPStorm and QCacheGrind.
- Published in Środowiska
Magento 2 CSRF token error in AJAX and REST API – sessions and headers
Custom forms in the shop stopped working after a Magento update. “Invalid Form Key” error in logs. Custom AJAX endpoints threw CSRF exceptions on every request. Fix time: 2 hours.
- Published in Magento / Adobe Commerce
