Category: PHP

Magento 2 How To Log All Database Queries

Magento 2 How To Log All Database Queries

We are involved with a number of Magento 2 websites and this means we are frequently looking to resolve errors and improve performance. An important part of resolving errors with Magento 2 is analysing...

PHP count() In PHP 7.2 Or Later Throws Warnings

PHP count() In PHP 7.2 Or Later Throws Warnings

You may have noticed some interesting new behaviour in your code following your upgrade to PHP 7.2 and hopefully we can shed some light on one change in particular, to the PHP count() function....

MaxMind GeoLite2 With PHP 7 For Geolocating IP Addresses

MaxMind GeoLite2 With PHP 7 For Geolocating IP Addresses

We recently implemented a basic geo-restriction for a client, based on the freely available MaxMind GeoLite2 database, and hopefully this document will help those with a similar requirement in future. We made use of...