Skip to:
Content
Pages
Categories
Search
Top
Bottom

Ajax areas not working correctly


  • thebloghouse
    Participant

    @thebloghouse

    Hi all

    My new site has all of a sudden started to not like the WordPress Ajax functions and so currently I cannot browse the members or blogs area using the letters at the top :(

    As as soon as I click on a letter or the next (pages) navigation I get the little Ajax animation but then a blank area where my results should be…

    If I disable all javascript the members list paging works e.g. link to http://www.mysite.com/members?upage=2 opens up page 2 of my site’s members.

    I have been back through 10 dyas of both back up databases and files and can’t work out where it has all gone wrong!

    Lastly I have also tried to diagnose the issues myself using Fiebug but am not great with this tool but even I can see when I click the letters the Headers and post tabs are full wiht infomration but the Response tab is blank.

    Any help much appreciated.

    BTW Am using BuddyPress 1.01 and WordPress MU 2,7.1 although I did upgraded to 1.02 and that made no difference.

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

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    Are there any javascript errors in your page? Are you using deep integration of bbPress 1.0.1 by chance?


    thebloghouse
    Participant

    @thebloghouse

    Hey John thanks for the reply.

    No Javascript errrors that I can see no :(

    I am indeed using deep integration using with bbPress – version 1.0-alpha-6 as recommended by a great online turorial. The integration worked perfectly until a little while ago (can’t pinpoint this time) but I now have an issue where bbPress knows I am logged in as admin but clicking on the http://www.mysite.com/forums/bb-admin/ link doesn’t work first time, I have to click Log Out and re log in.

    Do you think this is related then?

    I also notice a rogue 0 output at the bottom of the buddypress-groupswidget on my home page once I click on any of the group headings, Newest, Active, Popular :(

    Would it be helpful to post the Post Data from within Firebug?

    Many thanks in advance.


    thebloghouse
    Participant

    @thebloghouse

    Just to add to this – within Firebug both the post action directory_groups and post action directory_members give me nothing back :(


    thebloghouse
    Participant

    @thebloghouse

    Have realised teh auto complete / searching of users names (Ajax) is also not working.

    The action this areas callis is this one: messages_autocomplete_results.

    I would really appreciate some help with this guys as I have been stuck with this issue for 48 hours now :(


    thebloghouse
    Participant

    @thebloghouse

    Anyone able to help me with this as this is the only thing preventing me from getting a site live?

    Many thanks in advance!


    thebloghouse
    Participant

    @thebloghouse

    Anyone here – I can pay for someone’s time if needed?

    Have you got any other plugins active other than Buddypress? If you do, try disabling them. I’m wondering if there’s a jquery version conflict somewhere.


    thebloghouse
    Participant

    @thebloghouse

    Hey Paul thanks for the reply. I thoguht I was invisible for a while there!

    I have 13 odd plugins and have activated and deactivated them all and still no luck :(

    I also have some custom JavaScript in some include files and have even removed references to these and that didn’t work.

    Will try all the above again now…

    Will using the following type of jQuery coding cause issues?

    ‘var $j = jQuery.noConflict();’

    Thanks again for you help!


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    It is my experience that using deep integration can cause some issues with duplicate jQuery inclusions, but this is usually only on the bbPress side, not on the BuddyPress side.

    WordPress 2.8.1 uses a new version of jQuery. I’ve ran into this as an issue mostly when there is either a JS error, or a conflict of some kind in the files. Can you verify for me that the jQuery file itself is being included correctly in the head area when viewing the directory page?


    Jason Giedymin
    Participant

    @jason_jm

    With these types of scenarios it helps to temporarily use jQuery inplace of $(‘<attribshere>’) usage.

    Using $() in wordpress will call Prototype’s implementation, so you gotta use jQuery yeah or call that noconflict function (don’t know if doing it this way has an other implementation issues).


    thebloghouse
    Participant

    @thebloghouse

    Found out the cause at last!

    I was using a custom plugin and that was using the wrong Ajax url path – it was setting the following:

    ‘ajaxurl = <?php echo admin_url(‘admin-ajax.php’); ?>’

    but needed to be as follows

    ‘upload_ajaxurl = ‘<?php echo admin_url(‘admin-ajax.php’); ?>’

    Thanks for everyones help

    :)


    atlantawebguru
    Participant

    @atlantawebguru

    I am having the same problem. Can someone tell me where I can change:

    ‘ajaxurl = <?php echo admin_url(‘admin-ajax.php’); ?>’

    to

    ‘upload_ajaxurl = ‘<?php echo admin_url(‘admin-ajax.php’); ?>’

    thanks


    thebloghouse
    Participant

    @thebloghouse

    Hey

    Sorry I haven’t been in here for a while as clients just keep givng me new work :(

    Don’t try and follow that code I posted above as that was specific to the particular plugin I was using and which was messing with the BuddyPress Ajax :)

    From looooong hard experience this issue WILL be another plugin messing with your BuddyPress Ajax so as much of a pain as it is disabling ALL your plugins do it and then repost if you are still habing this issue.


    atlantawebguru
    Participant

    @atlantawebguru

    Thanks, for getting back to me. I have disabled all my plugins and im still having the same problem.


    mistermachine
    Participant

    @mistermachine

    Hey Guys

    This sounds similar to my problem. I have been trying to set up groups for a while now with no luck. Groups haven’t worked from install, which was something I though would clear up as I proceeded with integration, but no go.

    http://5planes.mistermachine.com/network/

    It looks the page is trying to load an incorrect ajax url. It seems to be adding extra sub-directory to the path name.

    http://5planes.mistermachine.com/network/network/

    I checked and rechecked the wp-config file with no luck.

    Attempts to add new profile information also seems to error out.

    Other than these two errors the rest of the site works great! If anyone can help that would be great.

    BuddyPress 1.03 and WordPress MU 2.8.4a and bbPress 1.0

Viewing 17 replies - 1 through 17 (of 17 total)
  • The topic ‘Ajax areas not working correctly’ is closed to new replies.
Skip to toolbar