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
CommentFileSizeAuthor
#2 commerce_log_throws-2863458-2.patch277 bytesmglaman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

droath created an issue. See original summary.

mglaman’s picture

Status: Active » Needs review
FileSize
277 bytes

Patch because issue credits.

mglaman’s picture

  • bojanz committed f488a12 on 8.x-2.x
    Issue #2863458 by mglaman, droath: Commerce log throws fatal error when...
bojanz’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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

ThirstySix’s picture

first of all, Sorry for reopening this issue.

Again, I got the same error when I applied the patch. Any idea? thanks in advance

dependencies:
  - commerce
  - user
ktch_my’s picture

Same 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.

ThirstySix’s picture

Thanks..