Opened 15 years ago
Closed 15 years ago
#3798 closed defect (bug) (duplicate)
bbPress Group Forums fails installation when defines are missing
| Reported by: | r-a-y | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6 |
| Component: | Forums | Version: | 1.5.1 |
| Severity: | normal | Keywords: | dev-feedback |
| Cc: |
Description
Just encountered this issue where the "DB_CHARSET" define was not defined on a certain WP install's wp-config.php.
So during group forum installation, the generated bb-config.php came prefilled with the following:
define( 'BBDB_CHARSET', 'DB_CHARSET' );
And this generated SQL errors preventing the bbPress tables from being installed.
However, the BuddyPress Forums Setup page says everything is hunky-dory even when the tables were not added to the DB.
Could be an edge-case, but might be good to add proper fallback variables during the creation of bb-config.php.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks like bbPress doesn't really *need* to have a charset; I see a couple lines that look like
'charset' => defined( 'BBDB_CHARSET' ) ? BBDB_CHARSET : falseSo I think we can probably just get away with wrapping our own define() line in if ( defined( 'DB_CHARSET' ) ). Needs testing, though; we may need to fall back on utf8.