Search Results for '"wordpress'
-
AuthorSearch Results
-
December 19, 2007 at 1:26 pm #60860
chrishajer
ParticipantIt is fixed in the latest development version, I believe. There just hasn’t been a release that includes that functionality.
December 19, 2007 at 7:58 am #60859Asbjørn Ulsberg
MemberThe problem is; I’ve never explicitly told bbPress to connect via a local socket, and since I’m not a Unix expert, I didn’t really comprehend the error message. I now understand a bit more of what it says and that I should instruct bbPress to connect via TCP/IP instead. However, isn’t this something bbPress should have available as an option in the
config.php
file somehow? Or even just as an automatic switch it figures out based on whetherBBDB_HOST
is set (or is different fromlocalhost
) or not?December 19, 2007 at 2:28 am #60858livibetter
MemberYes, you surely can’t, cite from
man mysql
· --socket=path, -S path
For connections to localhost, the Unix socket file to use, or, on
Windows, the name of the named pipe to use.No remote IPC, if you can communicate via TCP/IP from remote, why use unix socket?
December 19, 2007 at 2:16 am #60857livibetter
MemberI don’t think you can connect to a remote MySQL server via unix socket. Please use TCP/IP.
And don’t forget to grant the user for connecting from remote IP.
December 19, 2007 at 1:15 am #61968In reply to: Broken Profiles for users with spaces in the names.
Sam Bauers
ParticipantYou can have it now if you use trunk.
At the moment revision [980] is the most stable.
ZIP file is at the bottom of this page:
https://trac.bbpress.org/browser/trunk?rev=980
If you are integrating with WordPress at the moment I don’t recommend using trunk though.
December 19, 2007 at 1:09 am #60856Sam Bauers
Participant> I suspect bbPress of having hard coded a connection to localhost and thus configuring define(‘BBDB_HOST’, ‘…’) to be something else than localhost doesn’t really matter.
That’s simply not the case.
December 18, 2007 at 10:18 pm #62083In reply to: Extended descriptions for forums?
alderete
MemberYeah, I guess it would work for now, we only have a few forums. But I’m reluctant to put that kind of thing into the templates, where it’s hard to update, and prone to typo problems, etc., if the conditional code gets accidentally mucked up.
Is there any way to add arbitrary meta attributes to things in bbPress, the way you can add them to posts in WordPress?
December 18, 2007 at 9:40 pm #62092In reply to: define database name ? – config.php
livibetter
MemberCheck Step 2 of https://codex.wordpress.org/Installing_WordPress#Detailed_Instructions
It’s written for WordPress, but you can use it for installing bbPress.
December 18, 2007 at 8:29 pm #62077In reply to: Installation woes
chrishajer
ParticipantIt doesn’t look like you upgraded the installation properly. But your issue so far has nothing to do with bbPress. All those errors are from WordPress.
That looks to be a pretty common error:
http://www.google.com/search?hl=en&q=Table+*wp_terms+doesn%27t+exist
December 18, 2007 at 8:21 pm #62066In reply to: Email all users from bbpress
chrishajer
ParticipantYou could extract all the email addresses from the database with a tool like phpMyAdmin. I don’t know of a plugin that does this. If it’s a onetime thing, I would just grab the email addresses from the database with a query like:
SELECT DISTINCT user_email
FROM bb_users
ORDER BY user_email ASCWith all the email addresses, then just send out a mass email with your email client putting their email addresses in the BCC field.
Are you looking to do this regularly, and are you thinking this should be a plugin? I guess you’d need to know if the installation were integrated or not, then query the correct table, and also if it is an integrated installation, you’d need to separate out the bbPress registrations from the WordPress registrations.
December 17, 2007 at 10:14 pm #62076In reply to: Installation woes
livibetter
MemberWell I updated WP…
You probably need to ask in WordPress Support.
Here is a document: https://codex.wordpress.org/Upgrading_WordPress_Extended#Detailed_Upgrade_Instructions_for_1.5.x.2C_2.0.x.2C_2.1.x.2C_or_2.2.x_to_2.3.1
December 17, 2007 at 6:39 pm #62075In reply to: Installation woes
hapikar
MemberHere are the errors I’m getting now.
WordPress database error: [Table ‘hk-wp.wp_terms’ doesn’t exist]
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN (‘category’) AND tr.object_id IN (0) ORDER BY t.name ASC
Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/hapikar.com/httpdocs/wp-includes/wp-db.php:160) in /var/www/vhosts/hapikar.com/httpdocs/wp-includes/pluggable.php on line 391
December 17, 2007 at 4:08 pm #60855chrishajer
ParticipantWhen using a socket, you need something like this:
https://bbpress.org/forums/topic/cannot-select-db-error?replies=11#post-12434
It’s OK to start a new topic as well. All these recent topics dredging up old problems that are sort of close make it hard to solve the latest problem, your problem. A lot of the earlier advice in this thread doesn’t apply to your specific problem.
December 17, 2007 at 11:08 am #62055In reply to: Having trouble integrating WP functions
ixray2
MemberOkay, here is another problem:
Ever since I’ve integrated WordPress as detailed above, I can’t access the bb-admin .. it’s just a blank page.. as soon as I remove WordPress integration, it’ll work again.
December 17, 2007 at 10:41 am #60854Asbjørn Ulsberg
MemberI have the same problem and overwriting
db-mysqli.php
withdb.php
didn’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 73
I suspect bbPress of having hard coded a connection to
localhost
and thus configuringdefine('BBDB_HOST', '...')
to be something else thanlocalhost
doesn’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 thuslocalhost
won’t work.December 17, 2007 at 7:32 am #62072In reply to: Installation woes
chrishajer
ParticipantIt looks like you just installed WordPress based on the age of the blog posts. How did you end up with such an old version? Is that something the host installed for you?
December 17, 2007 at 7:28 am #62071In reply to: Installation woes
chrishajer
ParticipantYou really, really, really need to upgrade your WordPress:
<meta name="generator" content="WordPress 1.5.1.2" />
Until then, I think it would be silly to try and fix any errors in your install.
Current WordPress version is 2.3.1: 1.5.1.2 was released 2.5 years ago and has security issues as well as limited functionality.
December 17, 2007 at 7:12 am #62070In reply to: Installation woes
hapikar
Memberhmmm, have no idea. just an amateur really hacking away. The problem is this install has caused my wordpress admin panel, under presentations/themes to show that error. Sorry was not being detailed enough in post.
December 17, 2007 at 6:26 am #62069In reply to: Installation woes
chrishajer
ParticipantWhy is your bbPress calling a WordPress function?
wp-includes/functions.php
Is there more to your setup than it appears?
Actually, I just went to your forum and it is working?
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
default
as 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: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:55 pm #62047In reply to: Having trouble integrating WP functions
livibetter
MemberSeems you will use a lot of stuff from WordPress. If your WordPress template is already written in German, then you should have no problems. If not or some functions use
gettext
functions, then you will see many text in original language.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: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.
-
AuthorSearch Results