-
Notifications
You must be signed in to change notification settings - Fork 39
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 'Undefined array key "instance"' on plugins that don't define a classname #103
Comments
100% agree @hostep |
Just one extra tidbit, we have the following modules disabled in the
This might be part of what is needed to reproduce the problem (not 100% sure though). Update: indeed, enabling one of those modules, results in 2 fewer warnings being outputted. |
That might be the cause of the issue @hostep , possibly if the original config is missing then the merged config won't have this value. Also I've added a note to https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper/blob/master/docs/TROUBLESHOOTING.md#debug-a-warning-or-a-notice which may help you in the future
Should fail loud and fast and clearly on the affected files. |
Update ClassPluginPhp.php (fix #103)
Thanks! 🙂 |
Hi
Saw the following warning block 4 times in the output:
After outputting the variable
$pluginName
and searching the codebase for the 4 plugins, I've found them being defined like so in theetc/di.xml
file of the Amasty Improved Layered Navigation module (version 2.21.0):Notice that these don't contain a
type
attribute. I'm assuming Amasty defines those like this only to change the sort order of those plugins.It probably makes sense to add a check like the following before this line I think?
The text was updated successfully, but these errors were encountered: