I have disabled all the domain modules, added the new module files then when running update.php i keep getting a couple of errors, causing the upgrade to fail.

Notice: Use of undefined constant DOMAIN_ALL - assumed 'DOMAIN_ALL' in domain_update_7309() (line 412 of ..\sites\all\modules\domain\domain.install).

Notice: Undefined index: all in domain_update_7309() (line 412 of ..\sites\all\modules\domain\domain.install).

anyone any ideas on this? what other information would you need to work out what is wrong?

thanks.

CommentFileSizeAuthor
#2 2042461-domain-update-7309.patch590 bytesagentrickard

Comments

agentrickard’s picture

Status: Needs review » Active

You can only mark "needs review" items that have patches.

I suspect the problem is that the module is disabled while you are running the updates. DOMAIN_ALL is set in the domain.module file.

So we can't use that constant reliably.

For a quick fix change DOMAIN_ALL to 'DOMAIN_ALL' in the function. That's what the patch will do.

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new590 bytes

And a patch.

agentrickard’s picture

Status: Needs review » Fixed

Committed.

   8d24bae..ff81c07  7.x-3.x -> 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.