Checking the database connection does not involve checking the table prefix. It’s just host, username, password and database name. No tables needed to establish a connection. You have something else going on there, I would guess.
I’m attempting to do an upgrade of bbPress from 0.9.2 and get the following error every time I attempt to access any bbPress pages:
ERROR: Could not establish a database connection
I did some experimenting and found that when I change the table prefix from the one I’ve been using back to the default of bb_, I’m prompted to perform a new installation. The problem with this is that I don’t want to lose the existing contents of the forum.
Any advice or suggestions would be most appreciated.
Thank you, but I have an existing install of WordPress 2.9.2, with all the defaults including database names. I am trying to add bbPress 1.0.2. I have followed the instructions on the bbPress site for integrating, some hints I received on the WordPress forum referring me to How To Integrate BBPress with WP (http://www.bestwpthemez.com/wordpress/how-to-integrate-bbpress-with-wordpress-mu-2062/), and finally your tutorial. Your tutorial was a little out of the problem as it is an instruction set for clean installs. I followed the link on your page to “Integrate bbpress forum with your wordpress setup” and attempted the Fix Admin Access plugin, no go. Where is the wp_usermeta table located?
I still have the same problem.
Thanks,
David
The blank screen is from a 500 Internal Server Error:
[~]$ curl -I conservativecongress.com/forums/
HTTP/1.1 500 Internal Server Error
Date: Mon, 15 Feb 2010 07:51:12 GMT
Content-Type: text/html
Connection: keep-alive
Server: Apache
X-Powered-By: PHP/5.2.12
If you have access to logs you can see what’s going on to cause this. Other possibilities are any plugins you might have active, which would be weird since you just installed, or anything else you’ve modified (template files, .htaccess, plugins, etc.) It doesn’t normally happen on a default installation. If you’ve done nothing but unzip and install the files, then maybe you have a corrupt installation, not all the files were properly uploaded or something.
I used the default kakumei theme to create my own layout and everything works fine except for the following the “post_author_link,” and “post_author_title_link.” No matter what thread I have opened the tags always display the text “Anonymous Unregistered.” (example) I guess there’s sort of code that’s supposed to preface those tags, but I can’t figure out what it is. Any suggestions?
p.s. Don’t let the name fool you, my website is safe for work.
Hey,
I changed this line in my theme:
<p><?php _e(‘Allowed markup:’); ?> <?php allowed_markup(); ?>
.
<?php _e(‘You can also put code in between backtick ([…] ) characters.’); ?></p>
to this line
<p><?php _e(‘Allowed markup:’); ?>
<?php allowed_markup(); ?>`. <?php _e(‘ ‘); ?></p>
And then I got this error on the forum:
Warning: include() [function.include]: Failed opening ” for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /domains/lijstblanco.nl/DEFAULT/bbpress/bb-includes/functions.bb-template.php on line 45
So I changed it back, but the error remains!
Any idea what to do now?
Use a program like Beyond Compare to compare (or “diff”) the default theme versus your custom theme:
http://www.scootersoftware.com/moreinfo.php
That should quickly identify the changes between the two…
EDIT: I must’ve left this comment *just* after you edited your previous comment! Glad it worked out for ya…
It was annoying me that by default bb_title() on the topic page didn’t include the name of the forum in it. I wanted
Topic name < Forum name < Site name
but bb_title() default is:
Topic name < Site name
So I wrote this little plug-in and now I’m happier.
<?php
/*
Plugin Name: Better Topic Titles
Plugin URI:
Description: Add the forum (category) name to the topic title in <title> for the love of SEO!
Author: Phil Thompson
Version: 1.0
Author URI: http://imgiseverything.co.uk/
*/
function better_topic_titles($title){
$separator = ‘«’;
$forum_name = get_forum_name();
if(!empty($forum_name) && strpos($_SERVER, ‘topic’) !== false){
$title = str_replace($separator, $separator . ‘ ‘ . $forum_name . ‘ ‘ . $separator, $title);
}
return $title;
}
add_filter(‘bb_title’, ‘better_topic_titles’);
?>
I’ve not found any issues with using it but I’m sure someone can have a look and improve it; if they think it’s necessary.
Hi, I’m a freelance graphic designer and I love wordpress and I’ve recently started to love bbpress. I’ve been customizing wordpress themes for a while now and I’ve just started getting into bbpress. Since I’ve been using these two so often, I really want to give something back. I don’t really have money or coding skills to contribute, I was hoping maybe I could help by coming up with a shiny cool template/theme that could possibly be included as one of the default themes. I’ve only just begun to figure out theming in bbpress, but I really want to contribute something, and design skills is what I got(i think
). All I’d need is to possibly be informed on new features or functions that I could design for. I could come up with cool mock-ups, and if the community likes it, I could chop it up into a theme.
> I also had someone working on the problem and he can’t find anything on my side.
Well, it’s either the host or your side. If the host can’t find anything, then it’s probably something with your software. It’s not something that happens on a default installation.
WP Super Cache will not help with bbPress at all.
If everything was OK until December, what happened in December? Did you update and software or plugins? Did the host change something you don’t know about? With a hosting company, chances are they watch things like free disk space and RAM, but that’s worth checking into as well.
Can you dump the databases and see how large they are? Maybe a plugin has gone crazy and is just adding tons of data to the database causing access to take longer. There was a recent WordPress (or maybe bbPress) discussion about this, a typo in a plugin causing tons of garbage to be added to the database causing the database to grow huge.
Do you have access to logs? Depending on what you have access to, you might be able to find something interesting in a log.
Do you have the option to turn off plugins and revert to a default theme to see if the problem still exists?
There used to be a plugin called bb-benchmark that would help with this sort of performance thing.
My guess would be that this is a plugin causing a timeout when connecting to the database. What plugins are you using?
Marius,
My friend, no-one is attacking you here. You’re not using the default theme, you’re using a modified theme. I have the default theme and it doesn’t have a picture of Micahel Jackson anywhere (that i can see at least).
Your issue was a CSS issue, because you had placed attached your CSS code to the wrong DIV for what you were wanting to achieve. It’s nothing to do with BBpress, honestly mate, the issue was a CSS issue with CSS code that you added when you didn’t know what you were doing. A CSS website would make a world of difference to you and your knowledge and ability to edit the themes. I’m not saying that to be cocky, i’m saying it to give you the tools to do these things yourself 
When Im asking specifically for location of a code, in the DEFAULT THEME that comes with BBPress, the best place to ask is of course BBPress own forum
That’s the key thing here mate, you were not asking that. You maybe thought you were, but the code that was wrong was in your CSS file, that you added – that’s nothing to do with BBpress.
Given that it was your 2nd thread and your 4th attempt at asking for this solution in under 24 hours, I tried to help out – i gave you the simplest answer because your understanding of CSS was limited . You didn’t understand the simple solutions presented, that’s your web development knowledge, nothing to do BBpress.
No-one is paid to be here matey, we’re all doing this because we want to help BBpress grow
But that doesn’t mean we have to be at your beck and call for real time support, nor does it mean that we have to answer basic web design/development questions that don’t have anything to do with BBpress. I’m going to leave this here, clearly we have different opinions, and that’s cool – but for your sake mate, not mine, learning a bit of Web Development skills will make your BBpress life alot easier.
Take care
When Im asking specifically for location of a code, in the DEFAULT THEME that comes with BBPress, the best place to ask is of course BBPress own forum. Ask the makers, not the interpretors.
@Gautam
I’m admin / it’s my own site and can not save attachments. The restrictions are default
And even when i set them all (except for delete) to “read” it still doesn’t work, all is in order / folders are 777 and so on. Deactivated / Reactivated plugin no go for me
Take a look at the DirectoryIndex here:
http://www.thecollegehunt.com/avatars/
This file comes up fine when you click on it:
http://www.thecollegehunt.com/avatars/default.png
This one gives a 403:
http://www.thecollegehunt.com/avatars/suresh.jpg
The permissions or ownership between those two files are different. default.png is fine. Be sure your other images have the same ownership and permission and it will work.
I’m assuming your bbPress forums folder is on a separate domain than the buddyPress install? It’s not in the ‘default’ /forums location, right?
Correct, standalone bbPress is installed on a subdomain (forums.mydomain.com) and obviously the group forum is activated within buddypress (mydomain.com/forums) as well. All share the same bb tables; so group discussions can be carried on via a more direct forum feel with extra bells and whistles.
How the heck have you gotten BuddyPress’s activity stream to work with an external bbPress install?
There is a plugin for BuddyPress called bbGroups (uses xmlrpc) but is outdated. I had to update the code for 1.2 due to the activity stream changes. (and i need to update once more since 1.2 RC1) – the XMLRPC is not ideal but does carry over the hidden/read-only and who has access. (i’d probably code it to access the db directly – but it works for my testing)
Seems redundant to have 2 forum interfaces but this allows “outside” forums which may not be appropriate for setting up a group.
But at some point BuddyPress 1.2 now expects the dates in GMT while standalone bbPress 1.0.2 must insert the timestamp on a topic/post differently. (I just haven’t had the time to sift over the code to figure it out yet)
@etiviti:
Glad you brought this up. How the heck have you gotten BuddyPress’s activity stream to work with an external bbPress install? (I’m assuming your bbPress forums folder is on a separate domain than the buddyPress install? It’s not in the ‘default’ /forums location, right?)
I’m been unable to get the bbPress activity to show up in the BuddyPress activity stream even when the bbpress install is located in the /forums location.
This whole ‘groups’ vs. ‘forums’ thing is driving me nuts.
Grrrr…when people post questions about bbPress working with BuddyPress on the BuddyPress forum it seems like they always send up back here!
This should be in bbPress by default, the ability to upload your own avatar picture.
I know you can achieve this via plugin, but honestly, it was a nightmare for me to get this working.
Any webmaster that isn’t really tech savvy or doesn’t have the time to figure this out, will just leave it.
Hello Chrishajer,
I checked php info by above mentioned method.I found no temp folder so I created a folder called “tmp” in root directory.It worked.Now I am able to upload avatars to “avarars” folder in root directory.
But picture is not displayed after uploading.It gives message “Your avatar has been uploaded.” But its not displayed instead a blank box is displayed replacing default avatar.
I checked this error in google chrome by using “inspect element” context menu..the error says: ” 403 Forbidden “
Here is the link to plugin I am using : https://bbpress.org/plugins/topic/avatar-upload/#post-219
Plz help !!
Are you using any plugins?
Have you tried with the default theme?
Something is wrong with your theme if it works with the default theme. I’m sure if you look carefully you will find it.
I’ve updated my bbPress to 1.0.2 and I’ve noticed I can’t update my user profile anymore. On default theme, there there’s no problems, but on my custom theme problems do exists. More than that, I can’t see administration section in profile edit, but on default theme I do see it.
What have changed since 1.0.0 that might caused such problem? I can’t see any different things in default theme that would be missing in my custom theme…
I installed the plugin, deleted the table … then walked through rebuilding the database from what I saw in the code. The following SQL is an export of my bb_bbpm table direct from mySQL. If you run it, you should get PMs back up and running.
CREATE TABLE IF NOT EXISTS bb_bbpm (
ID bigint(20) unsigned NOT NULL auto_increment,
pm_title varchar(100) collate utf8_unicode_ci NOT NULL,
pm_read tinyint(1) NOT NULL default 0,
pm_from bigint(20) unsigned NOT NULL,
pm_to bigint(20) unsigned NOT NULL,
pm_text text collate utf8_unicode_ci NOT NULL,
sent_on int(10) NOT NULL,
del_sender tinyint(1) NOT NULL default 0,
del_reciever tinyint(1) NOT NULL default 0,
reply_to bigint(20) unsigned default NULL,
thread_depth int(10) unsigned NOT NULL default 0,
pm_thread bigint(20) unsigned NOT NULL,
PRIMARY KEY (ID),
KEY pm_to (pm_to,pm_from,reply_to),
KEY pm_thread (pm_thread)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;
@petroski. Those my-templates and my-plugins folders are needed, it’s where you put your templates and your plugins (not the ones included with bbPress.) As I mentioned, they are being created with incorrect permissions and that issue has been resolved in ticket #1139.
They didn’t used to get created on installation, you had to create them yourself. Then they were being created but with the wrong permissions (0750 by default.) Now, after ticket #1139 is resolved the directories will be created with 0755 permissions. You need them if you want to install any plugins or use your own template.
Great feedback, thanks!
I’ll modify the plugin so that if you’ve already voted I’ll have it take away the voting link.
I’ll also look at writing out a list of who has voted “thanks”, but by default that output will be turned OFF. You will need to enable it via the admin interface.
Is anyone running this plugin on the 0.9 branch of code? I see no reason why it shouldnt function, but someone has asked if it does. If someone can give me a yes / no on that I’ll amend the “Requires version” tag accordingly.