Magento 2 headless – CORS errors when calling REST API from React/Vue
A new React frontend could not communicate with the Magento REST API. Every AJAX request ended with a CORS error in the browser console. The backend worked correctly when tested through Postman or curl. Fix time: 2 hours.
- Published in Magento / Adobe Commerce
Magento 2 REST API slow – missing pageSize and wrong filtering
An ERP integration with the shop via REST API was getting slower over time. Fetching the orders list via API took 45 seconds. The endpoint was returning the entire order history instead of the last 24 hours. Fix time: 3 hours.
- Published in Magento / Adobe Commerce
Magento 2 missing product images after server migration
After migrating the shop to a new server, product images were not displaying – grey placeholders instead. The database had file paths, but the files did not exist on disk. Fix time: 5 hours.
- Published in Magento / Adobe Commerce
Command pattern – command queue, undo/redo, Magento 2 MessageQueue
The Command pattern encapsulates a request as an object, allowing operations to be parameterised, queued, logged and undone. In Magento 2 this pattern is the foundation of the MessageQueue system – each message is a Command executed asynchronously by a consumer. I show the implementation from the classic version through to integration with the Magento queue.
- Published in Wzorce projektowe
