Closed iranimij closed 6 months ago
I have prepared this pr for this issue : https://github.com/bitExpert/magento2-force-login/pull/231
Fixed in the 5.4.0 release which was just published https://github.com/bitExpert/magento2-force-login/releases/tag/v5.4.0
After updating the module from 4.1 to 5.3 and then after running bin/magento set:up, I receive this error.
Unable to apply data patch BitExpert\ForceCustomerLogin\Setup\Patch\Data\Patch501 for module BitExpert_ForceCustomerLogin. Original exception message: Whitelist entry not editable.
I took a look into it and found the source of the issue. The issue is that, previously we have added some records to the
bitexpert_forcelogin_whitelist
with editable 0 by default. (https://github.com/bitExpert/magento2-force-login/blob/7cdd89556ba2cfbadb38565f6405eeea94b7f43e/Setup/UpgradeData.php#L235C9-L241C11) using setup script and then in version 5 we return error if the editable is 0, and I think when we are making editable automatically 0 then we should not return exception in future https://github.com/bitExpert/magento2-force-login/blob/master/Repository/WhitelistRepository.php => line 79Preconditions
Updating from Magento2-force-login version 4.1 to version 5.3 PHP 8.2
Magento Version : 2.4.6-p4
Force Login Module Version :
Third party modules :
Steps to reproduce
Expected result
Actual result