Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] WPMU BP 1.7(b) Sub Site Ajax URL Issue


  • dasped
    Participant

    @dasped

    WP Install – 3.5.1

    BP Install – 1.7 Beta

    WPMU Enabled (Sub-folders) – BPMB Enabled

    Domain Mapping Configured.

    Network Root = http://www.cyber-networks.co.uk

    Mapped Sub = http://cyber-chat.co.uk

    Current BP Theme: Dynamix – http://themeforest.net/item/dynamix-premium-wordpress-theme/113901

    Mapped sub – cyber-chat.co.uk  is managing to auto post BP updates (New avatar insertion etc) But I can not manually post any activity. I can also not delete any activity.

    I have been speaking to Ron Rennick via the WordPress MU Domain Mapping support pages in relation to the current ajax issue I’m having.

    To explain: Naturally the cyber-networks.co.uk Page source is showing the ajax url as http://cyber-networks.co.uk/wp-admin/admin-ajax.php

    The problem being is that my mapped domains also have the same url within their source. Default browser security is therefore blocking BP posting within these mapped domains!

    Ron suggested that I switch off Domain mapping plugin option -”Redirect administration pages to site’s original domain”

    I’ve tried this but it resolves nothing and Ron seems to think that this ‘may’ be down to Buddypress, Quote; “ Possibly the ajax url is being changed by BP to go back to the main site” ?

    If this is the case, then I can’t ever see a need for the enable bp multiblog function as it would surely fail in most case scenarios similar to my own?

    I would truly appreciate all and any comments/replies that may further my progression with this build. 

    Thank you

Viewing 18 replies - 1 through 18 (of 18 total)

  • dasped
    Participant

    @dasped

    Sorry to bump (Hate feeling a need to do that) But I really could do with some thoughts here, I’m nearing x2 weeks to install Buddypress here (Has to be some kind of record). My whole site build is on halt whilst I get this working to some effect.

    Ajax URL is always pointing to network base site and therefore preventing BP from allowing posts or editing within a mapped domain site within the network.

    Even if you don’t hold a wand or wizard’s staff, I’d still be grateful of your input. Surely there is some interest/concern as to why this would be happening within a WPMU BPMB enabled website?

    I just can’t get my head round, how any WPMU BPMB cross network set up can function as it is meant to if this occurs?

    Thanks


    dasped
    Participant

    @dasped


    Ben Hansen
    Participant

    @ubernaut

    nice picture, this sounds like a bit over my head but just a shot in the dark maybe the www suffix or the .co.uk tld are causing trouble i know its not normal to have that problem.


    dasped
    Participant

    @dasped

    Thanks @Ben Hansen

    Have suffix’s or specific tld’s been known to cause any issues in the past?

    I do have a .com tld WPMU set up using sub doms and that works fine, though I not their ajax URL’s appear within a <![CDATA[ wrapper. I note that my current problematic sites do not appear in such a wrapper! ?

    The only thing I can find within my problematic WPMU BPMB child and master theme that possibly relates to this issue is as follows.

    buddypress-functions.php (File found in child & master)

    /* Load the default BuddyPress AJAX functions */

    /* We are going to load the ajax from the BuddyPress plugin directory so we always use the latest version */

    require_once( BP_PLUGIN_DIR . ‘/bp-themes/bp-default/_inc/ajax.php’ );

    But if I edit those lines out, there is still no change .. ? (So don’t think that that is related)

    The saga continues…


    Ben Hansen
    Participant

    @ubernaut

    idk i read somewhere at some point multisite didn’t like www setups but i can’t seem to find that anymore. like i said shot in the dark i’m not very knowledgeable about things such as php and ajax.


    danbpfr
    Participant

    @chouf1


    dasped
    Participant

    @dasped

    Hi @Chouf1

    I already told my theme author about this and in return he offered a solution:

    Remove: wp_enqueue_script( ‘dtheme-ajax-js’, BP_PLUGIN_URL . ‘/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version ); From theme functions.php

    I did this and this and this stopped the duplicate post issue I was having see: https://buddypress.org/support/topic/troubleshooting-duplicated-activity-restricted-mapped-domain/

    Is it your thoughts that add_theme_support( ‘buddypress’ );  is possibly the root of the ajax issue too .. ?

    Oh & thanks for your input anyway @Ben Hansen, any food for thought is better than none at all.


    danbpfr
    Participant

    @chouf1

    Maybe ?!!! Yes….

    Did you read the ticket indicate in boone’s post ?
    https://buddypress.trac.wordpress.org/ticket/4846#comment:4


    dasped
    Participant

    @dasped

    Have to be honest @Chouf1 and say, no I had not read the ticket. Thank you for pointing this out.

    I have now, again gone back to the theme author with the sincere hope he can offer some help.

    The odd thing, however I have to say, that using the BP Default, does not resolve this matter. Hence the reason I had not and perhaps can still not, see how it is theme related.

    I’m almost close to giving up if I’m honest. Two weeks of troubleshooting can sure take it out of you.


    Ben Hansen
    Participant

    @ubernaut

    i think maybe you should read the ticket remember this is beta 1 the issue you are having may already be known about sorry for not pointing that out in my first response for some reason i mentally skipped over the part of your post that said beta, i should have said that’s not normal for 1.6.x again sorry if i contributed to any added confusion.


    dasped
    Participant

    @dasped

    No problem Ben, no confusion caused.

    One new thing to the table is that if I add another sub-site via sub folder and do not  configure a mapped domain. Post/edit in activity and groups works just fine, yet ajax url remains the same.

    So cyber-networks.co.uk/new-site/activity has no posing/editing restrictions.

    As soon as I map a domain via the plugin cyber-newsite/activity I’m obviously hit with the problems because the domains don’t match.

    Driving me completely insane, it has to be said.


    dasped
    Participant

    @dasped

    Could anyone explain this for me? Is it related to my issue etc. Thanks.

    https://buddypress.trac.wordpress.org/changeset/6826/trunk


    Boone Gorges
    Keymaster

    @boonebgorges


    dasped
    Participant

    @dasped

    Thank you @boonebgorges

    Could you please clarify that these changes will be in the next release, either Beta x2 or 1.7 Full and so are ‘not’ currently implemented in 1.7 Beta 1 ?

    Meaning I can quite possibly sleep for the first time in many stressful moons.

    🙂

     


    Ben Hansen
    Participant

    @ubernaut

    i believe that’s what he’s saying yes.


    dasped
    Participant

    @dasped

    Thanks @ubernaut its just so hard to get a handle on as part of the tickets coding is already in in 1.7(b) bp-core-cssjs.php from what I can see.


    dasped
    Participant

    @dasped

    I just wanted to say “IT WAS WORTH THE WAIT” !!

    1.7(b)2 just fixed the ajax URL for mapped domains just like @boonebgorges said they would. Sir, you are a legend!

    Thanks to @ubernaut & @chouf1 for your interest and support also. You are both credits to the community.

    Super hyped it all came good, next up… Dum Dum Duuuuum… bbPress instalation…

    🙂

    Please mark – RESOLVED !


    Ben Hansen
    Participant

    @ubernaut

    🙂

Viewing 18 replies - 1 through 18 (of 18 total)
  • The topic ‘[Resolved] WPMU BP 1.7(b) Sub Site Ajax URL Issue’ is closed to new replies.
Skip to toolbar