Jump to content
mir-aus

PS 1.6.1.20 not compatible with php 7.2

Recommended Posts

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

 

admin -error-2.jpg

Inkedwebsite_LI.jpg

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#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 by ScooterCk (see edit history)

Share this post


Link to post
Share on other sites

Yes, but once you have to go to the new PS7 version...I don't like this idea because of the comming problems..

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Posted (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 by seigi (see edit history)

Share this post


Link to post
Share on other sites

You can try any other shop suite :)

thirty bees is really nice, but has 500 times less installations. Will it survive in 2020?

Share this post


Link to post
Share on other sites

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.

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More