Magenerds / BasePrice

37 stars 38 forks source link

Serialization Error on Magento 2.2 #23

Open fisch42 opened 6 years ago

fisch42 commented 6 years ago

On Magento 2.2.1 I get the following error when opening "Shops -> Configuration -> Magenerds -> Base price" in the admin:

1 exception(s):
Exception #0 (InvalidArgumentException): Unable to unserialize value.

Exception #0 (InvalidArgumentException): Unable to unserialize value.
#0 /var/www/magento2/vendor/magento/module-config/Model/Config/Backend/Serialized.php(55): Magento\Framework\Serialize\Serializer\Json->unserialize('a:14:{i:0;a:3:{...')

Related Issues: #18 #21

I have installed the newest version (1.1.1) via composer. I did not have installed this module before.

unifiedarts commented 6 years ago

hello guys, yeah, that issue is still present. do you maintain this extension?

extension broken

sydekumf commented 6 years ago

Hi, that's the same problem like in the closed ticket: https://github.com/Magenerds/BasePrice/issues/21 As the serialization mechanism changed, delete the entry from the database, you should resave the configuration.

fisch42 commented 6 years ago

Please fix the setup script, as I did not have installed an earlier version of this module. It still fails in a clean magento installation (2.2.2).

When I delete the entry from the database and resave the configuration, the following error on product page occurs:

1 exception(s):
Exception #0 (Exception): Notice: unserialize(): Error at offset 0 of 2 bytes in /var/www/magento2/vendor/magenerds/baseprice/Helper/Data.php on line 63

The database entry contains an empty json arry ([]). So I`ve added one "Conversion mapping" in the configuration and saved again. Then this error occurs on product page:

1 exception(s):
Exception #0 (Exception): Notice: unserialize(): Error at offset 0 of 92 bytes in /var/www/magento2/vendor/magenerds/baseprice/Helper/Data.php on line 63
Trenk commented 6 years ago

It seems to be known. With a clean Magento 2.2, the module can not be activated.

Is there any news about this?

Best regards