Forum Replies Created
copy over the functions:
from functions.php in bphome to your own theme’s functions.php file
I came across the same problem with my bespoke theme… as advised, I’d copied register.php across from bphome, but then got your error message:
To fix this, you also need to copy across two functions from the functions.php in bphome to your theme’s function.php file:
I did this and all works fine now.
I’m having the same issue, and want to place the wire post form at the top of the page.
I tried using bp_wire_get_post_form(), but it relies on the global $wire_posts_template->can_post returning true
I can’t see anyway to set this to true without hacking the BP code.
Do any BP / Coding experts have a better insight on how to do this?
Same problem for me as well.
@Burt: in wpmu back end… site admin, is it simply a case of hitting the ‘upgrade’ button?
@Burt: thanks, have registered it in trac
Are there guidelines on what should be reported to the trac, and what belongs on the forums?
@Jeff: no I was meaning for Buddypress – whether there were any catches to look out for, or whether a standard WP backup / restore would work
solution found – see thread:
Ok, I have the solution:
header.php in the skeleton template directly calls:
<?php load_template ( TEMPLATEPATH . ‘/optionsbar.php’ ); ?>
This bypasses any checking to see if it is a directory.
Instead, replace this line with:
<?php bp_get_optionsbar(); ?>
and everything works fine.
The same applies to the userbar.
@burt: not sure where to look for those function calls, but the bp_is_directory() function is returning true. Is that fed off the same declaration?
@Jeff: cheers… any pointers on other pitfalls to look out for with the skeleton theme would be appreciated. I’ve picked up on quite a few html / css markup issues. My theme (based on skeleton) is for a commercial client, so I’d like to make sure it will stand up to core upgrades.
I’ve got the forums installed, so that may be an issue… I’ll check versions.
We have member data on the site, so I’m a little loathe to do a clean install… is there a back up / restore procedure documented?
just commented on same issue on another thread…
… does anyone have fix for this in the skeleton theme?
@Simon… just came across the same problem (the bars also seem to have meaningless links in them)… did you get anywhere with a fix?
@Jeff: thanks for the suggestions:
My custom theme eader file doesn’t appear to have anything missing… my theme was essentially cosmetic changes: css, images and a change to the main menu. I’ll try recreating from scratch.
The /mu-plugins/ directory is completely empty, any other suggestions on a possible cause of the duplicate declaration error?
I’d already marked two of those threads as resolved, and posted what was causing the problem.
They weren’t problems related to this.
I have 2 unresolved threads open: the media library duplicate declaration problem, and the failure to add a friend issue.
I’ve responded to your feedback on these in thread: http://buddypress.org/forums/topic.php?id=3000
I appreciate the helpful responses from anyone on this forum (moderators and regular users alike). Thanks in advance.
@jeff: I followed these instructions for upgrading Buddypress: http://codex.buddypress.org/getting-started/installing-buddypress/upgrading-from-rc-1/
and yes: I followed the WPMU installation pages, and readme.txt instructions.
1. I deactivated the plugins… still failed (both adding friends, and media library duplicate declaration issue)
2. I switched to the BuddyPress default themes… still failed with the media library duplicate, but I can add friends
Hosting firm is Hostnine
WPMU was installed as per instructions: http://codex.wordpress.org/Installing_WPMU
Buddypress was the installation was one button installer, and instructions as per: http://codex.buddypress.org/getting-started/installing-buddypress/upgrading-from-rc-1/
wp-config.php seems fine
ok, I have the same problems:
Add Friend Not Adding and ABC line not working
I also have duplicate declaration error if I try to use the media library (edit post… add media… media library tab)
Have posted these separately, but not getting much feedback. Hopefully, both of us having the same problems suggests some common setup issue.
resolved (with the exception of friend requests).
See http://buddypress.org/forums/topic.php?id=3001 for solution.
@Burt: I fixed the other profile links problem, but this issue with the media library remains
… do you have any further suggestions?
@Burt and Jeff: thanks for your help…
… I’ve found the solution to this one:
I was using the switch_to_blog() function to retrieve posts to display in a header bar, and had neglected to call restore_current_blog() at the end.
It was somewhat unexpected that this would cause links in profile fields to be amended. Is there any reference manual for the bp functions? Or anything planned?
@Burt: you were asking for BP_ROOT_BLOG id… how do I find that out?
@Jeff: answers to your questions embedded below.
1. Which version of WPMU are you running? 2.7.1
2. Did you install WPMU as a directory or subdomain install? subdomains
3. If a directory install, is it in root or in a subdirectory?
4. Did you upgraded from a previous version of WPMU? If so, from which version? Yes, I upgraded wpmu when I upgraded bp to 1.0 (not sure what previous version of WPMU was)
5. Was WPMU functioning properly before installing/upgrading BuddyPress? I don’t know because I installed it as part of BP install, and didn’t test it separately
6. Which version of BuddyPress are you running? 1.0
7. Do you have any plugins other than BuddyPress installed and activated? 3 plugin widgets of my own that display posts from the database
8. Are you using the standard BuddyPress themes or customized themes? customised themes
9. If running bbPress, which version? 1.0-rc-1
10. Please provide a list of any errors in your server’s log files
[Tue Jun 02 18:46:20 2009] [error] [client 220.127.116.11] File does not exist: /home/live2run/public_html/wp-content/themes/2live2runmagazine/images/background.gif, referer: http://2live2run.co.uk/
[Tue Jun 02 18:45:59 2009] [error] [client 18.104.22.168] File does not exist: /home/live2run/public_html/wp-content/themes/2live2runmagazine/images/background.gif, referer: http://2live2run.co.uk/
@Jeff: getting it on Firefox and Safari (without even the please try again) on Mac, and on IE on Windows
thanks… unfortunately, I’m getting the problem whether I’ve opened other site windows or not, and on multiple machines.
don’t know if it’s relevant, but several of the blogs (including interviews) were set up by the admin user (user_id = 1)
Thanks for the quick response:
Can you let me know where I check the BP_ROOT_BLOG?
Yes, site url for Interviews is set to: http://interviews.2live2run.co.uk/
BUT, similarly for other blogs on the site:
training blog – site url is set to: http://training.2live2run.co.uk/
features blog – site url is set to: http://features.2live2run.co.uk/
This is not an option I’ve specifically configured…
I also notice that in the blog info section (site admin … blogs … features … edit)… that the checkbox: Update ‘siteurl’ and ‘home’ as well is ticked.
What are my next steps?
p.s. no, I’ve not setup any fancy domain mapping