The MU forums have moved to WordPress.org

Create a new wiki page error (3 posts)

  1. psarunkumar
    Member
    Posted 14 years ago #

    hi,

    i install wpmu 2.9.2, buddypress 1.2.4.1 and buddypress group wiki 1.5 my localhost.

    i create groups and wiki is fine. my problem is i edit the group wiki page. end of this page create a new wiki page: option is there in that i give one title for test2w2 than click create page button. not refresh the page. in firefox firebug addon show this
    POST http://localhost.com/wordpressmu6/test2-wiki?bpgw_group_id=2&bpgw_newpage_title=test2w2&wiki_frontend_page_create=1 404 Not Found 362ms

    in this link i click

    Params : bpgw_group_id 2
    bpgw_newpage_title test2w2
    wiki_frontend_page_create 1

    Response: done

    i got this response but that page not reload.still show the input field loading…

    jQuery(“#wikiPageCreate”).val(“loading…”);
    //working fine
    jQuery.post(“?bpgw_group_id=&bpgw_newpage_title=” + wikiPageTitle + “&wiki_frontend_page_create=1″, function(data){
    
    location.reload(true);//not working
    });

    another firebug error: nonce[1] is undefined
    nonce = nonce[1].split(‘&’);

    in plugins/buddypress/bp-themes/bp-default/_inc/global.js line 786

    how i solve this errors?.

    tell your suggestion please.

  2. andrea_r
    Moderator
    Posted 14 years ago #

    Ask the plugin author.

  3. psarunkumar
    Member
    Posted 14 years ago #

    hi andrea_r,

    thanks for reply.

    i solved this error.

    wiki-home.php line 95

    Query.post("<?php echo site_url(); ?>?bpgw_group_id=<?php echo $wiki_group_id;?>&bpgw_newpage_title=" + wikiPageTitle + "&wiki_frontend_page_create=1", function(data){
    							location.reload(true);
    						});

    change to

    jQuery.post("<?php echo $bp->root_domain; ?>?bpgw_group_id=<?php echo $wiki_group_id;?>&bpgw_newpage_title=" + wikiPageTitle + "&wiki_frontend_page_create=1", function(data){
    							location.reload(true);
    						});

    problem is permission not set in echo site_url().

    now working.

About this Topic

  • Started 14 years ago by psarunkumar
  • Latest reply from psarunkumar