I'm trying to run
php bin/magento setup:di:compile-multi-tenant on a Magento CE 2.0.10 with sample data installed. I don't have anything else in this Magento installation.
I use php 7.0.8.
[Magento\Framework\Exception\LocalizedException] Source class "\Magento\Catalog\Model\Product\OptionInterface" for "\Magento\Catalog\Model\Product\OptionInterfacePersistor" generation does not exist.
The permissions should be ok. With root I get same error.
Originally I've installed Magento from archive. Than I used composer to update the project with a module (the module is gone now). After installing from archive I did set production mode, but I didn't spotted any errors. I'm not sure if the error was or wasn't there. One thing is to repeat the installation which I'll do.
setup:di:compile will work (as in execute successfully the command) but in Magento 2.0.x is bugged as far as I know. Anyway the plugins in that module I was talking do not work (in developer mode work as expected).
Anyone got into this
OptionInterfacePersistor error when trying to compile on a Magento 2.0.x ?
I installed again 2.0.10 sample from archive.
I set production mode successfully.
php bin/magento setup:di:compile-multi-tenant and worked.
composer update -vvv.
php bin/magento setup:di:compile-multi-tenant and failed with same error.
In composer update I see a few external packages updated.
These are all packages updated:
- Removing phpunit/php-token-stream (1.4.8) - Installing phpunit/php-token-stream (1.4.9) - Removing symfony/config (v2.8.11) - Installing symfony/config (v2.8.14) - Removing symfony/yaml (v2.8.11) - Installing symfony/yaml (v2.8.14) - Removing sebastian/comparator (1.2.0) - Installing sebastian/comparator (1.2.2) - Removing seld/jsonlint (1.4.1) - Installing seld/jsonlint (1.5.0) - Removing fabpot/php-cs-fixer (v1.12.2) - Installing fabpot/php-cs-fixer (v1.12.4) - Removing psr/log (1.0.1) - Installing psr/log (1.0.2) - Removing symfony/event-dispatcher (v2.8.11) - Installing symfony/event-dispatcher (v2.8.14) - Removing symfony/filesystem (v2.8.11) - Installing symfony/filesystem (v2.8.14) - Removing symfony/finder (v2.8.11) - Installing symfony/finder (v2.8.14) - Removing symfony/process (v2.8.11) - Installing symfony/process (v2.8.14) - Removing symfony/stopwatch (v3.1.4) - Installing symfony/stopwatch (v3.1.7)
Still don't know the cause of this.