Problem/Motivation
When path module is not enabled and trying to export a node, it throws the following error:
InvalidArgumentException: Field path is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
Steps to reproduce
- Create a content type
- Make sure the path module is not enabled
- Go to the export page of a node
Proposed resolution
Check if path module is enabled when using path.
Issue fork single_content_sync-3273454
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
brentgComment #4
Wim LeersComment #5
Wim LeersThe fact that tests passed means that tests are incomplete; otherwise the bug I fixed in https://git.drupalcode.org/project/single_content_sync/-/merge_requests/... could not have resulted in tests passing…
Comment #6
brentgIndeed, the the double $ was a typo
The tests need to be added, but are blocked by https://www.drupal.org/project/single_content_sync/issues/3229471 atm
Comment #9
nginex CreditAttribution: nginex as a volunteer and commentedThank guys for the fix.
Comment #10
nginex CreditAttribution: nginex as a volunteer and commentedComment #11
nginex CreditAttribution: nginex as a volunteer and commented