Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
asharma22 CreditAttribution: asharma22 commentedComment #3
ExTexan CreditAttribution: ExTexan commentedA 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).
Comment #4
ExTexan CreditAttribution: ExTexan commentedOk, 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...
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.
Comment #5
federicoc CreditAttribution: federicoc as a volunteer and commentedI am also receiving this warning on a fresh install of D8 1.1 and a fresh Omega sub theme.
Comment #6
mfgr CreditAttribution: mfgr commentedMe too. Any solutions?
Comment #7
himerus CreditAttribution: himerus as a volunteer commentedI think the latest dev version solves this by solving another issue.