ThemeShaper Forums » Thematic

[closed]

Why Back To Back Updates?

(13 posts)
  • Started 9 years ago by blogangel
  • Latest reply from blogangel
  • This topic is resolved
  1. I was just getting ready to try and resolve a client's issues that occurred right after he updated his thematic based theme that I set up for him. And poof! there's another update waiting.

    What's going on? Will this update do anything to fix the missing page menu items that resulted from the first update? And is every update going to reset widgets? I used widgets to setup a customized set of 3 customized boxes in the subsidiary sections at the top of his theme. I just finished restoring them, now I'm going to lose them again aren't I.

    I don't know whether to run the second update, what it's for or if I will still have dive into the PHP to restore the page menu items. I'm not that strong with PHP and I'm not sure the fix I've found will bring back all his page items.

    I had also placed the search box to the right in his menu bar. It's the only thing still there.

    Should I run the second update and go at it all again?

    Posted 9 years ago #
  2. Hi blogangel,

    I hear your distress and I'm sorry the update has not gone well. If you want to know whats going on with the new versions before you update look in the Thematic directory at the changelog.html file. With every new version that is released that file is updated to announce what has changed. That is where you can always find out what is going on with each new release.

    0.9.7.6 was a major release with many bug fixes, new features and satisfied requirements of the WordPress theme repository. Unfortunately in fulfilling those requirements, we had to make changes that have impacted child themes. We have information posted here to help people with the transition. http://forums.themeshaper.com/topic/thematic-0976-is-online-important-release-notes

    0.9.7.7 was a quick bug fix due to an issue introduced by it's the preceding version.

    You can see more expanded documentation of all of this in the changelog.html file.

    1. The widgets issue: 0.9.6.2 -> 0.9.7.7 bug fixes / code changes were made to the way Thematic registers sidebars and widgets. Some users are reporting that they have experienced the unfortunate side effect of dumping widgets into the inactive bin. I do not believe that it will happen from simply upgrading to 0.9.7.7 but I cannot confirm this at the moment.

    2. Menu-madness: Many menu issues are currently being discussed regarding the new releases. If you don't see on the forums index page, try using the search function to see if any of those threads provide a solution for you.

    Whether you choose to run the update or not is up to you. I can relate to you hesitancy. If you are in a real bind you can always downgrade to 0.9.6.2

    I suggest you always keep up to date with both WordPress and Thematic. Unfortunately there is always potential for bumps in the road with an update. I personally try testing these updates locally or on test site before before rolling them onto production sites and I keep up to date with the latest svn versions of Thematic and WordPress. That way I can avoid and troubleshoot unfortunate upgrades and warn my clients about upgrade issues preemptively. Many of the users of these forums stay on the bleeding edge of Thematic development.

    I'll look around real quick and come back with some links that might help you.

    -Gene

    Posted 9 years ago #
  3. http://forums.themeshaper.com/topic/updated-thematic-no-home-menu-link

    Let me know if there's anything else you need help with

    Posted 9 years ago #
  4. Gene,

    Thank you for your reply and the further offer of help. I've tried a couple of different things, but I only managed to create a fatal error in the PHP and made my client's page "disappear". Who knew I was a magician? I was able to undo what I did and got the blog back up. Hmmm... magic in reverse?

    I tried applying a couple of different fixes I found on the forums to the php file. But in all honesty I know just enough about PHP to be dangerous. If someone tells me exactly what to put and where to put it, I'm fine. Otherwise I become a menace.

    I have read and tried to apply the information I found in the following links to my situation, but with no success:

    http://forums.themeshaper.com/topic/navigation-menu-disappears-on-update
    http://forums.themeshaper.com/topic/updated-thematic-no-home-menu-link
    http://developing.thematic4you.com/2010/04/breaking-things-to-fix-others/

    I am using the PowerBlog child theme on my client's site and my menu stuff looks like this:

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    function childtheme_menu_args($args) {
    $args = array(
    'show_home' => 'Home',
    'sort_column' => 'menu_order',
    'menu_class' => 'menu',
    'echo' => true
    );
    return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');

    Posted 9 years ago #
  5. Remove the code you have posted here and replace it with:

    function childtheme_menu_args($args) {
        $args['show_home']  = 'Home';
    
    	return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args', 20);

    Try that and report back.

    Posted 9 years ago #
  6. As far as my texting shows the widgets disappearing issue occurs only if you switch themes. This is a normal WordPress behavior. If you're interested in backing up your widgets locations before switching themes or upgrading:

    Try using this plugin: http://wordpress.org/extend/plugins/widget-saver/

    Posted 9 years ago #
  7. Gene,

    I tried replacing the code, exactly as instructed above. The menu still is blank.

    I'm sure I put the code in the right place (because your instructions were so wonderfully explicit - thank you for that).

    The new code didn't break anything, but it did not bring the pages back.

    I'm really grateful for the plugin recommendation, will save me much grief and time.

    Hope we can figure this out, I was so happy at how easy it was to style my client's site just the way he wanted and the instructions I found for styling the Suckerfish menu were awesome. Even gave me all the info to put the search box in the menubar.

    All his page links should be on the left and the seachbox goes to the right or at least it use to.

    The site address, if you'd like to see what I mean is:

    http://sourceblogger.com/

    Posted 9 years ago #
  8. Have you used the "menu" section in the admin at all?

    What other code have your added to you functions.php

    Posted 9 years ago #
  9. Okay,
    I'm not sure what you mean about using the "menu" section in the admin. So I probably didn't. I'm guessing.

    I don't remember exactly what I added to the PHP, but I will go back through it and see what I can find. I'll compare it to an untouched copy of the file. This will take a little time and unfortunately I am way beyond my pain quota for today.

    I am disabled due to chronic pain from arthritis and fibromyalgia so I have to limit the amount of time I spend online. Not only that but the drugs I take for the pain make it very hard to concentrate. I will go through the files early tomorrow and get back to you.

    I cannot tell you how wonderful it is to find someone so willing to help. Thank you for all the time you are putting in on this. I truly appreciate it.

    Posted 9 years ago #
  10. krackpot
    Member

    If you log into the Admin area (Dashboard), under Appearance, 3rd item down, Menu.

    You'll need to create a menu and save it. Then under the Pages box, click "view all" then select "Home" and check it, add to Menu. It should appear on the right hand side menu. (You drag it around according to whatever order you want)

    To have the menu you saved appear, under Theme Locations box (two boxes up from Pages), select the Menu.

    That should get it working.

    Posted 9 years ago #
  11. Gene,

    No I never used the Admin menu functions. Thanks to Krackpot for reminding me what and where that option was.

    I did, however, added the following code:

    //add_action('thematic_belowheader','childtheme_category_menu', 5);

    As per the instructions in this post:

    http://forums.themeshaper.com/topic/thematic-power-blog-remove-categories-bar-willing-to-pay#post-4413

    I also added the search bar to the menu by using this code (added at end of PHP):

    
    // Remove default Thematic actions
    function remove_thematic_actions() {
        remove_action('thematic_header','thematic_access',9);
    }
    add_action('init','remove_thematic_actions');
    
    // Create a custom access div with the menu and search box
    function search_access() { ?>
            <div id="access">
                <div class="skip-link">"><?php _e('Skip to content', 'thematic'); ?></div>
                <?php wp_page_menu('sort_column=menu_order') ?>
    
                <div id="access-search">
                    <form id="searchform" method="get" action="<?php bloginfo('home') ?>">
                        <div>
                            <input id="s" name="s" type="text" size="30" tabindex="1" onblur="if (this.value == '') {this.value = 'To search, type and hit enter';}" onfocus="if (this.value == 'To search, type and hit enter') {this.value = '';}" value="To search, type and hit enter"/>
                            <input id="searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Search', 'thematic') ?>" tabindex="2" />
                        </div>
                    </form>
                </div>
    
            </div><!-- #access -->
    <?php }
    add_action('thematic_header','search_access',9);
    
    ?>
    

    I found this code on a site by doing a Google search. I'll bet this it the problem isn't it? Here is the site where I found this code and instructions:

    http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/

    As far as I can tell or remember, anything else that I did with the Power Blog child theme was done using CSS styling and by adding styled widgets.

    Posted 9 years ago #
  12. OK remove all of this:

    function childtheme_menu_args($args) {
        $args['show_home']  = 'Home';
    
    	return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args', 20);

    and

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    function childtheme_menu_args($args) {
    $args = array(
    'show_home' => 'Home',
    'sort_column' => 'menu_order',
    'menu_class' => 'menu',
    'echo' => true
    );
    return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');

    Also search for this:

    <?php wp_page_menu('sort_column=menu_order') ?>

    and replace that line with this:

    <?php 
    
    	    	if ((function_exists("has_nav_menu")) && (has_nav_menu(apply_filters('thematic_primary_menu_id', 'primary-menu')))) {
    	    		echo  wp_nav_menu(thematic_nav_menu_args());
        		} else {
        			echo  thematic_add_menuclass(wp_page_menu(thematic_page_menu_args()));
        		}
    
    	    	?>
    Posted 9 years ago #
  13. Gene,

    You are absolutely BRILLIANT!

    At least from where I'm sitting. Everything is back just like it's suppose to be.

    Thank you so much, for all your time and effort. It is beyond appreciated. :)

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.