Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
See related issue
I've got 8.x-1.0-alpha15 installed
I've applied this patch cleanly with composer but I still get this error:
Got error 'PHP message: Uncaught PHP Exception InvalidArgumentException: "Field field_domain_all_affiliates is unknown." at /var/www/docroot/core/lib/Drupal/Core/Entity/ContentEntityBase.php line 58
This is not fixed
further information:
I updated drupal/menu_item_extras and this error started to happen so unsure if its related to this module being updated.
Comment | File | Size | Author |
---|---|---|---|
#10 | unknow_field-3067230-10.patch | 5.98 KB | davps |
#10 | unknow_field-3067230-10-test.patch | 5.28 KB | davps |
Comments
Comment #2
darrenwh CreditAttribution: darrenwh as a volunteer and commentedComment #3
agentrickardWhat patch?
Comment #4
darrenwh CreditAttribution: darrenwh as a volunteer and commented@agentrickard The one in the related ticket?
Comment #5
agentrickardWell, someone uploaded a new patch on a closed ticket, so I don't know what you are referencing. Please use URLs to the actual comment and patch.
The original patch was already committed.
What I really need is some context for when this error occurs.
* What page were you on? (Or what drush command did you run?)
* What were you trying to do?
I can't do anything with just an error output.
Comment #6
agentrickardComment #7
darrenwh CreditAttribution: darrenwh as a volunteer and commentedSolved this, The domain field was missing from the menu extras field, adding it back resolved the issue
Comment #8
agentrickardHere's a link to the patch in question. https://www.drupal.org/files/issues/2019-04-05/3036555-domain-missing-fi...
Comment #9
agentrickardI'm a little fascinated to know where the error was occurring, though.
What did you do to trigger the error?
Comment #10
davps CreditAttribution: davps as a volunteer and at DrupalJedi commentedFaced with the same exception at create and update operations for the node/user entities with deleted domain access fields.
Here is the patches with detailed tests methods and fix.
P.S. I don't like the method names in the test, feel free to rename them all.
P.P.S. Looks like fix was suggested before #3036555-13: Field field_domain_all_affiliates is unknown and missed :(
Comment #11
agentrickard"Missed" because it is not helpful to upload patches to closed issues without reopening them.
I also never got any context for this issue. Your patch seems to only affect Devel Generate when then domain fields have been deliberately deleted.
Is this correct?
I cannot properly review work unless proper context is provided.
Comment #12
davps CreditAttribution: davps as a volunteer and at DrupalJedi commentedYes, it is. This behavior could be achieved with deleting domain access fields from the node bundle.
I can move these patches to the separate issue, if it make sense.
Comment #13
agentrickardMy question, of course, is "why would anyone delete these fields and expect the module to work?"
This issue is fine.
Comment #15
agentrickardCommitted! Thank you.
Comment #17
agentrickardComment #18
agentrickard