Magento 1.9.2.3 Fixes Php 5.6 Compatibility

There’s been a long standing issue with Magento, or more specifically the Zend version it ships with, not supporting the latest version of PHP - v5.6 The issue is in a couple of places where it calls a now deprecated function iconv_set_encoding('internal_encoding', 'UTF-8'); in lib/Zend/Validate/Hostname.php With PHP 5.5 having gone out of support, leaving PHP 5.6 being the only 5.x version currently supported, this has become a pressing issue. Fortunately Magento has finally addressed this with a change in 1.9.2.3 changing the code in question to use the valid ini_set('default_charset', 'UTF-8'); function call. Read On →

Magento 2 Dependency Injection and Swapping Dependencies with Virtual Types

Magento 2 dependency injection and virtual types

Read On →

Fedora 24 Install on Lenovo X1 Carbon

Installing Fedora on my new Lenovo X1 Carbon I have just bought a nice new Lenovo x1 Carbon laptop. Plenty of power and portability was what I was looking for. It’s also really important that it runs Linux with the minumum of fuss. Having done a load of research it seemed that Lenovo was the brand of choice for Red Hat developers and so, hopefully, Fedora - which is very closely related to Red Hat - should work fine. Read On →

Fedora Drive Space Regain Tip

I recently discovered a huge amount of drive space being used up in /var/cache On closer inspection the vast majority of this usage was in var/cache/packagekit For me there was 8GB of files in there, not great when you only have a relatively small SSD as your primary drive. To clean this up, the following command will do: sudo pkcon refresh force -c -1

Bash Header for all scripts

Bash header prefix script for all scripts

Read On →

Checking for Magento patches with FTP

When you have an older version of Magento running on your server it is extremely important to ensure that you stay up to date with the latest security patches. If you have FTP or Cpanel access (with the file browser) you can quickly and easily check how protected you are. With your favourite FTP application/CPanel, connect to your site and browser to your root public directory (the part exposed to requests). Read On →