Blog

How to fix «file_put_contents(generated/metadata/primary|global|plugin-list.php): failed to open stream: No such file or directory in lib\internal\Magento\Framework\Interception\PluginListGenerator.php on line 414» in Magento 2.4-develop in Windows?

 

To resolve this error,
Go to the file <magento2_dir>vendormagentoframeworkInterceptionPluginListGenerator.php

Find
$cacheId = implode(‘|’, $this->scopePriorityScheme) . “|” . $this->cacheId;

Replace with
$cacheId = implode(‘-‘, $this->scopePriorityScheme) . “-” . $this->cacheId;

Re-run the
php bin/magento setup:di:compile

That’s it. It should run now successfully.
I hope this helps you.
Feel free to comment and for any queries. Your feedback is appreciated.
Happy Learning !!
Thank You !!

Magento2 Interview Preparation

Leave a Reply

Your email address will not be published. Required fields are marked *