Forum Replies Created
-
In reply to: Integrating to WP has broken the static front page
Thanks for the input. I’m pretty sure I’m off in the wrong direction, I’m just trying to dig through what the WP and BB code are doing under the covers so that I have a better understanding of where this problem is coming from. It’s simply the analytical part of me wanting to understand the whole system.
As for why, I am currently calling a few bbpress functions from my wp pages.
I’m actually reviewing what I’m using now to see if I can just eliminate the use of the bbpress functions on the WP pages. I think I can probably just eliminate the need (at least for now).
That said, I still want to dig in and get to the bottom of this. It seems like there should be a really easy answer for this (btw — I don’t think it’s the 404 problem from the other thread you linked).
Thanks again for the feedback. Given I’m doing this on my own time, I may not get back to it for a while (I have funded development to finish for work). I’ll post back when I have a chance to re-review this.
In reply to: Integrating to WP has broken the static front pageMore details for those who are interested (still no resolution):
With the bb-load.php removed from wp-config.php, I get the following do_action calls up to the point where I can see that the page ID of the front page has been correctly loaded.
plugins_loaded
sanitize_comment_cookies
set_current_user
init
widgets_init
posts_selection (at this point the page ID is set correctly).
When I put the bb-load.php back into the wp-config, I get the following:
plugins_loaded
sanitize_comment_cookies
set_current_user
init
widgets_init
bb_options_loaded
bb_underscore_plugins_loaded
bb_plugins_loaded
bb_get_roles
bb_get_current_user
bb_init
bb_send_headers
posts_selection (and at this point the page ID is wrong)
If any one has any insight as why including the bb-load.php would cause word press to load page id zero as the front page instead of the one you have configured in the static page setting, please let me know.
I’m digging through the calls in the WP initialization, and frankly, I’m just not spotting the problem.
Thanks
In reply to: Integrating to WP has broken the static front pageSo I have confirmed that this happens even if I set both bbpress and wordpress to the default themes, so it is definitely not something in the themes I’ve customized.
I really wish I could find the code where wp is determining the post ID of the home/front page as I suspect that is the best place to start trying to tackle this.
In reply to: Integrating to WP has broken the static front pageI was wrong in my previous post. The is_page function is failing in this case, because the post-$ID is different when I include the bb-load.php.
When I have this in my wp-config.php, the system is attempting to load post id 4 which is a posts page. However, when I take this out, it is correctly loading the static page I’ve defined in the Reading Options, which is post ID 2.
Can someone point me to the PHP source in WP where the post ID of the front page is set? I just can’t seem to find it.
In reply to: Integrating to WP has broken the static front pageOk, so I know where the failure is coming from, but I’ve not yet identified the underlying cause.
When I load the bb-load.php in my wp-config.php as above, the wp function is_page fails to report back when an object is a page vs. a post.
I will keep digging, but if anyone has seen/solved this, please let me know.