Forum Replies Created
-
I resolved this problem by adding “./” to the file names “admin-header.php” and “admin-footer.php” in the file /bbpressforumname/bb-admin/includes/functions.bb-admin.php. They appear on lines 6 and 13 of that file. The modified version of the first 14 lines of the file should read…
<?php
function bb_get_admin_header()
{
do_action( ‘bb_admin-header.php’ );
include( ‘./admin-header.php’ );
do_action( ‘bb_get_admin_header’ );
}
function bb_get_admin_footer()
{
do_action( ‘bb_admin-footer.php’ );
include( ‘./admin-footer.php’ );
}
perhaps this could be added as a bug fix for 1.0.1.
In reply to: bbPress new ThemeDear talkaboutd,
It looks great. The only recommendation I would make is that the Login and Logout tabs be fused into one. If you are logged in, it shows the word Logout. If you are logged out, it shows the word Login. Anyway, great job.
In reply to: Cannot select DB.THE PROBLEM: When running the install.php file, you get a “Cannot select DB.” error. On the Mac OS X 10.4.x intstallation, php works, mysql works, but php cannot access mysql databases.
THE SOLUTION: Change the line
define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
to
define(‘BBDB_HOST’, ‘localhost:/tmp/mysql.sock’); // 99% chance you won’t need to change this value
Then it works. There are other solutions to this problem, but this is the simplest and does not change the configuration of your system. It seems like mysql.sock has changed directories in one of the Tiger (10.4) updates.
I hope this helps someone.
In reply to: Cannot select DB.When I did the same setup on another computer, I was able to successfully install bbpress! Finally, I got it to work. I just do not know what was different. I guess I will have to go back and see why the first system would not allow it to install properly.
In reply to: Ultimate BBpress GuideDear astereo,
Great guide! One thing I would add, however, is what to do when there are errors, ie troubleshooting. For some reason I get stuck at the install.php file telling me “Cannot select DB.” This is despite the fact that I have followed the directions you mentioned (and those included on this website) to a T and have successfully installed WordPress, phpBB, and other php/mysql web programs with no problem. Also it seems like the member n2 is having the same problem. If the solution is found to this, perhaps it could be put in your ultimate guide, so that others do not fall into the same trap. Thank you.
In reply to: Cannot select DB.Dear mdawaffe,
I changed the domain and path like you said. I do not know what the mysqli extension that you are talking about is, so I doubt I have installed it.
But, just in case, I followed your advice for replacing the mysqli.php file with the db.php file. In other words, I removed bb-includes/db-mysqli.php for safekeeping. I made a duplicate of bb-includes/db.php and renamed the duplicate bb-includes/db-mysqli.php.
However, I still get the error “Cannot select DB.”
Any other ideas?