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
Magento 2 store maintenance costs: what makes up the annual budget
Store implementation is a one-time cost. Maintenance is an ongoing cost – and one of the most frequently overlooked in e-commerce budget planning. Business owners who focus exclusively on implementation cost are often surprised by what appears on invoices in subsequent years.
- Published in E-commerce
Magento 2 admin grid timeout – orders grid with 500k records
The admin panel timed out when trying to open the orders list. 30-second timeout. The database contained 500,000 orders accumulated over 5 years. Fix time: 3 hours.
- Published in Magento / Adobe Commerce
