line 127 states:

$theme_regions = array_map('t', $info['original_regions']);

This assumes that the theme registry has been built / isn't in a weird state where it will be rebuilt on an admin page. This occurs when creating an installation profile as most flush all cached information.
Proposed solution:

if (isset($info['original_regions'])) {
    $theme_regions = array_map('t', $info['original_regions']);
	}
	else {
		$theme_regions = array_map('t', $info['regions']);
	}

As the "original" regions code was ment for repairing themes this will still work, just not on the first few page loads of a newly installed distribution. Most likely you aren't going to make the default theme one that has blocks that aren't taken into account on install so I think this solution is "good enough" unless anyone can think of a better one.

Comments

btopro’s picture

Version: 6.x-1.0-beta5 » 6.x-1.x-dev
Status: Needs review » Fixed

committed to dev

Status: Fixed » Closed (fixed)

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