5

I have recently upgraded my site from Magento 2.2.6 to Magento 2.3.2. During each di compilation it shows a warning like

main.INFO: Reference to undeclared plugin with name 'stockedProductsFilterPlugin'. [] []

When i debugged this case and i found that in Magento 2.3.0 there was a plugin available with this name in 'module-elasticsearch' module and in Magento 2.3.2 they have removed that plugin and definition from that module. But in the module 'module-inventory-elasticsearch' they are written to disable that plugin which is currently not existing like below.

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider">
    <plugin name="stockedProductsFilterPlugin" disabled="true"/>
    <plugin name="stockedProductFilterByInventoryStockPlugin" type="Magento\InventoryElasticsearch\Plugin\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider\StockedProductFilterByInventoryStock"/>
</type>

So since there is no definition for that plugin this warning is showing. So how we can remove this warning from di compile. When i removed the disabling code from this module the warning will gone. But we are not supposed to edit the magento core files. Also another way i found create a dummy plugin with the same name, but this is a bad way. Any other solution for this?

  • When i checked this case in a fresh magento 2.3.2 version, no such warning is shown while the di compile. I dont know why this happening for my upgraded system. Its not related to any third party or custom module because i have disabled all such modules and tried the di compile, but still the warning is showing. – amesh Jul 17 '19 at 11:12
  • Did you find a solution to this please? I am having same issue – G. G. Jul 29 '19 at 18:18
  • 1
    We could not get a solution from magento side. We have just created a patch to remove this code from the di.xml file. Since there is no definition for this plugin is given anywhere, we not need this. If you follow this method just remember about this patch while upgrading the magento. – amesh Jul 30 '19 at 7:18
  • I had the same issue. Have you found any solution? I don't have any di.xml in the file frontend. Why am facing the main.INFO: Reference to undeclared plugin with name 'priceIndexUpdater' issue. – divya sekar Oct 21 at 5:39
1

I'm having a similar error reported in system.log:

main.INFO: Reference to undeclared plugin with name 'priceIndexUpdater'

Mage Version: 2.3.6

When: The log occurs when finalizing checkout: pushing "Place order" button, we have a "Something went wrong ..." message too.

@amesh wrote: "We have just created a patch to remove this code from the di.xml file". How did you create that patch? Did you simply comment xml definitions apparently related to error?

Thank you so much ...

| improve this answer | |
  • I don't have any di.xml in the file frontend. Why am facing the main.INFO: Reference to undeclared plugin with name 'priceIndexUpdater' issue. – divya sekar Oct 21 at 5:43
  • Well, ... what I was seeing in debug.log and system.log [main.INFO: Reference to undeclared plugin with name 'priceIndexUpdater'] was probably a sort of a unconsistent OR approximate log dued to another exception occurred onto runtime flow of interceptors (sorry for my foggy explanation but I'm quite a novice). I installed a module (MSP_Smtp) and ispectioning the codebase I found a piece of code to patch. Once I made the right modification, everything turned well again and the log disappeared. – Stefano Luchetti Oct 21 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.