PDA

View Full Version : strange error - 3.0.6/vbacmps


Rich
02-13-2005, 12:02 PM
Hello,
Since I have upgraded to 3.0.6, several of my members recieve this now when they try to upload an image directly from their PC :

POST requests from foreign hosts are not allowed.

What is causing this? I can still upload images just fine from my pc, so I am not able to see the problem itself. But this is the 3rd person that has sent me this same error since I upgraded.

The fix for this error at vBulletin.com was as follows:

Well i downloaded 3.0.6 12 hours ago... and its not working....
The init.php even says "vBulletin 3.0.6"

I found the bug now!

You use "www" in the preg_replace on http_host

$http_host = preg_replace('#^www\.#i', '', $http_host);

and since my forum is on "forum.site.com" it didnt work. I changed it to "forum" instead

$http_host = preg_replace('#^forum\.#i', '', $http_host);

and now it works. My vbindex is running on www .site.com

then this appeared:

Excellent. Is there a way to make it www AND forum if I wanted it to? This should resolve my problem then as well.

Response:

Try

$http_host = preg_replace('#^(forum|www)\.#i', '', $http_host);

Now my problem is a bit different. I am running vbadvancedcmps and the forums both from the root directory. How would I implement that suggestion when they are both in the same folder? My cmps is named index.php and the forums are called forumhome.php. Any ideas?

This error also appears for those same members when they try to use the quick edit hack. This is bizarre as the occurances seem to be isolated, but they experience the same error by performing the same tasks. I don't see these errors, and neither does 99% of my members. I could use some of your wisdom with the code to guide me to an explanation as I am baffled. :D

alderwazeh
02-14-2005, 02:26 PM
Go to VBadvanced forum ...they have been descusing this problem before...you will find the answer there relating to domain and subdomain installation..I have seen this error massage reported their .. sorry this is what I remember for now..good luck