Jump to content

Prestashop 8


JustJohn

Recommended Posts

Yes released for some time 

https://build.prestashop-project.org/news/prestashop-8-0-0-available/

https://www.prestashop-project.org/releases/prestashop80/

But I think too early to move store production version to that.  Especially when auto-upgrade module not working yet.

Good for test though, and some next release could be with more fixes, so wait for it bit more.

  • Like 1
Link to comment
Share on other sites

For me it's more of a question when themes start to support 8, and when envato adds 8 to their compatibility filter. It seems that the new release caught our vietnamese friends by surprise. I mean, who'd have known that there'd be a new release, really.

When starting a new store it's prudent to go with the new version to avoid all the update cruft very soon.

Edited by JustJohn (see edit history)
Link to comment
Share on other sites

Think like every new version it will need to pass some time to get some major things ironed out. Would that be version 8.1 or 8.2 or 9.0 time will tell.

So think that is one of reasons it is not in full focus and announced everywhere.  So this is more for theme and module developers to jump on 

testing train and make updates.  Also, if you have time, do report bugs if they are not reported already. 

Link to comment
Share on other sites

Well, I can imagine 22 to 20% is an easy band-aid fix. What's harder to fix is things like this:

[PHP Unknown error #16384] The hook "updateproduct" is deprecated, please use "actionProductUpdate" instead in module "blocktags". (/var/www/prestashop/classes/Hook.php, line 850)

that happens with some of those themes.

Link to comment
Share on other sites

il y a une heure, JustJohn a dit :

Well, I can imagine 22 to 20% is an easy band-aid fix.

in fact there are dozens of VAT rates that need to be updated, for each country and for full rates, reduced rates... these rates were registered and good for more than 10 years, now there is no only the Italian rates are good, all the VAT rates of the other countries have to be re-entered manually

 

Il y a 2 heures, razaro a dit :

testing train and make updates. 

for the validator (https://validator.prestashop.com/) before we had an error message and it displayed the line that was causing the problem, it was easy to correct the problem, now it displays 50 errors and then 80 lines of code concerned, you have to find for each line of code what the error could be...

For the main changes :

_PS_BASE_URL_SSL_ disappears on PS8, you can replace it with Tools::getShopDomainSsl(true);

 

before the json_encode and json_decode PHP functions were prohibited, it was necessary to go through Tools::jsonEncode and Tools::jsonDecode
but these functions no longer exist on PS8, we can use json_encode and json_decode

 

array(...) by [...]

 

($a == 1)? true : false;
by
$a == 1 ? true : false;
-> avoid parentheses and put a space before the ?

 

$a.$b
becomes
$a . $b
one space before and one after the "."

 

(int)$a
becomes (int) $a
you have to add a space after (int)

 

$i++ becomes +$i++

 

in all cases the superfluous parentheses must be removed, otherwise it is an error message, example:

include_once('classes/ME.php'); becomes

include_once 'classes/ME.php';

  • Thanks 1
Link to comment
Share on other sites

It's a long story, some theme authors bundle some modules that give this error when using Webservice to make POST requests. Some of those are custom but at least "blocktags" module appears to be a legacy one that hasn't been updated in a while, so...

Link to comment
Share on other sites

  • 3 months later...

Hi,

I installed the last PS version and the customer report me that have one error:

This error:

[PHP Unknown error #16384] The hook "updateproduct" is deprecated, please use "actionProductUpdate" instead in module "fieldproductcates". (/home/ourives5/loja.ourivesariafigueira.com/classes/Hook.php, line 850)

I need to change anything?

Can anyone help me about this error?

Thanks

bruno Azevedo

Link to comment
Share on other sites

16 hours ago, BrunoAzevedo2023 said:

Hi,

I installed the last PS version and the customer report me that have one error:

This error:

[PHP Unknown error #16384] The hook "updateproduct" is deprecated, please use "actionProductUpdate" instead in module "fieldproductcates". (/home/ourives5/loja.ourivesariafigueira.com/classes/Hook.php, line 850)

I need to change anything?

Can anyone help me about this error?

Thanks

bruno Azevedo

The module version that you are using for fieldproductcates has not been adapted to PS 8.

You can fix this error by replacing updateproduct for actionProductUpdate in /modules/fieldproductcates/fieldproductcates.php, but maybe there are other errors.

Edited by idnovate.com (see edit history)
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...