General > Support

Can't answer visitor chat requests

<< < (2/2)

faf:
Mibew 1.6.8 tries to define the version of the browser in functions get_remote_level and is_old_browser in libs/chat.php. That functions in its turn make use of environment variable $_SERVER['HTTP_USER_AGENT'].

So, the key is the value of that variable.

The quick'n'dirty solution for your issue is to change the function get_remote_level so that it will always return "ajaxed". But I'd recommend you to find out what your server is setting as a value of $_SERVER['HTTP_USER_AGENT'], why does he behave so, and how one could fix this behavior.

fnoss:
Hello faf,

I have sent a support request to the hosting company to ask them how its handled.  Hopefully they will get back to me soon.

As for the quick and dirty fix... that worked great. Thank you!

For those that need more specific instructions, do the following

-Connect to your server/hosting via FTP
-Navigate to and open up /Mibew/libs/chat.php
-Change the last line of the function is_ajax_browser (line 232) from false to true
-save changes
-You should be good to go.

When the hosting company gets back to me I will update this thread with the agent string they were using to cause the problem in the first place.

Thanks for your help faf :)
Nick

faf:
You're welcome.  :)

Though, this is really a kind of dirty hack, so it should be treated only as the last resort.

Navigation

[0] Message Index

[*] Previous page

Go to full version