-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible WP v4 + bbPress + s2Member Conflict? #321
Comments
Hi Jason, I am running s2Member Pro and bbpress with the default twentyfourteen theme. All was well until the WP4.0 update. Now the text which creates and introduces each topic is missing (hidden from view) from the topic, but all the replies appear below as they should. The topic text and images still exist, I can see it from the admin panel, it is just invisible to the public. My bbpress forums are available for all to read whether logged in or not, but only Level 1 can leave replies or create topics. The (now hidden) topic text is missing for everyone whether they are logged in or not. From what I understand from the bbpress support forum, others running bbpress are having variations of similar glitches when running any membership plugin and this conflict is not exclusive to S2member. I do not write code, nor am I proficient in modifications other than to plop a given string into a file, bestowed by a benevolent developer such as yourself lol. Any insights would be appreciated. I did file a Tech Support ticket at WebSharks under the name Dagny with a link to my site. Great crew you have there. :-) Thanks! |
S2Member is somehow removing the first post of all bbpress topics when Wordpress is upgraded to 4.0. Deactivating S2Member fixes the problem, but that is not really an option... http://bluegrassdaddy.com/forums/ John |
I suspect s2Member as the cause, sorry. I replicated fault with vanilla install of WP4.0 + bbPress + s2Member, all with default settings. Create one forum with one topic, then navigate to the topic - you'll see the bb breadcrumbs and the leave a reply prompt, but no post content. Then disable s2Member, revist the forum and viola! - the topic now displays! |
I have this problem too. It seems a common problem after the 4.0 upgrade and it also seems that disabling s2 works. Here is an example topic: http://www.thewargameswebsite.com/forums/topic/missing-posts/ |
I have a fix for this: Go to the file named content_single_topic.php In the folder bbpress/templates/default/bbpress Put your cursor just before
Paste the following code:
|
johncockman you are a lord. |
Johncockman, you Sir, win teh interwebs today! |
@johncockman That's not really a fix, more a dirty hack; proper investigation and debugging needs to happen before suggesting hacking a file in this manner, also you should advice people not to modify a core file but copy it to the theme to modify. What you are circumventing is the single topic lead template part call which is wrapped in a conditional checking bbp_show_lead_topic() true/false for whatever reason this check is returning false when it ought to be true, why exactly remains to be seen but it's that that one needs to focus attention on. |
Apologies, hack not fix. Until a fix arrives, I am just happy to have my forum working normally. |
A better fix - on a copy of content-single-topic.php in a bbpress folder in the theme- is to find the line: and change it to: Even better than that is to write this as a filter run from functions.php probably until such time as a true reason and solution is provided. This function run from a themes functions file ought to achieve same result:
|
I'd like to thank everyone for their submissions here! They have been very helpful to those of us trying to investigate the issue in the source code of all three applications (i.e. WP, bbPress, s2). I really appreciate the assistance. Thanks! My Research Indicates The Following Issues...So far, I've been able to track this issue back to a change that occurred in WP v4.0, where it appears that the I'm referencing this line in the WP core that was changed in v4.0: http://bit.ly/1xpSGRp In WordPress v4.0, I find the following fragment... if ( isset( $this->query['s'] ) ) {
$this->is_search = true;
} How is this change related to the conflict we see here? bbPress sets the Ultimately, the fact that Another Issue Found During this Investigation...We are also looking at a potential conflict with Some Clarification Regarding
|
…ation is warranted here, along with a possible WP/bbPress bug report regarding the `is_search` flag.
Workaround for WP v4 and bbPress. See: #321 ~ NOTE: A ...
We have implemented a workaround in s2Member that avoids this issue. I also posted a follow-up here in the bbPress forums. I'm hoping the bbPress devs can take a look at the The next release of s2Member will include the workaround implemented by the last commit in this thread. You can look for this to come ASAP (once final tests are completed, perhaps over the weekend or early next week). Until then, please see the "Suggested Workaround" that I (and others) have posted above. Thanks everyone! Next release changelog:
|
👍 |
Closing this issue because we feel like the issue within s2Member has been resolved here. Coming in the next release of the software. However, please feel free to leave comments here if you have anything more you'd like to add. Thanks again! |
This fix went out with the release of s2Member v140909. It's being distributed through WordPress.org, and through the s2Member Pro updater also. Please look for an update notice in your WP Dashboard to arrive shortly :-) |
Referencing this topic at bbPress. http://bbpress.org/?p=151839
The text was updated successfully, but these errors were encountered: