Jump to content

Cannot perform any module upgrade (neither uninstall / install)


Recommended Posts

Hi,

Starting from a fresh PS9 out of the box, on a planethoster hosting (tried with php 8.1 and 8.4, with or without WAP firewall), I cannot perform any module ugrade :

on some modules, I get the message "could not perform action upgrade for module undefined ",

- on other ones, prestashop says upgrade worked, but it didn't.

---

Using marketplace panel inside the admin, it says the marketplace module should bu updated but when clicking I have another error message : "JSON.parse: unexpected character at line 1 column 1 of the JSON data"

---

When I tried to update manually the Marketplace module, it crashed all the site (error 500) and I had to get back with a backup.

---

I saw on a lot of pages that using debug mode, and clearing cache and var/cache/folders works... but I tried it numerous times and it didn't.

Do you have any idea ?

 

Best regards

Antoine

Edited by Antoine Gaudin
More infos. (see edit history)
Link to comment
Share on other sites

I restarted everything today, and noticed two things :

 

1/ The modules which  prestashop says upgrade worked, but it didn't :

- When looking on dates of files on server disk, version and dates are fine - so the update worked.

- BUT when looking at the database version in ps_module table, the old version is still recorded. If I manually update the version, the module turns OK.

 

2/ On the modules where I get the message "could not perform action upgrade for module undefined " : If I go directly on the AddOns MarketPlace, and look to download the latest version, it is the version already installed . It seems the version asked for update in admin is not yet available to download. See picture attached : Bloc Promotion (v1.0.2->v1.0.3) but the avalaible to download version (ps_special) is only 1.0.2 - same for Nouveau produits /new_product, and so on...

What a mess with this marketplace !

 

----

It seems I met two kinds of problem here.

Any idea ?

Regards

Antoine

Capture.JPG

Link to comment
Share on other sites

31 minutes ago, Antoine Gaudin said:

- BUT when looking at the database version in ps_module table, the old version is still recorded. If I manually update the version, the module turns OK.

 

Updating the file and updating the database entry are separate actions.

Directly updating the database entry is not recommended, as it might break module functionality. The new version may include operations such as database migrations, hook installations, or other initialization steps that will be missed if you update the database manually.

20 hours ago, Antoine Gaudin said:

on some modules, I get the message "could not perform action upgrade for module undefined ",

 

This generally happens due to overrides. Need to delete the overrides manually (but need to identify which one needs to be deleted) & then cache clear, and then upgrade the module. 

 

  • Like 1
Link to comment
Share on other sites

As said, I was starting from a fresh PS9 out of the box. There is no override - and ALL modules upgrades show the same problem...

I already cleared number of times caches and all kind of server and system optimisations. Same problems.

Regards

Antoine

Link to comment
Share on other sites

I retried with a another fresh installation zip, on another server, different configuration - extrafresh PShop out of the box, no settings made, immediatly tried to update modules : none of them passed. Sorry, but it seems PShop9 is broken ! How is it possible that a totally new release doesn't work on a so basic feature ? Can at least someone confirm me that modules update worked on his personal install on PS9 ?

Regards

Antoine

Link to comment
Share on other sites

  • 1 month later...

Well yeah, upgrading should wait until at least several bug fixes ideally. Try to get version 8.2.1 if you need a store now. I had a similar issue, so just left it in dev mode till they fix it because I know fully well there will be dozens of other issues along the way.

If you put the shop in debug mode check your logs you might learn what's happening.

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...