Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.13
Component:
Order
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
29 Apr 2019 at 10:47 UTC
Updated:
1 Jun 2019 at 08:12 UTC
Jump to comment: Most recent
I got this error in local
PHP Fatal error: Trait 'Drupal\entity\Form\EntityDuplicateFormTrait' not found in /modules/contrib/commerce/modules/order/src/Form/OrderTypeForm.php on line 19
[warning] Drush command terminated abnormally. Check for an exit() in your Drupal site.
and when i have put my code on live
PHP Fatal error: Trait 'Drupal\entity\Form\EntityDuplicateFormTrait' not found in /modules/contrib/commerce/modules/product/src/Form/ProductVariationForm.php on line 15
Comments
Comment #2
heni_deepak commentedComment #3
bojanz commentedYour site is broken because you didn't update it properly (didn't use Composer?) and now your module versions are out of sync. This particular error is caused by Commerce being on a recent version, but Entity API being on an older version.
Also, keep in mind that "priority" is not used for support requests.
Comment #4
heni_deepak commentedI have used composer and code is working on local but when I zipped and move code live something was missing. maybe it's dependency file issue.
Comment #5
jimwcoleman commentedI am getting the same error and my site is broken. And yes, I did install everything via Composer as I always do ...
Comment #6
jimwcoleman commented@heni_deepak - did you ever find a resolution? I have the exact same issue. My site is updated via composer. It works fine local but is totally crashed on remote. My site has been down for days and I still haven't found out why ... here's a clip from the log file...
[11-May-2019 19:40:14 America/Los_Angeles] PHP Fatal error: Trait 'Drupal\entity\Form\EntityDuplicateFormTrait' not found in /public_html/www.jimwcoleman.com/modules/contrib/commerce/modules/order/src/Form/Orde... on line 14
[11-May-2019 19:45:27 America/Los_Angeles] PHP Fatal error: Trait 'Drupal\entity\Form\EntityDuplicateFormTrait' not found in /public_html/www.jimwcoleman.com/modules/contrib/commerce/modules/order/src/Form/Orde... on line 14
[11-May-2019 19:50:57 America/Los_Angeles] PHP Fatal error: Trait 'Drupal\entity\Form\EntityDuplicateFormTrait' not found in /public_html/www.jimwcoleman.com/modules/contrib/commerce/modules/order/src/Form/Orde... on line 14
[11-May-2019 19:54:41 America/Los_Angeles] PHP Fatal error: Trait 'Drupal\entity\Form\EntityDuplicateFormTrait' not found in /public_html/www.jimwcoleman.com/modules/contrib/commerce/modules/order/src/Form/Orde... on line 14
Comment #7
cristianalcaraz commentedI can confirm the same problem is happening to me after upgrading Commerce via composer to 2.13.0, had to downgrade to 2.12.0.
Please, reopen the issue.
Comment #8
bojanz commentedI already wrote what the problem is in #3. You need Entity API 1.0-rc2. You are running an older version. Update your Entity API module.
Comment #10
heni_deepak commentedI have solved this issue.
I have an updated All modules with dependency and also core dependency.
#3 also working for me.