Latest Post
Writing
Sam James's Articles – Page 5
Discover expert insights from Sam James on Security, Magento 2, DevOps, AI Development, Infrastructure. Stay updated with the latest trends, practical guides, and in-depth analysis in Magento & Ecommerce.
Adobe Commerce - Improved Magento Vars Store Code Configuration
A simplified version of the magento-vars.php store code configuration. That catches both CNAME alias' and dynamic integration urls
Magento 2 - Elasticsearch 8 Fixing _id disallowed indices in Warden
The single configuration option you need to set to solve the 'Fielddata access on the _id field is disallowed' error within Magento 2 with Warden
Magento 2.4.6+ and Elasticsearch 8: Compatibility, Configuration & Common Errors
Magento 2.4.6 dropped ES7 support and requires Elasticsearch 8 or OpenSearch 2. Covers the supported versions matrix, ES8 configuration, and fixes for common errors including indices.id_field_data.enabled.
Magento 2 - Configuring Nginx Rate Limiting
A simple, no nonsense overview on how to configure rate limiting via Nginx for a Magento 2 website. Including IP and UserAgent whitelisting.
Local Wordpress Bedrock Development using Warden
The secret configuration file you need to implement to get Roots Bedrock working with the warden.dev local environment
Self-Hosted Sentry in 2026: Docker Compose Setup, Requirements & Honest Review
Step-by-step guide to running Sentry self-hosted with Docker Compose. Covers prerequisites, resource requirements, install steps, and an honest take on whether it's worth the maintenance burden.
Comparing Magento 2 DB Schema Changes
Generate a diff report for the difference between the Magento 2 DB Schema in code, and the schema currently deployed.
Magento 2 CLI Scratch File
Simple Boilerplate code to create a scratch file similar to artisan:tinker. Where you can interactive with the Magento APP over the CLI, instantiate classes with ObjectManager and call methods. Great for single use scripts, or inspecting data / method results.
Finding Magento 2 Uncacheable Blocks
Quick and easily identify what XML blocks are breaking your full page caching, by injecting a small piece of code into any template.