Info
- 6 posts
- 3 voices
- Started 5 years ago by spencerp
- Latest reply from spencerp
- This topic is resolved
Cannot redeclare bb_int_set_current_user()...
-
- Posted 5 years ago #
I've already posted this to the list, and I've also checked that disabling the one in the blog, stops this from happening. ;) :) However though, the plugin won't work and do what's it supposed too! Anyway.. on with the B.S...
Fatal error: Cannot redeclare bb_int_set_current_user() (previously declared in /home/mypath/myuser/public_html/wp-content/plugins/bbpress-integration.2.php:14) in /home/mypath/myuser/public_html/forums/my-plugins/bbpress-integration.2.php on line 13
I got this error after uploading, and activating the newest bbpress-integration.2.php plugin.
I uploaded the two too:
my-plugins/ directory
wp-content/plugins/ directoryPlease note though: I'm using the full path to my wp-blog-header.php file, in the forum's config.php file.
I also have the following for near footer of the config.php if it make's a difference:
$bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';
$bb->wp_home = 'false'; // WordPress - Options->General: Blog address (URL) // No trailing slash. Example: 'http://example.com'
$bb->wp_siteurl = 'false'; // WordPress - Options->General: WordPress address (URL) // No trailing slash. Example: 'http://example.com'// Use the following line *only* if you will be loading WordPress everytime you load bbPress.
define('WP_BB', true);I'm doing this, to be able to use some of my blog's wp functions, for wrapping the blog's theme around my forums..
Is there a way to work around this, or..? Thanks in advanced! ;)
spencerp
-
- Posted 5 years ago #
Nevermind, I took out the path to the wp-blog-header.php file now, and adjusted my theme accordingly. :) :) If someone wants to try and figure it out though, feel free.. Might be useful later on sometime.. ;) :)
spencerp
-
- Posted 5 years ago #
That's a WordPress Plugin, not a bbPress plugin. It should only be installed in your WordPress plugins dir.
-
- Posted 5 years ago #
Oh! Okay, the way I heard it, from Trent I believe it was.. that it went in both locations. =/ Alrighty then, then this changes my whole plan of doing things. YAY!
Well, the theme I made up for the forums now, doesn't include any WP functional calls, or whatever. But, I'll release the theme as a normal bbPress theme first. Then, I'll go back to customizing it like I wanted too!
http://spencerp.net/forums/Thanks a million mdawaffe (Michael), for clarifying this! ;) :)
spencerp
-
- Posted 5 years ago #
Nope....bbpress-integration goes in WP and wordpress-integration goes in bbPress! ;)
Trent
-
- Posted 5 years ago #
Hahaha.. Ah!! That's right!! Thanks Trent.. ;) :) Usually when we talked on GTalk, I was half asleep, and millions of things going on at same time lol..
Thanks again for clarifying this guys.. ;) :)
spencerp
-
You must log in to post.