You can make my bb-benchmark work on WordPress with a few changes.
Most notably you’d have to add the line:
add_action('wp_footer', 'bb_benchmark_output',999);
if (bb_current_user_can( 'administrate' ) )
you just have to take off the bb_
part and make it current_user_can
Oh and all $bbdb
has to be changed to $wpdb
It won’t be able to calculate the timing between sections until all the hook names are added which unfortunately I don’t have the time right now to lookup. But it will still show you overall times and mysql queries.
You are getting an error with admin_email
because in bbPress 0.9 they decided to change it to from_email
with no support for the old variable (bad move). That plugin obviously never got updated.
by the way (and perhaps off-topic) : is there a benchmark plugin for wordpress ? can’t seem to find one in the plugins directory for wp
tx
That’s better but your query counts are still too high.
Way too high.
You could post the list of queries from bb-benchmark here and I can take a look at what’s causing that.
eAccelerator is probably the way too go.
It’s a tad slower than Xcache but it’s far more stable.
Assuming you are using a 2ghz+ cpu that is only lightly loaded, you should be seeing page render times around 100ms on an optimized setup with proper mysql and php opcode caches.
have a look at the forum now (http://forums.corelan.be:8800)
runs a lot faster now, doesn’t it ?
I have made a couple of changes to the php.ini file :
register_long_arrays=off
output_buffering=4096
variables_order = “GPCS” (still need to verify that this doesn’t break stuff)
disabled
engine=on
closed & saved the file, and php runs must faster now
(windows 2008, IIS7)
Also, one of the plugins that I’m using (EnhancedRegistration) was reporting repeated errors in my php log file
“bbPress ER: Failed to send report”
I looked up the function, replaced the bb_get_option(‘admin_email’) with a static email address, and now the errors went away as well
Not sure whether this has improved the code as well, but it certainly couldn’t hurt, could it
wtih regards to the opcode cache : what would you recommend using ?
Your front page is now showing 56 queries which is excessive. Something is very wrong there too. I’ll know more after I see what plugins you have installed.
By the way, even when we fix the plugin problem, your setup could benefit greatly from a PHP opcode cache (eaccelerator, xcache, APC, etc.) We just have to find one that’s compatible with Windows and IIS which will take some research. It should cut your page times in half, on both bbPress and WordPress.
Here’s one possibility:
http://www.sitebuddy.com/PHP/Accelerators/eAccelerator
That site has pre-built windows binaries for eAccelerator as well as good install directions.
Give me a list of what plugins you are using and I’ll guess at the culprit.
If you are using firefox you can copy just the column of the plugin names from the admin menu by using control-click on the table cells.
update : benchmark results :
total page time: 5.3 seconds.
time to reach each section:
bb_underscore_plugins_loaded = 0.172
bb_plugins_loaded = 5.210
bb_init = 5.211
bb_index.php_pre_db = 5.215
front-page.php = 5.217
header.php = 5.220
logged-in.php = 5.247
footer.php = 5.298
so apparently one of the plugins takes a long time to run
how can I find the plugin without having to disable all plugins ?
this is a dedicated host, running at home – no option to move it because of too much integration with other stuff…
I have full access to all components
anything I can do to get you more info ?
Do not use the move-it plugin until it is radically updated.
There is no proper way to split/merge topics because it would affect many plugins which track things based on the topic id.
Since bbPress never had action hooks for split/merge, all plugins in existance are ignorant of such changes happening and you risk corrupting your forums.
Split/Merge is on the agenda for bbPress 1.5, so maybe a year from now it might be possible. But again, all plugins that store tracking information on topic id’s will need updating, including a dozen of my own.
So yes, you could manually do it, or even force it via move-it, but you will break your forum sooner or later.
Are you on a shared host or do you have access to the mysql cache and adding PHP modules?
Install bb-benchmark and tell me how long it takes for a page to render.
update: I found your forums and you’re correct, there is definitely something wrong:
10.275 – 24 queries
There is probably a configuration issue with your server.
Let me know if you have root access. It’s going to be difficult to help because you are on Microsoft IIS 7.0 but I’ll see if there’s anything we can do.
ps. are you running this on your home computer?
If so, consider moving your hosting setup to xampp, though it still might be remotely possible to install eaccelerator with your IIS configuration.
Hello,
I have been running wordpress 2.6.x and bbpress 0.9.0.2 on the same server
While wordpress (with many plugins) runs pretty fast, my bbpress forum appears to be very slow
Even without plugins, I had the impression bbpress runs much slower than wordpress (with plugins)
How can I troubleshoot this ?
thanks
I have an “admin!” link, an “Admin” link and then a “Log Out” link. When I finished installing bbPress, I got the following message:
“Once you have finished installing, you should visit the WordPress integration section of the bbPress admin area for further options and integration instructions, including user mapping and the correct cookie settings to add to your WordPress configuration file.”
The only thing that I can see that I can do in the Admin area is to add a new topic. I don’t see anything like what was described in the message.
Lastly, how do I place a http://www.site_name.whatever/forums/ link to the forum next to the pages links in the header and footer of my WordPress site? I tried placing it next to <?php wp_list_pages(‘title_li=&depth=1’); ?> but then everything went blank on the site.
Cheers
The WordPress table prefix is wp_ – when you enter that for the user database table prefix, bbPress will modify that WordPress table so that bbPress and WordPress users are both stored in there.
Hi,
I am in the middle of the install of bbPress (latest alpha as of today) and I get asked for the user database table prefix. Looking at my wp-config.php file, all I see is the following:
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!
Does that mean that I don’t have a WP user database table? What do I need to do? This is my first site and I don’t have any users yet except myself as admin – translation: I am an extreme newbie and just want to get the rest of this install finished.
I am using WordPress 2.6.3
Cheers
I am using 1.0alpha2 bbPress without WP integration. Users are unable to save the edits to their profile. When clicking Update Profile it only reloads the page without saving the new details. Any ideas?
I’ve now made the early 0.0.1 alpha public:
https://bbpress.org/plugins/topic/openid
In my 0.9.0.2 installation, in the file bb-templates/kakumei/rss2.php, it’s most definitely line 19. Not sure why yours does not contain this line. See screenshot here.
http://www.chrishajer.com/bbpress/rss2.png
Here’s the original file:
https://trac.bbpress.org/browser/branches/0.9/bb-templates/kakumei/rss2.php#L19
I looked in the bbOrg template and know there is no file there. So another theme is overriding it. In my installation, that would be the stock kakumei theme.
There is no other mention of php post_author in Kakumei (except for threadauthor stuff in post.php) and certainly no mention in the BBOrg template. Something in the rss.php in the core BBPress files must be overriding the change in the template.
Anyone willing to give an early version a test for compatibility?
There is no account creation feature yet but you can attach OpenID identities to any existing account, and then login with the OpenID instead of your regular bbPress login (the regular login remains intact).
I’ve had the same problem and have also “fixed” it by disabling the Allow Images plugin.
I’m going to give the BBcode plugin a go, though if bbPress isn’t going to implement a rich text editor (and I don’t think it should) then a far better solution would be to use a lightweight markup system like Textile and/or Markdown.
WordPress built-in RSS widget. I realized I was pulling the wrong feed..should have actually read what you were asking me earlier..
I wanted http://beernews.org/bbpress/rss/topics but was pulling http://beernews.org/bbpress/rss/ instead.
I would like the option to use either though and posts feed (2nd one) is still pulling the author. I have the rss2.php file open but am too exhausted to think. Will re-visit in AM.
I’m using wordpress 2.6.3 and just upgraded my forum to 1.0-alpha-2 integration works perfectly by following the docs to the letter. The first time I upgraded I didn’t manage to make the integration work the main reason probably is because I just copied the bb-config.php from my old installation. This time I deleted it and do the install again, I put all my database information and just follow the prompts it will detect that bbpress is installed then proceed with the database upgrade. Just make sure that settings for your bb-config.php and wp-config.php are the same for AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY’ under the bbpress integration menu in the admin panel also make sure that the “auth” = “auth_salt”, “secure auth”=”secure_auth_salt”, and “logged in” =”logged_in_salt” in WordPress /wp-admin/options.php are the same.
The only issue I found is that when i logged out in either bbpress or WordPress i’m still logged in on the other. Probably a cookie issue i’m not sure though, so I have to logged out manually from both.
–Update: After additional testing I found out that when I logged in using WordPress I can only logged out completely using WordPress logged out meaning I am logged out both from bbpress and WordPress. Same with bbpress if I logged in using bbpress I can logged out completely by using bbpress logged out. If I use WordPress login I cannot logged out from bbpress by using bbpress logged out but can completely logged out if I use wordpress logged out. If I logged in using bpress, I can logged out in WordPress by using WordPress logged out but I’m stil logged in in bbpress so if I want to logged out completely I have to use bbpress to logged out completely.