Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When installing the Commerce Log module a PHP fatal error is thrown:
Fatal error: Class 'Drupal\commerce\CommerceContentEntityStorage' not found in /var/www/html/docroot/modules/contrib/commerce/modules/log/src/LogStorage.php on line 15
I've narrowed it down to a missing dependency in the commerce/modules/log/commerce_log.info.yml file. Just need to add the commerce module to the dependency parameter:
dependencies:
- commerce
- user
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_log_throws-2863458-2.patch | 277 bytes | mglaman |
Comments
Comment #2
mglamanPatch because issue credits.
Comment #3
mglamanPR https://github.com/drupalcommerce/commerce/pull/697
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedThanks!
Comment #7
ThirstySix CreditAttribution: ThirstySix commentedfirst of all, Sorry for reopening this issue.
Again, I got the same error when I applied the patch. Any idea? thanks in advance
Comment #8
ktch_my CreditAttribution: ktch_my commentedSame error with clean installation after patch applied.Drupal 8.3.1
Installed dev version of module fix the problem, need to install Commerce before Commerce Log.
If Commerce Log is installed, uninstall and install Commerce first.
Comment #9
ThirstySix CreditAttribution: ThirstySix commentedThanks..