Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 18,326 through 18,350 (of 68,966 total)
  • Author
    Search Results
  • Cam
    Participant

    Hi @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

    willandmae
    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 796

    I 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

    flashbytes
    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/

    Cam
    Participant

    While 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. 🙂
    ~Cam

    #174025
    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

    shanebp
    Moderator

    Have a look at how group loops are used in the files here:
    plugins\buddypress\bp-templates\bp-legacy\buddypress\groups\

    #174002
    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.

    #174001

    In reply to: redirect loop

    tatjanalekic
    Participant

    Hi, 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

    #174000
    tatjanalekic
    Participant

    Hi, 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

    #173996
    ShuBomb
    Participant

    Can anyone help me to change my avatar in BP.
    Not find the browse button or change link in my profile.

    #173991
    den63
    Participant

    1. Deactivate all plugin except buddypress
    2. Deactivate buddypress
    3. Activate all plugin except buddypress

    modemlooper
    Moderator
    #173973
    YvonneTaylor
    Participant

    Hi 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?
    Thanks

    Anonymous User 13302461
    Inactive

    This *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 = 120

    Anonymous User 13302461
    Inactive

    The 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.

    Anonymous User 13302461
    Inactive

    oops, 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

    Anonymous User 13302461
    Inactive

    And 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.

    Anonymous User 13302461
    Inactive

    Damn, 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″;}

    #173964
    Boone 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!

    Anonymous User 13302461
    Inactive

    Never mind Ive found it.

    Table wp_options in your wp database.

    option_name bp-active-components.

    I will have a play about.

    #173960
    Henry
    Member

    Have 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.

    #173959
    Jose Conti
    Participant

    Hi @boonebgorges

    Yes, 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 899
    

    Nothing to be with BuddyPress or WangGuard (I think…)

    Thanks a lot.

    #173958
    Gyan 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. ?

    #173955
    Henry
    Member

    @gyan-gaurav I navigated around for about 2 minutes and didn’t come across page not found at all.

    willandmae
    Participant

    I 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…

Viewing 25 results - 18,326 through 18,350 (of 68,966 total)
Skip to toolbar