Search Results for 'buddypress'
-
AuthorSearch Results
-
November 10, 2013 at 5:59 pm #174033
Cam
ParticipantHi @willandmae
Try this. Remove the lines of code from the bp-default functions.php and create a brand new (blank) file called bp-custom.php in the plugins folder. (/wp-content/plugins/bp-custom.php)In the file place the following modified lines of code:
<?php //fix for cookie error while login. function set_wp_test_cookie() { setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); if ( SITECOOKIEPATH != COOKIEPATH ) { setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); } } add_action( 'after_setup_theme', 'set_wp_test_cookie', 101 ); ?>Let me know if that works any differently.
~Cam
November 10, 2013 at 5:36 pm #174032willandmae
Participant@crazycoolcam I was so excited to see this fix here this morning. I hurried to put this into effect because it matches what you say-if you try the sidebar firsttime it fails and then it works after this until cookies are deleted or cache. I have been always able to login without fail using the wp-login – just not the sidebar login the first time. Anyway, I could only find the functions.php file and I added it to the end before the
?>at the end of the file. For some reason I got a blank screen and this error.Parse error: syntax error, unexpected T_IF in /server_info/wp-content/plugins/buddypress/bp-themes/bp-default/functions.php on line 796I guess I just don’t know where to put the code or something. I look forward to hearing back from you for your direction to help my simple ignorance of not knowing what to do.
Thanks William
November 10, 2013 at 2:23 pm #174027flashbytes
Participant@modemlooper:
The plugin I use is called “BP Group Hierarchy”:
https://wordpress.org/plugins/bp-group-hierarchy/And here’s how to use it for listing a subset of groups:
http://www.generalthreat.com/2012/01/extending-buddypress-group-hierarchy-list-member-groups/November 10, 2013 at 2:03 pm #174026Cam
ParticipantWhile searching threads about a similar issue, I stumbled upon this thread that some guys and I solved over on the WP forums.
Question:
Can you log in after one or two failed attempts (with either the sidebar login, or wp-login.php) but then are able to using the default form: wp-login.php?If so, I presented a workaround on the WP forums, which I will share here:
Add the following php code to your functions.php file, your bp-custom.php file, OR a mu-plugin file that you create:
//fix for cookie error while login. function set_wp_test_cookie() { setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); } add_action( 'after_setup_theme', 'set_wp_test_cookie', 101 );This will try to set the test cookie anytime someone visits any page of your site, and it will allow the sidebar form to start working again if wp-login.php and cookies are enabled.
If you cannot sign in at all (after two or three attempts with wp-login.php), I have not seen a solution yet (was what I was looking around for), but I have seen several threads about people with this issue after the upgrade to 3.7.1.
Hope this helps, and I hope you all are in the first category. 🙂
~CamNovember 10, 2013 at 2:00 pm #174025In reply to: Remove "All Members" tab in Activity?
mattg123
Participant@monster1612 oh, it was my fault for misreading really – your going to want to look at bp_has_activities and specifically activity>activity-loop pretty sure buddypress.org has documentation on creating custom activity loops
November 9, 2013 at 6:25 pm #174009shanebp
ModeratorHave a look at how group loops are used in the files here:
plugins\buddypress\bp-templates\bp-legacy\buddypress\groups\November 9, 2013 at 4:41 pm #174002In reply to: Buddypress log in Problem – not all pages logged in
raytronx
Participant*Solved Problem*
It had to do with a rule in the .htaccess
ExpiresByType text/html A3600
Tells the browser to cache the page for 1 hour, well it caches the non logged in page so after log in when you go back to it the browser gives the cached version.The reason it was so hard to figure out has to do with my hosting setup. I have my main site hosted then my buddypress site is an addon domain so lives in a folder /addondomain
Well the .htaccess files are recursive so the rule ExpiresByType text/html A3600 was set by W3 Total Cache, a plugin I use on my main website living in Public_html caused the rule to be applied to the add on domain pages.
November 9, 2013 at 4:33 pm #174001In reply to: redirect loop
tatjanalekic
ParticipantHi, the problem was caused by putting the extras (pages) on to the first place, in front of Home, Docs and Admin. Extras (pages) cannot be on the first place I guess. When I put Home back onto the first place, there is no redirect loop. BuddyPress suggests not putting Admin on the first place, but I guess the safest thing is to leave Home on the first place. Thanks
November 9, 2013 at 4:32 pm #174000In reply to: 'THIS WEBPAGE HAS A REDIRECT LOOP.'
tatjanalekic
ParticipantHi, the problem was caused by putting the extras (pages) on to the first place, in front of Home, Docs and Admin. Extras (pages) cannot be on the first place I guess. When I put Home back onto the first place, there is no redirect loop. The BuddyPress suggests not putting Admin on the first place, but I guess the safest thing is to leave Home on the first place. Thanks
November 9, 2013 at 1:28 pm #173996In reply to: How to change avatar in buddypress.org
ShuBomb
ParticipantCan anyone help me to change my avatar in BP.
Not find the browse button or change link in my profile.November 9, 2013 at 12:58 pm #173991In reply to: How to deactivate bubddypress
den63
Participant1. Deactivate all plugin except buddypress
2. Deactivate buddypress
3. Activate all plugin except buddypressNovember 9, 2013 at 4:40 am #173981modemlooper
ModeratorNovember 8, 2013 at 5:02 pm #173973In reply to: Group activity is missing
YvonneTaylor
ParticipantHi Shane
Many thanks for your information, I have followed your instructions and have created a buddypress folder in my theme and then copied the (it is listed as single, then groups)folders to create the path as you describe.
My problem is I don´t know what I am changing, this is what got me in the mess I am in at the moment, changing code that I am not really sure about.Any suggestions?
ThanksNovember 8, 2013 at 3:51 pm #173971Anonymous User 13302461
InactiveThis *may* have been a memory related issue.
I have upped my settings in php.ini – memory_limit was 8M (default) – I put it to 128M and I can now have both friends and groups components active without the wp-admin breaking.
Also avatar uploads weren’t working a lot of the time, they were timing out / connection reset. This seemed to fix that issue too. Or one of the below, which are shown below as double the default.
max_execution_time = 60
max_input_time = 120November 8, 2013 at 2:07 pm #173968Anonymous User 13302461
InactiveThe bizarre thing is that the front end of the site worked fine, even with friends and groups showing. Wierd!! You’d think it would be the other way around.
And if the edit function worked here I wouldn’t have to reply to my own post so many times.
November 8, 2013 at 2:04 pm #173967Anonymous User 13302461
Inactiveoops, now most of my components are not running. That wasnt correct editing of the code.
To remove a component, delete the whole section, eg., s:6:”groups”;s:1:”1″;
BEFORE (BROKEN? White/Blank wp-admin)
a:8:{s:8:"xprofile";s:1:"1";s:8:"settings";s:1:"1";s:7:"friends";s:1:"1";s:8:"messages";s:1:"1";s:8:"activity";s:1:"1";s:6:"groups";s:1:"1";s:5:"blogs";s:1:"1";s:7:"members";s:1:"1";}AFTER (Working wp-admin)
a:6:{s:8:"xprofile";s:1:"1";s:8:"settings";s:1:"1";s:8:"messages";s:1:"1";s:8:"activity";s:1:"1";s:5:"blogs";s:1:"1";s:7:"members";s:1:"1";}So as you can see, to disable / remove the groups component, remove the section s:6:”groups”;s:1:”1″; and adjust the a:# at the start so it is a:# where # is the total number of components in use. Eg a:6
November 8, 2013 at 1:55 pm #173966Anonymous User 13302461
InactiveAnd yes, my admin page now works. I think its the friends component, as Ive had groups running before with no issues. I might report more here if I work out the friends issue.
November 8, 2013 at 1:54 pm #173965Anonymous User 13302461
InactiveDamn, its confusing. Think Ive got it for anyone else with this issue.
a:8:{s:8:”xprofile”;s:1:”1″;s:8:”settings”;s:1:”1″;s:7:”friends”;s:1:”1″;s:8:”messages”;s:1:”1″;s:8:”activity”;s:1:”1″;s:6:”groups”;s:1:”1″;s:5:”blogs”;s:1:”1″;s:7:”members”;s:1:”1″;}
The a:8 at the start, needs changing to however many components are running. I disabled groups and friends, so I changed the code to read:
a:6:{s:8:”xprofile”;s:1:”1″;s:8:”settings”;s:1:”1″;s:7:”friends”;s:1:”0″;s:8:”messages”;s:1:”1″;s:8:”activity”;s:1:”1″;s:6:”groups”;s:1:”0″;s:5:”blogs”;s:1:”1″;s:7:”members”;s:1:”1″;}
November 8, 2013 at 1:48 pm #173964Boone Gorges
Keymaster> Nothing to be with BuddyPress or WangGuard (I think…)
I’m guessing that this line is part of
wp_redirect(), which sounds like it’s happening because of a canonical redirect. I think you’re right that it’s probably not related, but you might still want to check out what’s causing it.Let me know how
'bp_include'goes!November 8, 2013 at 1:45 pm #173963Anonymous User 13302461
InactiveNever mind Ive found it.
Table wp_options in your wp database.
option_name bp-active-components.
I will have a play about.
November 8, 2013 at 12:26 pm #173960Henry
MemberHave you tried Using the default theme to see if the problem happens? You should deactivate all plugins too, 1 by 1 until you find the source of the problem.
November 8, 2013 at 11:19 am #173959Jose Conti
ParticipantYes, I know, I commented
is_super_admin()for tried to use it.Ok, I will move some functions to a file loaded by
'bp_include'I will open a ticket with the enhancement 🙂
And yes, I used WP_DEBUG and the debug.log for log errors, but any error was there, except this
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/wp-includes/canonical.php:398) in /home/***/public_html/wp-includes/pluggable.php on line 899Nothing to be with BuddyPress or WangGuard (I think…)
Thanks a lot.
November 8, 2013 at 11:06 am #173958Gyan Gaurav
Participant@henrywright-1 Thanks for your try henry. as i said it works good for while. but stop next moment. the problem is still here on my side. do you have any idea what be may causing this problem. ?
November 8, 2013 at 9:57 am #173955Henry
Member@gyan-gaurav I navigated around for about 2 minutes and didn’t come across page not found at all.
November 8, 2013 at 2:42 am #173947willandmae
ParticipantI just tested a different theme, kind of like the buddy-default but less to offer. Nevertheless, I tested its side bar login, one just like this one and it worked just dandy. No login issues. So Please even though this is not being bundled in the next version to new installs, can someone help us please…
-
AuthorSearch Results