This issue relates to the issue #1139706 where the same behavior is described.

My PHP version: 5.6.10

But the snippet that prevent a null return is not inside the current 7.x-3.x-dev version.

In my case currently breaks the domain_form_alter() function the features create form (/admin/structure/features/my_feature/recreate). At the end the form action looks like: ":///admin/structure/features/my_feature/recreate". Other forms (like node/add/...) has currently not that behavior. However, the problem with the action in the features form occurs just today. It looks like that the problems does not always occur.

Nevertheless, we should ensure that the function always returns a valid domain array. So that a null value could not break other functions, that relate to domain_initial_domain().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cbeier created an issue. See original summary.

cbeier’s picture

Status: Active » Needs review
FileSize
337 bytes

Patch that fixes this problem is attached.

agentrickard’s picture

I am very curious about the conditions under which this bug arises. Have no domains been created?

cbeier’s picture

On the page where the problem occurs is one default domain and two other domains configured.

The exact circumstances of the problem, are also for me unclear. Suddenly I had noticed that Feature (create/update a feature) no longer works.