Magento 1x with PHP7 Problems

Kevin Kyaw
newborn.ninja
Published in
2 min readNov 1, 2016
Image Credit : https://www.brainvire.com

Currently, I’m using magento 1.9x version for our e-commerce store. Unfortunately, this server set-up was did by third party agency. So, I can’t do many things on this server without know root access. To be honest, I’m not familiar with Nginx. (I will write about step by step to create new Nginx server and migration from Nginx to Apache on later).

Initially, I tried to install php7 on Ubuntu 16.04. After install require all php extension, the site was look perfect. I realized that site performance is pretty impressive (2x that compare with php5).

Problem 1

Admin login — I tried to login to admin panel. Unfortunately, I can’t login. It was shown redirect back to login page. First things first, I thought that this is configuration issue and cookies issues in core_config_data. But, it wasn’t.

Solution — I tried to comment out $this->renewSession(); under app/code/core/Mage/Admin/Model/Session.php (Not recommended this way and just for testing). You can do with magento recommended way!

Problem 2

Create new customer — When I tried to create new customer, I got this error message (Decoding Error in Zend_Json::decode()).

Problem 3

Tax calculation wrong and promo code amount calculation and so many unseen problems (To be honest, I haven’t test yet at all)

So, I’m not recommend to switch over to php7 for magento 1x version. It’s wired now.

--

--