Hello,
I have just installed Omega for my drupal 8 installation.
But after installing Omega and setting it as default I've started getting error which I have no clue about.
Please help!

Warning: Invalid argument supplied for foreach() in omega_preprocess_page() (line 300 of themes\omega\omega\omega\omega.theme).
Notice: Undefined index: regions in omega_preprocess_page() (line 296 of C:\wamp\www\portal\themes\omega\omega\omega\omega.theme).

This is the first time I'm using this theme.... and am unable to see any headway in this.
Hoping for a speedy response.
Thanks,
Anisha

Comments

asharma22 created an issue. See original summary.

asharma22’s picture

Title: Warning being shown » Omega theme file starts warning to be shown on front page
ExTexan’s picture

A little clarification here might help. The error on line 296 occurs first (duh!), and is causing the line 300 error.

And, in my case, it happens on every page, not just the front page (as the issue title says).

ExTexan’s picture

Ok, here's what I found. The function that gets the data that omega_process_page() uses is omega_return_layouts(). That function has this line...

  unset($layouts['_core']); // where did this come from??

And there is, in fact, a "_core" element in that array. However, "_core" also appears deeper into the array, for all the region groups ("all", "narrow", "normal", "wide"). Those "_core" elements don't have the "regions" index, thus causing the above errors.

federicoc’s picture

I am also receiving this warning on a fresh install of D8 1.1 and a fresh Omega sub theme.

mfgr’s picture

Me too. Any solutions?

himerus’s picture

Status: Active » Fixed
Related issues: +#2710941: Errors on theme settings page

I think the latest dev version solves this by solving another issue.

Status: Fixed » Closed (fixed)

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