New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: Illegal offset type in vendor/magento/framework/App/Config/ScopeCodeResolver.php on line 58 #8530
Comments
Same Issue |
1 similar comment
Same Issue |
same here, i got this error while creating orders that we received in M2E pro. |
@michafn, me too. In order to fix that you can make some modifications to find the methods setStoreConfig() and getStoreConfig() and replace |
@raisaev : thank you very much for this fix |
Nice Raisaev. It works !!! You must have great experience in Magento code |
This piece of code in Magento never worked or was changed recently? |
We had this issue come up as well as soon as we updated to the latest M2E Pro version. M2E Pro gave us a new Configurator.php file and it solved the issue... it basically just had the fix mentioned above. |
Also get this error creating orders in M2E Pro. |
@raisaev, thank you for your report. |
Steps to reproduce are invalid,
Other issues mentioned in discussion are bugs in third-party code which seem to be already fixed. Thanks for collaboration and help in sorting this out! |
…elop-sync-09112023 Sync of 2.4.7-beta2-develop with 2.4-develop
Judging by code the class of ScopeCodeResolver can work with the objects ScopeInterface as a second parameter of the resolve method but it will cause 'Illegal offset type' warning.
Preconditions
Steps to reproduce
`
/** @var \Magento\Store\Model\Store $store */
$store = $this->_objectManager->get('Magento\Store\Model\Store');
$store->load(0);
$resolver = $this->_objectManager->get('Magento\Framework\App\Config\ScopeCodeResolver');
$code = $resolver->resolve('store', $store);
echo $code;
`
Expected result
Actual result
Exception #0 (Exception): Warning: Illegal offset type in vendor/magento/framework/App/Config/ScopeCodeResolver.php on line 59
#1 Magento\Framework\App\Config\ScopeCodeResolver->resolve('store', Object(Magento\Store\Model\Store\Interceptor))
The text was updated successfully, but these errors were encountered: