On October 21, 2026, two critical PHP vulnerabilities were disclosed. This is particularly troublesome for operators of older Magento stores still running PHP 5.6, PHP 7.4 or another unsupported PHP version. A simple PHP upgrade is often impossible without updating…
Fixing undefined SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES constant (Magento 2)
If the message Undefined constant “Magento\Framework\Encryption\Adapter\SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES appears in your Magento 2 store, the PHP sodium extension is almost certainly missing or disabled. Install or enable sodium and the error should be resolved.
Magento 1 and PHP 5.6 support
Support for PHP 5.6 ends at the end of 2018! Many hosting providers may therefore stop offering this PHP version. Act early and make your Magento 1 store ready for PHP 7. In many cases, the switch is manageable in…
Magento 1 and PHP 7
The benefits of PHP 7 are clear: it is faster and more secure than older versions, and offers developers new ways to write code and build features. Sooner or later, any Magento 1 store owner will reasonably ask whether the…
Solving “Cannot send headers; headers already sent” problem (Magento 1)
Sometimes, when looking through your Magento log files, you might stumble upon the “Cannot send headers; headers already sent in …” message. One possible reason for that could be a space or a newline behind a closing PHP tag (?>).…