thirtybees / coreupdater

thirty bees module for updating thirty bees core.
Academic Free License v3.0
0 stars 5 forks source link

missing db fields and www prefix #23

Closed musicpanda closed 2 years ago

musicpanda commented 2 years ago

I updated my Prestools website to the latest version. Several things went wrong.

The first thing I noticed was that while updating the process was not finished. It ended with me getting a message "Ajax request failed: error". Unfortunately the place where the error should should was empty. When I refreshed the page it said that my site was up-to-date. However, when I tried to create a customer account it crashed during the saving. I tried bleeding edge but that didn't help.

Changing a file allowed me to "upgrade" again. Now I had the javascript console open and I saw that there was a CORS error. I was running on domain "prestools.com" and from there a call was made for a file from "www.prestools.com" and that was refused by the browser for cross scripting reasons.

Going back to the front side I ran in database problems. First the field cl.display_name was missing and then category_shop.active. After that the shop seemed to run. But unfortunately there is no way to check whether there are more database differences. The updater script doesn't check for it and unlike Prestashop Thirty Bees doesn't document the database version differences in an accessible way.

musicpanda commented 2 years ago

I forgot the image of the error message coreupd

musicpanda commented 2 years ago

This is how it looks after the failed upgrade. coreupd

getdatakick commented 2 years ago

This is duplicate of issue #17.

The store update was actually performed in CORS preflight HEAD request (this is unintentional, should be fixed). The following POST request was blocked by CORS mechanism, and this in turn blocked all subsequent operations, including db update.

Your reported issues will be fixed as part of #17 and #18