magento / meta-for-magento2

33 stars 19 forks source link

_processNestedGroups() must be an instance of Meta\Catalog\Plugin\Backend\Config\mixed, array given #52

Open kestraly opened 4 months ago

kestraly commented 4 months ago

Preconditions (*)

  1. Install extension and do not configure immediately

Steps to reproduce (*)

  1. Save any configuration in the admin

Expected result (*)

  1. Configuration Saves

Actual result (*)

  1. Argument 1 passed to Meta\Catalog\Plugin\Backend\Config\SaveController::_processNestedGroups() must be an instance of Meta\Catalog\Plugin\Backend\Config\mixed, array given, called in /vendor/meta/module-catalog/Plugin/Backend/Config/SaveController.php on line 274
bulbulmofosys commented 4 months ago

Hello, any update on this?

francescodoffizi commented 4 months ago

Same here, magento 2.4.3-p1 unable to save any Catalog option

kestraly commented 3 months ago

I ended up having to wrap if(!is_array($group)) {} at line 274 for each group to get it to save again as a temp solution

sol-loup commented 1 month ago

Hey all, the offending nested groups should have been removed as of 1.3.1. Can you confirm you're still seeing this issue?

christianago commented 1 week ago

Same here for Magento 2.4.4. I also get this error when I try to save some irrelevant configuration in an Amasty module

kestraly commented 1 week ago

@christianago - Are you on PHP7.4 ? I think it's no longer compatible if that's the case

christianago commented 1 week ago

@christianago - Are you on PHP7.4 ? I think it's no longer compatible if that's the case

Yes I am on PHP 7.4. Readme states the that minimum supported version is 7.4. This isn't true in the last version?

kestraly commented 1 week ago

@christianago - Just had this issue with Amazon pay. They introduced type MIXED and it basically broke 7.4 compatibility. The fix I put in gets around this, but it's still a pain.