Hello
The modules have some issues with the field widget form as it is creating below warning logs while EDITING commerce orders. However, I also noticed that the logs are not creating immediately on order edit rather it displays after some time (may be on cron run).
1) Warning: reset() expects parameter 1 to be array, null given in domain_entity_field_widget_form() (line 491 of /home/xxx/public_html/sites/all/modules/domain_entity/domain_entity.module).
2) Warning: in_array() expects parameter 2 to be array, null given in domain_entity_field_widget_form() (line 497 of /home/xxx/public_html/sites/all/modules/domain_entity/domain_entity.module).
3) Warning: in_array() expects parameter 2 to be array, null given in domain_entity_field_widget_form() (line 494 of /home/xxx/public_html/sites/all/modules/domain_entity/domain_entity.module).
Installed Vesion - 7.x-1.4
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | warning-log-on-order-edit-2851047-3.patch | 834 bytes | shobhit_juyal |
Comments
Comment #2
shobhit_juyal commentedComment #3
shobhit_juyal commentedI have added a small fix for that, which worked for me. Patch file attached.
Comment #4
shobhit_juyal commentedComment #5
Christian Hanne commentedTried out the patch. The errors are gone, but values are not stored.
I tested this on a commerce product.
Comment #6
shobhit_juyal commentedComment #7
bohartD7 reached its EOL back in January 2025, and there is no active release for D7 for this module.
Neither development nor support is planned for D7.
All D7-related issues (especially those with ~10 years of inactivity) are marked as outdated in a bunch.
If/once the issue still arises in D11+ versions, please create a follow-up issue.
Still, everyone can apply the patch above (not tested by the maintainers) to their projects.
Thanks!