HI All,
I have just installed the latest commerce beta 2 alongwith on latest drupal 8.2 release.
Below is my store configuration.
1. Store type: default
2. No of store: 1
3. Product variation: default
4. Product type: default
5. added 2 attributes: size and color to default variation type
Now when I create a new product as admin, I am getting The website encountered an unexpected error. Please try again later.
Error.
Please note that when I do not use any of attribute in product variation my i can add the product successfully.
Please advice
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screenshot from 2017-03-01 15-10-37.png | 38.22 KB | Strompf |
Comments
Comment #2
bojanz commentedEnable error display on admin/config/development/logging and then retry, tell us which error you're getting.
Comment #3
ashuaviator1987 commentedIt was color field problem , I applied the patch at https://www.drupal.org/node/2623730 and it worked
Closing the bug
Comment #4
Strompf commentedI had the same error (different cause). This page quite helped me in fixing it, so in case more people end up here:
After enabling error display, as mentioned above, I got the attached message: Appearantly, module
php-bcmathwas missing.This Ubuntu webserver was only three months old. When I originally installed it, I choosed PHP 7.1. When this proved difficult, I switched back to PHP 7.0. At least, I thought I did. Along the way I installed the php-bcmath library through
sudo apt-get install bc-math. Turned out that this installed the PHP 7.1-version. After installing the PHP 7.0-version throughsudo apt-get install php7.0-bcmath(and restarting the webserver), the problem disappeared.Have a wonderful day!