Search Results for 'bbpress'
-
AuthorSearch Results
-
December 17, 2007 at 11:45 am #60928
In reply to: DB access problem in the first installation step.
livibetter
Member745 is not for fixing unix socket connection.
Try this: https://bbpress.org/forums/topic/cannot-select-db-error?replies=11#post-12434
December 17, 2007 at 11:07 am #60927In reply to: DB access problem in the first installation step.
Asbjørn Ulsberg
MemberThere is still a set of problems with this. The value of
$this->$dbhnameisn’t checked before it’s used inmysql_get_server_info()on line 75 indb-mysqli.php. If the connection fails, the error won’t be echoed to the user because the use of@on themysql_connect()call and then the script just continues, assuming the connection went fine, which in my case, it din’t. Also, the call should be tomysql<b>i</b>_connect()and notmysql_connect(), as far as I can understand.The patch doesn’t fix these problems and they need to be fixed for bbPress to work on my host. I’d write these comments on the associated ticket, but there doesn’t seem to be any way to register or comment anonymously there.
December 17, 2007 at 10:41 am #60854Asbjørn Ulsberg
MemberI have the same problem and overwriting
db-mysqli.phpwithdb.phpdidn’t help. Just for completeness, here’s the error messages I encounter:Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/<snip>/bbpress/bb-includes/db-mysqli.php on line 73I suspect bbPress of having hard coded a connection to
localhostand thus configuringdefine('BBDB_HOST', '...')to be something else thanlocalhostdoesn’t really matter. I don’t have MySQL and Apache installed on the same physical server, so I have to access MySQL through a hostname and thuslocalhostwon’t work.December 17, 2007 at 9:09 am #60926In reply to: DB access problem in the first installation step.
Sam Bauers
ParticipantThe very latest trunk [988] is a little unstable.
You are better off with [980] the zip download of [980] can be found at the bottom of the following page:
December 17, 2007 at 6:38 am #60925In reply to: DB access problem in the first installation step.
chrishajer
ParticipantI hope there’s a new release soon as well, but it doesn’t look like a date has been set yet?
https://trac.bbpress.org/milestone/0.8.4%20%26%20Pings
raygene: you can always download the latest development release which generally has all the discussed patches applied:
https://trac.bbpress.org/changeset/988/trunk?old_path=%2F&format=zip
There is always a link to the zip archive at the bottom of the trac browser.
December 17, 2007 at 6:26 am #62069In reply to: Installation woes
chrishajer
ParticipantWhy is your bbPress calling a WordPress function?
wp-includes/functions.phpIs there more to your setup than it appears?
Actually, I just went to your forum and it is working?
December 17, 2007 at 5:31 am #2711Topic: Installation woes
in forum Installationhapikar
MemberHello,
I have installed bbPress and it’s working all except for this fatal error im receiving.
Fatal error: Call to a member function on a non-object in /var/www/vhosts/hapikar.com/httpdocs/wp-includes/functions.php on line 1491
December 17, 2007 at 5:13 am #61876In reply to: Limiting RSS Feed to First Post Only
livibetter
MemberIs this close to what you want? Topic Feeds
If so, just be patient.
December 17, 2007 at 4:15 am #61875In reply to: Limiting RSS Feed to First Post Only
Doobus
MemberAfter all my slicing and dicing with bbPress, I’m finally coming close to completing everything, except one thing. This RSS thing is really killing me
. I’m wracking my brain trying to explain this the best way possible. So here I go. Each forum has a feed, how do I only show the topics in the feed? As it stands right now, the feed is showing the replies as well, I just want topics to show.
Sorry for sounding redundant, but I’m desperate >_< to complete. Thanks in advance.
December 16, 2007 at 11:22 pm #62054In reply to: Having trouble integrating WP functions
livibetter
MemberThe workaround won’t work for plugins.
@sambauers: I think there is no complete working solution if you don’t touch the core files.
First, load_default_textdomain and load_plugin_textdomain are WordPress version, they only look language files in WordPress directories. So, in bbPress, all text won’t be translated since language file are not loaded because WordPress load_*_textdomain won’t find language files in bbPress’ directories.
Second, WordPress and bbPress both use
defaultas textdomain when calling __() or _e() without assigning textdomain, that means we can only use either WordPress’ or bbPress’ language files at the same time, not both.(edit: plugin’s problem can be solved by add a bb_load_plugin_textdomain, but bbPress’s part. If we don’t want to use something like bb__(), bb_e(), maybe we can try to merge bbPress translations into WordPress’ in runtime? or search bbPress’ first, then WordPress’ if can’t find)
December 16, 2007 at 11:16 pm #52695In reply to: Plugin: [REL] Signature
citizenkeith
ParticipantRunning the latest version of bbPress and the latest version of ck’s plugin.
Signatures won’t update when you try to change them in Edit Profile. No error messages to be found.
December 16, 2007 at 11:11 pm #62052In reply to: Having trouble integrating WP functions
livibetter
MemberSorry, didn’t read bbPress source carefully. Replace first if clause with
if ( defined('BBLANG') && '' != constant('BBLANG') ) {
if ( function_exists('load_default_textdomain') ) {
global $l10n;
$locale = BBLANG;
$mofile = BBPATH . BBINC . 'languages/' . "$locale.mo";
if ( is_readable($mofile) ) {
$input = new CachedFileReader($mofile);
$l10n['default'] = new gettext_reader($input);
}
}
else {
include_once(BBPATH . BBINC . 'streams.php');
include_once(BBPATH . BBINC . 'gettext.php');
}
}PS. That “..” is how you put variable to be parsed in string in PHP ( Variable parsing )
December 16, 2007 at 11:01 pm #62049In reply to: Having trouble integrating WP functions
Sam Bauers
Participantstreams.php and gettext.php are just libraries, so if they are loaded by WordPress, then they don’t need to be loaded again. Although “include_once” should take care of that.
The problem with the language file not loading is because of the next couple of lines. They say that if WordPress is loaded not to load the kses.php and l10n.php files. This means it is looking for yor language file for bbPress in the same place as the WordPress language file.
It’s possible (but I don’t know enough about how gettext works) that just dropping the bbPress mo file into the same place as the WordPress mo file will work… just call the bbPress mo file bbpress-de.mo or something like that.
I think someone solved this before… search a little harder through the forums I think.
December 16, 2007 at 10:51 pm #62045In reply to: Having trouble integrating WP functions
livibetter
MemberThis is a quick workaround:
if ( defined('BBLANG') && '' != constant('BBLANG') ) {
if ( function_exists('load_default_textdomain') ) :
global $l10n;
$locale = BBLANG;
$mofile = BBLANGDIR . "$locale.mo";
load_textdomain('default', $mofile);
else:
include_once(BBPATH . BBINC . 'streams.php');
include_once(BBPATH . BBINC . 'gettext.php');
endif;
}
if ( !( defined('DB_NAME') || defined('WP_BB') && WP_BB ) ) { // Don't include these when WP is running.
require( BBPATH . BBINC . 'kses.php');
if ( !function_exists('load_default_textdomain') )
require( BBPATH . BBINC . 'l10n.php');
}It should drops WordPress’ language file, and replaces with bbPress’. That means translations need to be done in WordPress won’t be translated since this code drops language file. This wont happen when you read your blog. However, I don’t have any language files, so this is coded by guessing.
This is not a solution, just a temporary fix. I will file a ticket.
December 16, 2007 at 10:51 pm #62046In reply to: Having trouble integrating WP functions
ixray2
MemberWell, basically all of them, including plugins. I want to use my WP header, sidebar etc. and I am planning to build some custom functions that make use both of WP and bbPress functions. So I really do need integration.
Did you find out anything on what exactly is causing the hick-up?
December 16, 2007 at 10:40 pm #62044In reply to: Having trouble integrating WP functions
livibetter
MemberI think this needs to change bbPress core and even WordPress’.
What’s the WordPress function that you are planning to use?
December 16, 2007 at 9:55 pm #62040In reply to: Having trouble integrating WP functions
livibetter
MemberThen, you should trace in bbPress’ code to find out where causes an exit.
BTW, you can also test
error_log(get_option('blogname'));to make sure WordPress loaded database correctly.PS. debugging with no debugger is a crazy thing. You have to guess by experiences for best shot.
December 16, 2007 at 9:40 pm #62038In reply to: Having trouble integrating WP functions
livibetter
MemberI don’t have any clues to solve you problem.
If I were you, I will
1. put
error_log('WordPress loaded');after thatrequest_onceto make sure wp has been loaded.2. check error log for
WordPress loaded, if I get that, that means the problem should be on bbPress, or on WordPress.3. keep using error_log, find out where causes a program end.
This is my no-debugger-debugging method.
December 16, 2007 at 9:14 pm #62037In reply to: Having trouble integrating WP functions
ixray2
MemberBtw, I just deactivated all bbPress plugins and switched to the standard theme, but still no luck.
December 16, 2007 at 8:38 pm #62035In reply to: Having trouble integrating WP functions
livibetter
MemberWell, I didn’t mean that kind of error message. If your hosting provider gives you cpanel, there should be a “Error Logs”
And put that line top of original
config.phpis correct, but to bottom isn’t.Maybe you can try to use relative path? (I don’t think this will help…)
What are the versions of WordPress and bbPress which you are using?
Still need the error log.
December 16, 2007 at 8:27 pm #62034In reply to: Having trouble integrating WP functions
ixray2
MemberWell, actually it’s a Safari error message and it’s in German, but I’ll post it anyway:
“Safari kann die Seite „..“ nicht öffnen, da der Server die Verbindung unerwartet beendet hat. Dies tritt manchmal auf, wenn ein Server überlastet ist. Möglicherweise können Sie die Seite später öffnen.”
Rough translation: “Safari can’t open the page .., because the connection was unexpectedly reset by the server. This may occur if the server is busy. You might try again later.”
In Firefox, I just get a white page, no error message.
When I add the “”require_once(‘/var/www/web7/web/wp-blog-header.php’);” line to the bottom of config.php, I get this error message:
“Fatal error: Cannot redeclare _http_build_query() in /var/www/web7/web/wp-includes/compat.php on line 108”
Again, both WordPress and bbPress are running fine on its own, but it seems as soon as I try to load them together, something goes wrong.
December 16, 2007 at 7:55 pm #59523In reply to: subforums and markup
livibetter
Member@itissue: Didn’t fel64’s method work?
December 16, 2007 at 7:44 pm #2709Topic: Having trouble integrating WP functions
in forum Troubleshootingixray2
MemberHi,
I have bbPress running along with WordPress. It’s working fine so far, but now I’m trying to use WP functions in my bbPress theme.
I followed the directions and added “require_once(‘/var/www/web7/web/wp-blog-header.php’);” to the top of my bbPress config.php file.
But all I get is “Connection Reset by Server” when I open bbPress. As soon as I remove that line, it’ll work again, but without the WP functions, of course.
What am I doing wrong here?
December 16, 2007 at 4:42 pm #62024In reply to: Help:I can’t see my themes even the default theme
chrishajer
ParticipantSounds like you are having a problem with db-mysqli.php. It’s been covered in the forums here (search for threads tagged 745 and you’ll see what I mean) or just look at this recent post:
https://bbpress.org/forums/topic/installation-errors-every-time-db-issue
December 16, 2007 at 11:14 am #2707Topic: constant BBDB_HOST problem
in forum Installationmilo 3oneseven
Memberhi,
having some problems with installing:
install.php gives me this warning:
…bbpress/bb-includes/db.php on line 61
followed by this
…bbpress/bb-includes/db.php on line 73
DB_HOST is not localhost, changed to db server mt info,
apparently it won’t support the db host name?
-
AuthorSearch Results