Add Friend – not adding
-
Hello,
Just installed BP RC1 on WPMU 2.7.
Seems to work great but am experiencing a problem with the “Friends” module.
When I log in I go to “My Account”->”Friends”. It shows a list of people I could add as friends. Next to each person is the “add friend” button. When I click it, it the icon changes to the “working” icon, but it never stops. So graphically, it looks like it is doing something but never stops, and the friend doesn’t get added (nor does the recipient get a Friend request).
Any ideas?
I’d provide logs – just not sure what you would need – I’m running it on a cpanel server.
Thanks in advance,
-
One more thing to try guy. Activate the standard out of the box home theme on your site and see if that makes a difference. Activate that and disable all plugins and bp enhancements. Just run the default home theme with nothing extra added.
I don’t know why I didn’t suggest that earlier. Guess it’s because I’m a programmer and all solutions have to do with code. Hardware, operating systems and web servers are necessary evils that just have to be endured.
Try that.
That didnt work…I really have done nothing to the code the only thing I have modified is the css to make it look different. The only bp addons are the flickr and youtube plugins.
Wp plugins are share this and thats it. This did not work from the first time I installed buddypress so it could not have been something I did.
Let’s recap this modemlooper. You have running:
– bp 1.0 RC-1
– wpmu 2.7 release version not beta
– You’ve tried using just the distributed home theme and member theme without plugins or other js using enhancements.
– You say the permissions are 755 on that directory and file (bp-core-ajax-handler.php)
What version PHP is on your server. You need PHP 5.x.
Yes to all above. PHP 5. Everything worked with this installation except the ajax from the beginning.
The only plugins are the youtube and flickr BP plugin.
Did you guys notice…
Warning: require_once(/home/content/t/w/i/twitterfic/html/bp-core-ajax-handler.php/wp-load.php) [function.require-once]: failed to open stream: Not a directory in /home/content/t/w/i/twitterfic/html/bp-core-ajax-handler.php on line 3
That file can’t exist, because bp-core-ajax-handler.php isn’t a directory. Is it possible that in all of your moving around and customizing of the locations, that you might have .htaccess’ed yourself into a corner?
Modemlooper –
Just thought I’d mention that if you need to run some tests, I can create an account for you on my hostgator server (since I have a reseller account) – ie. you get full cpanel access etc. If you have a old domain name to use you can point it there. That way you could try a full new install and see if you get the same issue. I only propose this since I know it works on this host. You can delete the account when you get it working.
Either way, I hope you get it working!
Chris
JohnJames, I haven’t moved anything around. The ajax did not work from the fresh install. Can you suggest a fix?
Interesting!
I duplicated wp-load.php and put it into same folder as bp-core-ajax-handler.php. Then changed the location in the handler fole. The ajax finishes but does not send back results. Clicking the go to ?page=2 does not work it just refreshes to same url.
I have the same problem. When a user clicks the add friend button it redirects the user to his/her profile. I noticed it today. I don’ know how o get rid of it any ideas. I’m quite new to bp
whitelie, post the url to your site please.
http://www.myloveaid.com Just solved it anyway. I replaced the bp-core files with fresh ones and uninstalled some plugins and it’s working now
modemlooper, I took a fresh look at your site and you aren’t sending the js for jquery. These links to script code are empty in the browser.
<script src=”http://twitterfic.com/wp-includes/js/jquery/jquery.js?ver=1.2.6″ type=”text/javascript”/>
<script src=”http://twitterfic.com/wp-content/mu-plugins/bp-core/js/jquery/jquery.livequery.pack.js?ver=2.7″ type=”text/javascript”>
Check the permissions and ownership and existence of those files and their containing directories please. The js isn’t running it because the browser isn’t getting it.
ok permission is set on those files as 755. Ownership is set. Its very odd the files are there and permissions are set.
checked links in my browser and they show.
I can’t help but wonder if this is a .htaccess problem, because it really does seem like the files are where they should be, but for some reason your files don’t seem to think so…
Modemlooper, if you’re using Firefox, install the Firebug and YSlow if you haven’t already… They’re great developer tools that you can use to see what your webpage is doing pretty much realtime as it’s processing things…
I have a feeling that once we solve your js problems, we’re just going to go duh! Ha ha! Can you make sure there aren’t any .htaccess files anywhere but your root directory for WPMU? Like maybe you copied one over by accident? Also make sure if you’re using ANY caching, that you turn it off and delete any cache files you might have anywhere.
ok so after all this run around I think its a BP bug. I got it to too work. The problem was I have the site set to custom url. I thought ok if it cant find the file then the url in the browser is wrong. So I changed the fancy url back to original and bingo!
Hate to say I told you so…
Something in your .htaccess isn’t matching up with your fancy url’s… If you get them to point to the same place, things should fall into alignment.
I like my url to be the shortest so I had it set in WP to postname. Well at least I can cycle through members but would like to get fancy urls back.
It is my experience that postname and category are broken for some reason in the permalink type. Not sure if this is a bug or not, but I can confirm that they alone do not work for me either. I have to include some kind of date in my URL or else the blog posts don’t show.
Same problem – spinning icon when I try to add a friend.
PHP Version=5.2.9. Just installed BuddyPress and MU for first time today (May 3, so I think I have BuddyPress 1.0). Hosting at HostNine.com with typical CPanel.
Website with issue: http://3wcloud.com/wordpressmu. I have turned on the ability to add new users if you want to see what is happening.
Thanks,
Neal Walters
Nwalters, looking at that link now, it appears you have a whole other assortment of issues.
Bad slugs, missing theme files, etc…
I’m closing this, lets start a fresh thread, this one dates back to RC1 months ago.
I am having the same issue with the friend button not doing anything except spinning but this also extends to most similar types of buttons like deleting/favoriting/commenting on activity posts. nothing happens.
Is this an ajax problem? i have read through this thread but cant see any good answer to the problem?
wordpress version 3.5
buddypress version Version 1.6.1
- The topic ‘Add Friend – not adding’ is closed to new replies.