-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with define() in bfc-functions.php ... and a fix #107
Comments
and move it to bp-custom.php. See #107
I don't have a |
Yes. I suppose we could also put a copy of that file in the repo. What's the best way to handle that? |
Okay, I've now added that file. @DavidScottBernstein @wunluv Please do so as well and comment here once you've done so. As for including it in the repository, I guess we'd have to have a repository that's the entire |
Done. I did have a bp_custom.php file with just comments and nothing executable. But that file also contained the extra "?>" that I saw on my homepage and I think that was causing some of the updates to report errors. I removed the extra "?>" and "added define('BP_DEFAULT_COMPONENT', 'profile' );" This was on my local installation and not part of the repo. |
@DavidScottBernstein, good to hear you've likely solved the mystery of the extra Adding this file and its contents feels simple enough to do manually. I'm thinking that we might wait on expanding the repo until we have additional reasons to do so. How does that sound to you all? |
Fine with me. |
Works for me. |
While using the console to better understand #106, I discovered that
define('BP_DEFAULT_COMPONENT', 'profile' );
on line 13 was throwing a "redefine" warning. I've moveddefine('BP_DEFAULT_COMPONENT', 'profile' );
into/wp-content/plugins/bp-custom.php
– the recommended place since it loads earlier thanbfc-functions.php
– and all is well. I recommend you do the same.Since bp-custom.php isn't in our repo, here's the code that I have in that file:
The text was updated successfully, but these errors were encountered: