Fix Magento 2 ERR_TOO_MANY_REDIRECTS: Step-by-Step Guide

You fire up your local Magento 2 installation, excited to get some work done, and… BAM! Instead of your store, you’re met with an endless “Too Many Redirects” error. Your browser keeps bouncing back and forth between URLs like a confused courier, and your site just won’t load. Frustrating, right? This issue is surprisingly common …

Continue reading Fix Magento 2 ERR_TOO_MANY_REDIRECTS: Step-by-Step Guide

The Curious Case of intval: A Programmer’s Tale

Once upon a time in the magical kingdom of PHP, there lived a humble function named intval(). Not as flashy as array_map() or as mysterious as eval(), intval() was a quiet worker bee, transforming values into integers with the wave of its wand. But like all good fairy tales, there’s a twist: intval() had some …

Continue reading The Curious Case of intval: A Programmer’s Tale

Finding the Villain Commit in the Magento 2 Codebase Using the GIT Bisect

A few days ago I was working as usual from my home office. I was entertained working on an investigation for a non-critical bug for one of our clients. Suddenly a Slack message popped up on my screen: "We have a critical bug happening on production for this given client that started happening after the …

Continue reading Finding the Villain Commit in the Magento 2 Codebase Using the GIT Bisect

Generating Unique Hashes in Magento 2 Programmatically

Occasionally, we often encounter scenarios where generating unique hash tokes is necessary. Hash tokens play a crucial role in various aspects of Magento 2 development, such as security, URL generation, form submission, and more. In this blog post, we will explore different methods to generate unique hash tokens in Magento 2, ensuring their uniqueness and …

Continue reading Generating Unique Hashes in Magento 2 Programmatically

Debugging a Magento 2 Cloud Application with Xdebug and PhpStorm

As a senior Magento 2 developer, one of the essential skills you need in your toolbox is the ability to efficiently debug your code. Magento Cloud, a powerful cloud-based hosting platform for Magento applications, requires a specialized approach to debugging. In this blog post, we will explore how to set up and use Xdebug with …

Continue reading Debugging a Magento 2 Cloud Application with Xdebug and PhpStorm

Front Controller: the guy who handles the request in Magento 2

The Front Controller in Magento 2 is crucial for managing the application's request-handling process. It serves as the central entry point for HTTP requests, routes them to the appropriate controllers, and generates responses. The pattern provides benefits like centralized functionality, extensibility, and improved maintainability. Magento 2 implements this through the FrontControllerInterface, enabling effective routing, request processing, error handling, and response generation.