I have isolated the exact post content that causes the BBCode::Parse to hang. I can’t post the original content, but I made this version replacing the text with lorem ipsum, and it also hangs:
$field =<<<EOD
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla dictum ligula sit amet massa condimentum gravida. Quisque qutris imgdper diet dolor. Nulla quis ante id elit lacinia commodo. Maecenas convallis felis at libero fringilla, feiat.<br><br><br><i><b>[EDIT: Aenean aliquet velit est, ac sodales "tortyor aliquoam vitae" urna sit amet dui rutr "OpenGL Uiot" Tenentis in faucibus orci luctus et ultrices posuere cubilia Curae Donec fringilla velit non too much
EOD;
If you remove the words “too much” from the end then it parses ok.
This is the full code that I put into a theme page template to run this test in isolation:
echo "<h2>Begin the parser test</h2>";
require_once( WP_PLUGIN_DIR . '/bbpress/bbpress.php' );
$field =<<<EOD
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla dictum ligula sit amet massa condimentum gravida. Quisque qutris imgdper diet dolor. Nulla quis ante id elit lacinia commodo. Maecenas convallis felis at libero fringilla, feiat.<br><br><br><i><b>[EDIT: Aenean aliquet velit est, ac sodales "tortyor aliquoam vitae" urna sit amet dui rutr "OpenGL Uiot" Tenentis in faucibus orci luctus et ultrices posuere cubilia Curae Donec fringilla velit non too much
EOD;
require_once( bbpress()->includes_dir . 'admin/parser.php' );
$bbcode = BBCode::getInstance();
echo html_entity_decode( $bbcode->Parse( $field ) );
I can only suggest that you go back to
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
and then come back.
Fresh install of the latest bbpress and wordpress 4.1 – theme powermag 1.8.0
When someone posts, the first post layout is fine. Any reply after though, the avatar and name is at the bottom of the screen?
http://www.wisbechtownfc.co.uk/forums/topic/wednesday-at-histon/
I checked it with live preview on twentyfifteen and its fine, perhaps I can override the them of just the forum ?
any help would be appreciated
@julianms so your issue is its hard to customize the Markdown plugin??
and you tried to see if you could customize it in the bbPress templates??
and you want to use Latex language in bbPress , i can test out some plugins in a minute and see how that works out.
but yeah the first two questions i’m not sure i had right it was pretty hard following your reply, you put a lot of personality in it.
After updte, topics are not display… Any advice?
please test
This is theme related, to prove as a test switch to a default theme such as twentytwelve, and see if this fixes.
I suggest you start with the theme author and see if he can suggest how to fix.
Most of the answers in google suggest that it has something to do with the browser, however, when i switch to firefox, it said “the connection is reset”, so i don’t think it is the browser’s problem.
After some test, I think it has do to with the content, because when i use other longer content, i am able to publish it, but when i use the original content, the problem occurs.
So here is the content i am going to publish:
Hi everyone,
We are so excited to announce the beta version of our new website is published!
Currently the website can direct viewers to our Amazon stores, and will tell visitors about our website.
Sure the website at this moment has many flaws, but we will do our best to improve it, making sure our visitors have a pleasant experience when browsing our website. And we also need your feedbacks to improve our website.
Looking forwards to hear from you soon!
Regards,
*****(company name, will not affect the results even after deleted)
Thanks so much @korobochkin for sharing this in such detail! I’m going to test this out from start to finish on a 100% fresh bbPress, multi-site setup over the next few weeks. I’m thinking this is ‘finally’ a rock-solid sol’n to managing bbPress on multi-site, particularly in situations where the root site has no obvious visual/branding/etc relationship to the other sites on the network.
This sol’n looks very solid, much better than what I was previously doing with the Login With Ajax (lwa) plugin, wp-members (plugin) & hard-coded redirections (which while worked, seemed very ‘hacky’) & would not work with the [bbp_register] shortcodes, etc.
Thanks again Koyla!
-Jeff
it worked when i just tested it on my local development area.
see if its a plugin issue
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
see if its a plugin or theme issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
ok, lets break this down
A)
I was having trouble with a theme so I deactivated and reactivated bb press, since then all my “private” forums take me to a 404 page
and
However all the pages which I embedded the private forums via shortcode are still working
Can you explain further where you can and cannot see forums?
1. Are they visible from the backend
Dashboard>forums>all Forums and then ‘view’ a forum
2. On the ‘the pages which I embedded the private forums via shortcode are still working ‘ – so you can view here – yes?
3. when is the 404 page occurring – is it just the forum root page, and if so are these being listed but going to 404 when you click.
B) I presume you are logged on, at what level and can you try different levels eg participant, moderator and keymaster and tell us if this is different or the same.
c) You don’ tell us what trouble you were having with the theme, so it would be good to eliminate this and plugins so
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
Hi everyone,
I installed bbpress on my company’s website, and when i tried to create new topic like what i am doing here, the brower will return “no data received” error, and if i click more information, i found the error code “ERR_EMPTY_RESPONSE”.
I’ve tried to deactivate most of the plugin except bbpress, and the problem remains.
And if I type something short, like “test”, it can be created.
Does this has to do with the usage of server space? Because I used about 80% of it.
Thank you in advance for your help. Please let me know if you need more information
ok,
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
see if its a plugin or theme issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
Forums are stored in the database, so you will not find them using ftp
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
test this out cause im not entirely sure , but install jetpack if you havent already on your site and download the WordPress app from Google Play and connect your self hosted WordPress site to the app.
can you see any settings for bbPress in the app dashboard?? like settings>forums??
just so you know this only allows you to manage your site from the dashboard in the app, nothing frontend. If you want a custom app i highly recommend Apppressor.
if you feel like you need to hire a developer go to http://jobs.wordpress.net/ or any other freelance website for custom development.
great – glad it’s working.
I did have an alternate faster solution which worked fine on my large test site UNLESS you hit the breadcrumb search after doing a search, when it ran out of memory! Go back to search via any other route and it was fine ! I’m still seeing if I can crack the issue with that (lots of resets) so I might come up with a faster solution.
Let us know how you get on.
If I don’t find a better solution in a few days, I’ll take that one live so that you get further updates via the usual route.
Thank you so much and sorry.
Seems like the auto close (I tested it for -1 days) worked. Now I’m testing that it close the topic only in the ‘Announcements’ sub-forum and not everywhere else. I’ll let you know tomorow since it takes a day :l
@geeorgegeorge
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
then come back
I’m looking for a very basic scrolling Latest topics like there is on forumotion forums, does anyone have any good plugins they would recommend to use with bbPress?
Hope you haven’t forgotten anything else !
ok edit
$last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) );
if ($last_active < strtotime( '-10 days') )
bbp_close_topic( $topic_id );
to
$topic_date = strtotime( get_post( $topic_id, 'post_date', true ) );
$forum_id = bbp_get_topic_forum_id($topic_id);
if ($topic_date < strtotime( '-10 days') && $forum_id == 210 )
bbp_close_topic( $topic_id );
the $forum_id == 210 needs the forum id of the forum you want to restrict.
to find this, go into
Dashboard>forums>all Forums and hover of edit of the forum you want – eg hover over edit ‘announcements’ and look in the bottom right of the screen. you’ll see the edit url that will include post=210 or whatever number.
You’ll need to test that all the above works, and come back if you need further help
Ah — thank you so much, I should have thought of that first thing. I did as you recommend, and the bug appears to be caused by the bbP Private Groups plug-in. When I de-activate it, I get the full results count (174 on my test) with pagination, as desired. I’ve got an inquiry in with that plug-in developer and hopefully I’ll get a fix, as the site members depend on the private groups function. Thank you again!
In the Latest and Popular topics:
http://www.carfanaticsforum.com/view/latest-topics/
Is there a way to make the topics that have not been read bold, and the ones that have been read unbold? That way our users know which one they have clicked on and which ones they haven’t?