I am using magento 2.1.5 when i change developer to production mode got the error like this
Enabled maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Command returned non-zero exit code:
/opt/remi/php70/root/usr/bin/php -f /www/sites/hostname/files/html/bin/magento setup:di:compile
so i running the following command
php bin/magento setup:di:compile
got the error like below
[ReflectionException]
Class Magento\Braintree\Model\Config\PayPal does not exist
Best Answer
I had faced such issue once. Please check file/folder name, Its case sensitive and should be exact or possible permission issue.