I've had Wordpress MU installed for over a year on IIS 6, and I recently set up Buddypress 1.2. I had 1.0.X versions of Buddypress installed before this, which seemed to work, but I decided to wait for subsequent versions to actually use it.
I'm having trouble with 404 errors that seem to be related to URL rewriting. I have Micronovae's Mod_Rewrite Pro installed, which has always worked for Wordpress MU. When I click "create a group" on any computer other than the server, I am given a 404
error on both IE8 and Firefox. However, if I click "create a group" on the server, using the same URL, it works perfectly on both IE8 and Firefox. Does anyone have any idea why it would work on the server, but not anywhere else? There are several other
sites hosted on this server, so I was thinking it could be a host header problem, but I don't see anything wrong with my set up. I am using the standard .htaccess file for Wordpress MU installed in a root folder. Blogs are set up as subfolders, not subdomains.
I started off using ISAPI PHP, but I have switched to FastCGI as one attempt to diagnose the problem. I'm using the newest PHP 5.3. I've talked with Micronovae and they don't think it is a problem with their product. There are similar problems on the
Buddypress forums, but nothing exactly like I have, and there aren't many solutions, nor a lot of expertise with IIS.
Can you disable rewriting and try to access the pages from a remote server and ensure that the access to the pages is available? This might also rule out rewrite as the cause.
I think I found the problem, although I don't know how to fix it. If I disable "friendly http error messages" in IE., it works correctly. This was disabled on the server's browser by coincidence, which is why it worked. When I disable it on other computers it
also works. The one firefox browser that I tried had the google toolbar installed, which intercepts errors in much the same way.
I'm really fuzzy on how all of this is supposed to work. This is my best shot: The user clicks a button which goes to
http://fqdn/groups/create. That doesn't exist and the server is supposed to forward them to
http://fqdn/groups/create/step/group-details/, which is the first step in the creation of a group. When "friendly http error messages" is enabled, IE blocks the redirect. If I go straight to the "group-details"
url it works fine.
I suspect that this is the reason for the problems that a few people have been reporting with buddypress on IIS. I don't know any solution because the only thing that I've read to get around this, other than disabling friendly http error messages, is to
make sure the error message is at least 512 bytes, but I don't know how rewriting fits into all of this. The page that they are redirected to is many times that.
It appears the application is sending you a 404 status code while still navigating to a page. This is probably intended by the authors of the application. I would imagine though that since they are sending a 404, the application was unable to find it's true
target and thus defaulted back to the page you see now.
Unless I misunderstand, Buddypress/Wordpress is able to find its true target which is why it works with the "friendly" messages turned off. The web browser is being confused by something and is interrupting the redirect.
Yes, IE is merely displaying the friendly error because the web application has return a status code of 404. IE thinks that means that the page was not found and thus you see the friendly error. Buddy/Wordpress, however, seems to return a 404 despite properly
finding a target. Not sure if this is by design or not.
To make the problem stop on IE8 Go to Tools > Internet Options > Advanced > uncheck "Show Friendly HTTP error messages" Then then group creation works fine. See here https://trac.buddypress.org/ticket/3031
4 Posts
Buddypress 404 error
Mar 03, 2010 06:59 PM|ceslick|LINK
Hello,
I've had Wordpress MU installed for over a year on IIS 6, and I recently set up Buddypress 1.2. I had 1.0.X versions of Buddypress installed before this, which seemed to work, but I decided to wait for subsequent versions to actually use it.
I'm having trouble with 404 errors that seem to be related to URL rewriting. I have Micronovae's Mod_Rewrite Pro installed, which has always worked for Wordpress MU. When I click "create a group" on any computer other than the server, I am given a 404 error on both IE8 and Firefox. However, if I click "create a group" on the server, using the same URL, it works perfectly on both IE8 and Firefox. Does anyone have any idea why it would work on the server, but not anywhere else? There are several other sites hosted on this server, so I was thinking it could be a host header problem, but I don't see anything wrong with my set up. I am using the standard .htaccess file for Wordpress MU installed in a root folder. Blogs are set up as subfolders, not subdomains.
I started off using ISAPI PHP, but I have switched to FastCGI as one attempt to diagnose the problem. I'm using the newest PHP 5.3. I've talked with Micronovae and they don't think it is a problem with their product. There are similar problems on the Buddypress forums, but nothing exactly like I have, and there aren't many solutions, nor a lot of expertise with IIS.
Ideas?
70 Posts
Microsoft
Re: Buddypress 404 error
Mar 03, 2010 08:44 PM|kehand|LINK
Hi,
Can you disable rewriting and try to access the pages from a remote server and ensure that the access to the pages is available? This might also rule out rewrite as the cause.
Thanks,
kehand
4 Posts
Re: Buddypress 404 error
Mar 04, 2010 12:52 AM|ceslick|LINK
I think I found the problem, although I don't know how to fix it. If I disable "friendly http error messages" in IE., it works correctly. This was disabled on the server's browser by coincidence, which is why it worked. When I disable it on other computers it also works. The one firefox browser that I tried had the google toolbar installed, which intercepts errors in much the same way.
I'm really fuzzy on how all of this is supposed to work. This is my best shot: The user clicks a button which goes to http://fqdn/groups/create. That doesn't exist and the server is supposed to forward them to http://fqdn/groups/create/step/group-details/, which is the first step in the creation of a group. When "friendly http error messages" is enabled, IE blocks the redirect. If I go straight to the "group-details" url it works fine.
I suspect that this is the reason for the problems that a few people have been reporting with buddypress on IIS. I don't know any solution because the only thing that I've read to get around this, other than disabling friendly http error messages, is to make sure the error message is at least 512 bytes, but I don't know how rewriting fits into all of this. The page that they are redirected to is many times that.
Ideas?
Thanks again.
php buddypress
70 Posts
Microsoft
Re: Buddypress 404 error
Mar 04, 2010 06:20 PM|kehand|LINK
It appears the application is sending you a 404 status code while still navigating to a page. This is probably intended by the authors of the application. I would imagine though that since they are sending a 404, the application was unable to find it's true target and thus defaulted back to the page you see now.
HTH,
kehand
4 Posts
Re: Buddypress 404 error
Mar 06, 2010 05:38 PM|ceslick|LINK
Thanks kehand,
Unless I misunderstand, Buddypress/Wordpress is able to find its true target which is why it works with the "friendly" messages turned off. The web browser is being confused by something and is interrupting the redirect.
70 Posts
Microsoft
Re: Buddypress 404 error
Mar 08, 2010 12:48 PM|kehand|LINK
Yes, IE is merely displaying the friendly error because the web application has return a status code of 404. IE thinks that means that the page was not found and thus you see the friendly error. Buddy/Wordpress, however, seems to return a 404 despite properly finding a target. Not sure if this is by design or not.
HTH,
kehand
3 Posts
Re: Buddypress 404 error
Jan 28, 2011 12:03 PM|rbaccaro|LINK
iis 404 error Buddypress
3 Posts
Re: Buddypress 404 error
Jan 29, 2011 03:01 PM|rbaccaro|LINK
4 Posts
Re: Buddypress 404 error
Jan 30, 2011 10:56 AM|ceslick|LINK
I see you've already found a solution, but in case anyone else has this problem, here are two fixes:
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/friendly-http-error-messages-causes-404/
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/404-page-when-trying-to-create-a-group-forum/
3 Posts
Re: Buddypress 404 error
Jan 30, 2011 11:19 AM|rbaccaro|LINK