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

Comments

Juyal Ji created an issue. See original summary.

shobhit_juyal’s picture

Issue summary: View changes
shobhit_juyal’s picture

StatusFileSize
new834 bytes

I have added a small fix for that, which worked for me. Patch file attached.

shobhit_juyal’s picture

Status: Active » Needs review
Christian Hanne’s picture

Tried out the patch. The errors are gone, but values are not stored.
I tested this on a commerce product.

shobhit_juyal’s picture

Status: Needs review » Active
bohart’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Status: Active » Closed (outdated)
Issue tags: -

D7 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!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.