I tried to install the latest version 7.x-3.0-beta1 but failed miserably. I disabled my subtheme which was based on -alpha4, removed my subtheme, removed the omega theme folder, copied the latest omega theme into sites/all/themes, copied the starterkit "omega-html5" into the sites/default/themes directory, renamed directory, info file and css files and activated the theme (without any modifications). I then went on and started to change some of the settings (using the Omega UI) to disable some of the regions, change the logo and the favicon, toggled the debugging blocks off, cleared cache a few times and loaded the homepage (with no content). At first it did look as expected (see screenshot1). I reloaded the same page and had lost all column layout elements (see screenshot2). Back on the theme settings page, all my settings are back to default values and I find a long list of error messages on undefined variables:


Notice: Undefined variable: linked_logo_img in include() (line 3 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/region--branding.tpl.php).
Notice: Undefined variable: site_name in include() (line 3 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/region--branding.tpl.php).
Notice: Undefined variable: site_slogan in include() (line 3 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/region--branding.tpl.php).
Notice: Undefined variable: main_menu in include() (line 3 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/region--menu.tpl.php).
Notice: Undefined variable: secondary_menu in include() (line 3 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/region--menu.tpl.php).
Notice: Undefined variable: title in include() (line 4 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/region--content.tpl.php).
Notice: Undefined variable: tabs in include() (line 11 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/region--content.tpl.php).
Notice: Undefined variable: action_links in include() (line 12 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/region--content.tpl.php).
Notice: Undefined variable: breadcrumb in include() (line 3 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/zone--content.tpl.php).
Notice: Undefined variable: messages in include() (line 6 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/zone--content.tpl.php).
Notice: Undefined variable: doctype in include() (line 1 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/html.tpl.php).
Notice: Undefined variable: rdf in include() (line 2 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/html.tpl.php).
Notice: Trying to get property of non-object in include() (line 2 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/html.tpl.php).
Notice: Undefined variable: rdf in include() (line 2 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/html.tpl.php).
Notice: Trying to get property of non-object in include() (line 2 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/html.tpl.php).
Notice: Undefined variable: rdf in include() (line 3 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/html.tpl.php).
Notice: Trying to get property of non-object in include() (line 3 of /Applications/XAMPP/xamppfiles/htdocs/sites/all/themes/omega/omega/templates/html.tpl.php).

Is that due to the fact that I hade Omega 7.x-3.0-alpha4 running or do you have any other thoughts/suggestions?

CommentFileSizeAuthor
#1 screenshot1.jpg332.73 KBmahu
#1 screenshot2.jpg223.27 KBmahu

Comments

mahu’s picture

StatusFileSize
new223.27 KB
new332.73 KB

apologies - I was not able to attach the screenshots with the initial post... here we go

fubhy’s picture

Please delete the old alpha4 folder completly and backup your subtheme folder. Afterwards clear your entire drupal cache and remove all entries in the database "variables" table that have your subtheme as prefix (YOURTHEME_theme_settings, etc.). Then "install" Omega 3.x-beta1. Copy the starterkit of your choice, do the necesary steps to make it appear on your theme listing (rename the folder name and the .info file and then open the .info file and remove the two lines that are marked with the note "REMOVE THESE LINES"). Afterwards you can activate that subtheme and start merging back in the subtheme that you created for the alpha4 version step by step.

I know that this is really complicated but sadly (since we are on the theme layer) we dont have the hook_update functions which would allow us to provide a proper update path and automated update functionality. Sorry! Not my fault :P. However, we won't have any more API / Themeing system changes like those we have now (from alpha => beta) and therefore you won't have any troubles with updating your Omega theme in the future. All the changes that we will make from now on will be documented in the CHANGELOG.TXT (along with the neccesary steps for you to upgrade properly).

fubhy’s picture

Status: Active » Postponed (maintainer needs more info)

Did you manage to fix it?

mahu’s picture

Sorry - just came back in. Yes, it did solve the problem - thank you for your support and for you great work!

fubhy’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

You'r welcome!

pascalm’s picture

Category: bug » task
Status: Closed (fixed) » Active

Hello,

Sorry to re-open this post but I have the same problem and neither this process or the solutions mentionned in other posts fixed the problem.

I first intalle Omega 2, then I got this error, I uninstalled Omega 2, cleared the cache, deleted the entry in the table "variable", installed Omega 3, copied the starter kit, modified it and tried to print $site_slogan in one of my tpl.php file. And I still get the same error "Notice: Undefined variable: site_slogan in include()...".

Does somebody know how to fix this problem ?

Thank you for your help.

pascalm’s picture

Status: Active » Closed (fixed)

Sorry, I found from where comes the error and it was my fault.

I didn't understand that site_name, site_slogan etc. were only set for the branding region. Indeed these variables are set in the Omega template.php file in the omega_alpha_process_region() function only if the branding region is set.

I had this bug because I don't use the branding region in my subtheme (I've created my own regions). In order to fix the bug I have overrided the process_region() function in my theme template.php and defined the variables I use there.

Thanks.

paska’s picture

i've tried adding new region and I have the same problem with "Undefined variable: secondary_menu".
Solution:
in template.php is necessary to add custom function MYSUBTHEME_process_region() to a new region:

/**
 * Implements hook_process_region().
 */
function MYSUBTHEME_process_region(&$vars) {
  if (in_array($vars['elements']['#region'], array('content', 'menu', 'branding', 'NEW_REGION'))) {
etc.