Skip to:
Content
Pages
Categories
Search
Top
Bottom

Strange Navigation Bug

  • Avatar of Matt082606
    matt082606
    Participant

    @matt082606

    I think the best way to explain this problem is by showing it.

    if you go to http://keepconnectedlive.com you are presented with the homepage of my site. You click on “Members” or any other link on the nav-menu and it takes you to http://keepconnectedlive.com/members so far so good…

    Then however, if you click on HOME or click on the Home Logo in the adminbar the url goes back to http://keepconnectedlive.com/ but the page stays on Members or whatever and you have to click home a second time.

    Also if you are logged in and you are in the “member-pages” and click on home you get the 404 of the home page, and it doesn’t load the stylesheet(I hardcoded it so that it does load the proper stylesheet atleast)

    It’s like some site variables are not updating before the page loads.

    Anyone seen this before?

    Thanks,

    Matt

    P.S. it also happens when going from a member-page clicking on a blog link it will load the 404 of that blogs theme with the wrong stylesheet.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    Well, that’s a unique problem. Never seen that before. I did notice that you are using wpmu 2.6.5 and don’t know what ver bp it is. There were versions of bp that worked with 2.6.5 but RC1 needs 2.7.

    Avatar of Matt082606
    matt082606
    Participant

    @matt082606

    Thanks for the response, the bp version is not RC1, it is 1.0, I am pretty sure that’s not the same thing but it may be.

    I have a very unique group of bloggers and I want to continue to attract folks from this group so I have modified many of the core files that are part of the upgrades to 2.7 and RC1 I probably broke this with one of those mods but I can’t understand how or why. I have too many features with too many hours to risk losing them all… I was hoping maybe someone had seen this.

    For instance when you click to go to a blog this line:

    <?php bloginfo(‘stylesheet_url’); ?>

    will return the stylesheet_url of the page you are leaving not the one that called it from that theme’s header file.

    if I just manually type in the URL and hit enter it loads just fine, I have tracked it to one of these site variables from either do_action or apply_filters:

    do_action:

    $wp_filter, $wp_actions, $merged_filters, $wp_current_filter;

    apply_filters:

    $wp_filter, $merged_filters, $wp_current_filter;

    I’ll have to do some more digging I suppose,

    There’s only been a beta 1, beta 2 and RC1 release (and trunk of course). If you started making your changes on RC1 then at least that’s a slight clue. Since by your own admission you’ve heavily hacked the code around, it is very hard to understand why this might be happening. I think it must be due to one or more of the changes you have made as I’ve never seen this problem before either.

    Do you get anything in your web server’s error log when this happens? e.g. when you are on Members and try to go back to Home.

    Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    Modifying $wp_filter and all those other vars is dangerous. These are wp internal vars that control the flow of function calls when wp does do_action() or apply_filters(). Changing their values can lead to unpredictable behavior.

    Danger Will Robinson.

    If you want to change the sequence of the actions and filters in wp or replace them with your own functions, there is a way to do this. remove_action() remove_filter() and the action priority parameter.

    See: http://codex.wordpress.org/Plugin_API

    Avatar of Matt082606
    matt082606
    Participant

    @matt082606

    I haven’t modified any of that… here is the possible error I am getting:

    [20-Mar-2009 09:26:20] WordPress database error Table ‘my_database.wp_Array_options’ doesn’t exist for query SELECT * FROM wp_Array_options WHERE option_name = ‘siteurl’ made by get_blog_option

    it looks like wp_Array_options should be getting wp_X_options where X = the blogid number. Any ideas where this query would be taking place and why the variable would be an Array instead of just a number?

    I think maybe I might have used a variable somewhere I shouldn’t have maybe if I can do a search for that variable name and check all instances of it I can find where it is being set to an Array instead of just the blog_id.

    Thanks for all your help.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.