Skip to content

Magento 2 setup:di compile error In ErrorHandler.php line 61:

Warning: file_put_contents(root/generated/metadata/primary|global|plugin-list.php): failed to open s
tream: No such file or directory in D:xampphtdocswp7vendormagentoframeworkInterceptionPluginListGenerator.p
hp on line 414

Solved:
Go to -> vendormagentoframeworkInterceptionPluginListGenerator.php

Find ->
$cacheId = implode('|', $this->scopePriorityScheme) . "|" . $this->cacheId;

Replace ->
$cacheId = implode('-', $this->scopePriorityScheme) . "-" . $this->cacheId;

Then run again setup:di:compile command line.

Thanks