cancel
Showing results for 
Search instead for 
Did you mean: 

magento2.4.1 setup:di compile error

magento2.4.1 setup:di compile error

hello all,


I got a small problem when compiling magento,i.e,
Screenshot (374).png

C:\xampp\htdocs\magento-ce-2.4.1-2020-09-25-04-08-02>php -dmemory_limit=4G bin/magento setup:di:compile 

Compilation was started. Plugin list generation... 8/9 [========================>---] 88% 2 mins 382.0 MiB

In ErrorHandler.php line 61:

Warning: Use of undefined constant ‘ - assumed '‘' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\magento-ce-2.4.1-2020-09-25-04-08-02\ve ndor\magento\framework\Interception\PluginListGenerator.php on line 159

i have replaced from $cacheId = implode('|', $this->scopePriorityScheme) . "|" . $this->cacheId; to $cacheId = implode(‘-’, $this->scopePriorityScheme) . “-” . $this->cacheId;
in PluginListGenerator.phpon line 159

Using materials:-

magento 2.4.1

xampp/php 7.4.23

elasticsearch 7.6.0

Your help is greatly appreciated, Thank you.

1 REPLY 1

Re: magento2.4.1 setup:di compile error

Did you have a variable $s and omitted the $, or you forgot the quotation marks?