cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT Error while running php bin/magento setup:di:compile in CMD

URGENT Error while running php bin/magento setup:di:compile in CMD

Good Afternoon,

I'm installing Magento and after i run the command php bin/magento setup:di:compile in cmd it gives me this error message "Warning: Use of undefined constant ‘ - assumed '‘' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\magento\vendor\magento\framework\Interception\PluginListGenerator.php on line 159" which refers to this line 

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

what can i do to solve this ? please this is urgent

Thank You!

2 REPLIES 2

Re: URGENT Error while running php bin/magento setup:di:compile in CMD

Hello @anisrouism0e62 

 

Hope you are doing well,

 

Check out this solution https://support.magento.com/hc/en-us/articles/115002663433-Error-running-the-setup-di-compile-comman.... I think this will help you in solving your problem. 

 

Hit the Kudos button and accept as a solution.

Re: URGENT Error while running php bin/magento setup:di:compile in CMD

Replace the line-

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

with the code-

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

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