mir-aus Posted October 1, 2018 Share Posted October 1, 2018 After updated my website from 1.6.1.18 to 1.6.20 because of PHP updated in my server to PHP7.2 Now I have some error, if any fix this error please help me as well "Parameter must be an array or an object that implements Countable" Warning: count(): Parameter must be an array or an object that implements Countable in /public_html/controllers/front/ProductController.php on Warning on line 551 in file ...... /public_html/classes/controller/AdminController.php[2] count(): Parameter must be an array or an object that implements Countable Link to comment Share on other sites More sharing options...
musicmaster Posted October 1, 2018 Share Posted October 1, 2018 Forget it. PS 16.1.20 isn't compatible with PHP 7.2 and most likely never will be. Prestashop 1.6 is end-of-life and Prestashop will soon stop support for it. So the chances that they will upgrade it for PHP 7.2 is very small. You might have a better chance with Thirty Bees (what is rather 1.6 compatible) but they too aren't 7.2 ready and are planning it only at the end of the year. With Prestashop only 1.7.4 is PHP 7.2 compatible. Link to comment Share on other sites More sharing options...
mir-aus Posted October 2, 2018 Author Share Posted October 2, 2018 but they said it's compatible. Also I can receive the order! just when I turn the debugging, error comes up. I don’t know with this error I will be safe to receive the orders or not Anyone can help me please. Link to comment Share on other sites More sharing options...
tuk66 Posted October 2, 2018 Share Posted October 2, 2018 Version 7.2 is very strict and you can expect more problems with PS 1.6 as well as modules. Prefer to choose PHP 7.1. Link to comment Share on other sites More sharing options...
Rhobur Posted October 6, 2018 Share Posted October 6, 2018 Set PHP to 7.0+ that the best you can use at the moment. Link to comment Share on other sites More sharing options...
mir-aus Posted October 7, 2018 Author Share Posted October 7, 2018 My problem is my server will stop to use the PHP bellow 7.2 very soon! Link to comment Share on other sites More sharing options...
mir-aus Posted October 14, 2018 Author Share Posted October 14, 2018 any help?? Link to comment Share on other sites More sharing options...
ScooterCk Posted October 19, 2018 Share Posted October 19, 2018 (edited) #mir-aus I also have a PS 1.6.1.20 website and have received notification from my hosting company that they will be implementing PHP 7.2 as of the 3rd of December. However - you have got a solution. The reason for the notification is that PHP 5.5 and 7.0 are end of life (7.0 is the 3rd Dec and 5.6 30th Dec). My hosting company has stated that if your website is on either 5.6 or 7.0 PHP, then they will automatically switch you to PHP 7.2, which is a disaster as this will not work. BUT !!!! you can still use PHP 7.1, this does work and if you get a white screen error, switch off the "Non Native Prestashop modules", the site will work, but you will then have to find which module is failing. I had one, had that updated today and now my domains are running PHP 7.1. The hosting company have confirmed that any domains on either 7.1 will NOT be updated to 7.2. If you go into your PHPAdmin desk you will see that 5.6 and 7.0 state they are ending soon, but you will be able to select php 7.1. It takes approx 20 minutes to become active and then your errors will stop. I have had 2 days of panic, thinking my business would end due to the fact my three web sites will no longer run, but don't Panic Hope that helps Edited October 19, 2018 by ScooterCk (see edit history) Link to comment Share on other sites More sharing options...
Duikert Posted November 14, 2018 Share Posted November 14, 2018 Yes, but once you have to go to the new PS7 version...I don't like this idea because of the comming problems.. Link to comment Share on other sites More sharing options...
jetway Posted November 15, 2018 Share Posted November 15, 2018 I am running PHP 7.1 with PS 1.6.1.20 without any issues. Link to comment Share on other sites More sharing options...
jpshoppresta Posted November 15, 2018 Share Posted November 15, 2018 Is the PS 1.6.1.23 compatible with PHP 7.2? Thank You for your response 1 Link to comment Share on other sites More sharing options...
tuk66 Posted November 15, 2018 Share Posted November 15, 2018 One thing is PrestaShop compatibility and another one modules compatibility. We know nothing about your modules. I suggest to check all files at least with PHP Compatibility Checker. Link to comment Share on other sites More sharing options...
seigi Posted May 22, 2019 Share Posted May 22, 2019 (edited) You can try http://thirtybees.com/ its improved Prestashop 1.6 and many things on board prestashop misses or you have to pay for. PS: You will need to test modules compatibility. If somone is using Prestashop API in their modules it will work fine, however modules calling directly to database may not work. Edited May 22, 2019 by seigi (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted May 22, 2019 Share Posted May 22, 2019 You can try any other shop suite thirty bees is really nice, but has 500 times less installations. Will it survive in 2020? Link to comment Share on other sites More sharing options...
seigi Posted May 22, 2019 Share Posted May 22, 2019 I work with prestashop since around 1.3-1.4. Migrated many shops from old OSC to PS... know codebase, alot of its weaknesses and strenghts.... 1.7 removed many strenghts and added alot of new weaknesses... Sure it's modern... but for my thirtybees is a light in a tunnel that can help survive the prestashop I "loved". Prestashop with great written framework, that was well designed (except few flaws). PS 1.6 needed only few tweaks and more hooks to make it really great platform. 1.7 included (in may ways great) symphony... what is symphony? for me it's a development shortcut... giving commercial benefits not codebase quality... which was ruined by 1.7. Where thirtybees goes is where Prestashop should, they made great improvements to caching system, added more hooks, improved compatibility with new technologies, added namespaces (one of things i can't stand in 1.7 are folders Core, src - When I was looking for something i knew it would be in classes if it was model, and in controllers if it was controller) Will it survive? Depends on how many people will use it and support it. With support from developers it can succeed :). It's improved stable 1.6 with lots of additions. And in 1.7 alot of modules were removed, rewritten and put into shop. 1 Link to comment Share on other sites More sharing options...
shardul Posted September 30, 2019 Share Posted September 30, 2019 These are just warnings. I'm using PS 1.6.1.20 with Php 7.2 without any issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now