commerce

The bcmath extension is required by NumberFormatter

Submitted by dravenk on Fri, 07/14/2017 - 08:51
RuntimeException: The bcmath extension is required by NumberFormatter. in CommerceGuys\Intl\Formatter\NumberFormatter->__construct() (line 113 of /var/www/html/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php).

 

docker-php-ext-install bcmath  
docker-php-enable bcmath  

docker-php-ext-enable bcmath

 

Reference:  

https://github.com/kalabox/kalabox/issues/1655 

'CommerceGuys\Addressing\AddressInterface' not found in……address/src/AddressInterface.php on line 11

Submitted by dravenk on Thu, 07/06/2017 - 17:47

安装 commerce 报错

( ! ) Fatal error: Interface 'CommerceGuys\Addressing\AddressInterface' not found in /var/www/html/modules/address/src/AddressInterface.php on line 11

解决办法
composer require "drupal/address ~1.0"
composer update drupal/address --with-dependencies