thirtybees / psonesixmigrator

PrestaShop 1.6 to thirty bees migrator
Academic Free License v3.0
4 stars 6 forks source link

ps16 error reporting can break json response #30

Open getdatakick opened 2 years ago

getdatakick commented 2 years ago

I found error message about the creation date that somehow I ad missed previously: migrate6

Originally posted by @musicpanda in https://github.com/thirtybees/psonesixmigrator/issues/28#issuecomment-1151485301

getdatakick commented 2 years ago

There is not much we can do here, as module code is called too late (error message is already sent to the output)

We would have to bypass the ps16 entry point (index.php / dispatcher), and instead introduce new custom entry point that would initialize error reporting in reliable way -- no display of errors to the output