AJAX issue using BuddyPress Template Pack
-
BP Version: 1.8
WP Version: 3.5.2
Theme: CStar Design
Running BuddyPress Template Pack (because of issues here:http://buddypress.org/support/topic/theme-compatibility-issue)When AJAX is enabled under the BuddyPress Template Pack – when a user navigates the /groups page and interacts with any components (such as next page or filters) the AJAX requests loads in the homepage of the site. Disabling AJAX appears to resolve the issue – however this renders the site almost useless as functions such as creating a new topic, ordering etc all REQUIRE JS to work (which seems counter-intuitive).
Network trace of an AJAX request being made, below:
Request URL:http://www.members.pcosdietsupport.com/wp-admin/admin-ajax.php
Request Method:POST
Status Code:302 Moved Temporarily
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,en-GB;q=0.6
Connection:keep-alive
Content-Length:183
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Cookie:__utma=63762478.146401814.1374613173.1374613173.1374613173.1; __utmz=63762478.1374613173.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); wordpress_test_cookie=WP+Cookie+check; __utma=7220526.495359790.1374613143.1374613143.1374620066.2; __utmb=7220526.17.10.1374620066; __utmc=7220526; __utmz=7220526.1374613143.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); bp-activity-oldestpage=1; bp-groups-scope=all; bp-groups-filter=active
DNT:1
Host:www.members.pcosdietsupport.com
Origin:http://www.members.pcosdietsupport.com
Referer:http://www.members.pcosdietsupport.com/groups
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1573.2 Safari/537.36
X-Requested-With:XMLHttpRequest
Form Dataview sourceview URL encoded
action:groups_filter
cookie:bp-activity-oldestpage%3D1%26bp-groups-scope%3Dall%26bp-groups-filter%3Dactive
object:groups
filter:active
search_terms:
scope:all
page:1
extras:Response Headers
Access-Control-Allow-Credentials:true
Access-Control-Allow-Origin:http://www.members.pcosdietsupport.com
Cache-Control:no-cache, must-revalidate, max-age=0
Connection:Keep-Alive
Content-Type:text/html; charset=UTF-8
Date:Tue, 23 Jul 2013 23:38:53 GMT
Expires:Wed, 11 Jan 1984 05:00:00 GMT
Keep-Alive:timeout=5, max=100
Location:http://www.members.pcosdietsupport.com
Pragma:no-cache
Server:Apache
Set-Cookie:wordpress_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/wp-content/plugins
Set-Cookie:wordpresspass_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpress_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/wp-admin
Set-Cookie:wordpress_sec_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/wp-admin
Set-Cookie:wordpressuser_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpress_sec_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/wp-content/plugins
Set-Cookie:wordpress_logged_in_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpresspass_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpress_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpress_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpress_sec_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpress_sec_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpressuser_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Set-Cookie:wordpress_logged_in_ddce7cb18cd676f3acecd22812907965=+; expires=Mon, 23-Jul-2012 23:38:53 GMT; path=/
Transfer-Encoding:chunked
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-Powered-By:PHP/5.3.24
X-Robots-Tag:noindexHaving looked through the BuddyPress installation I did find handlers for AJAX operations – but there doesn’t appear to be anything out of place with them receiving/correctly interpreting the request.
Can someone kindly provide insights into this?
Thanks!
- The topic ‘AJAX issue using BuddyPress Template Pack’ is closed to new replies.