HI,
I have just installed the latest commerce beta 3 along with on latest drupal 8.2.2 release.
After creating the store, I wanted to create a new product. When I created a new product, I am getting The website encountered an unexpected error. Please try again later.

In Recent log messages I have got this message:

RuntimeException: The bcmath extension is required by NumberFormatter. in CommerceGuys\Intl\Formatter\NumberFormatter->__construct() (line 113 of /var/xxxx/public_html/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php).

Any help please

CommentFileSizeAuthor
#5 prevent_installation_if-2828510-5.patch640 bytesmitrpaka

Comments

bigsony created an issue. See original summary.

bojanz’s picture

Title: Unable to create New products » Prevent installation if bcmath is missing
Issue tags: -commerce, -product

Commerce requires the PHP bcmath extension.
We need to add code that prevents install if you don't have it.

bigsony’s picture

Status: Active » Fixed

Works after adding the PHP extension.
Thanks Bojanz.

agoradesign’s picture

Status: Fixed » Active

I'll reopen that, as bojanz stated in #2, that he plans to add code preventing installation, if bcmath is missing

mitrpaka’s picture

Status: Active » Needs review
StatusFileSize
new640 bytes
bojanz’s picture

Status: Needs review » Fixed

Merged.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.