FreiChat related discussions
Freichat & CloudFlare

Tried to use Freichat on a site using Cloudflare. It works perfekt on a copy in a test environment without CDN.

But when putting on the CDN site it always shows that it's searching for online users. The site is a Wordpress/Buddypress installation with the Freichat plugin installed.

Turned on PHP debugging but there is no logfile. I assume the problem deals with CloudFlares Flexible SSL which handles SSL on Port 80 instead of 443.

Do you have any idea what can be done?

Tried to use Freichat on a site using Cloudflare. It works perfekt on a copy in a test environment without CDN. But when putting on the CDN site it always shows that it's searching for online users. The site is a Wordpress/Buddypress installation with the Freichat plugin installed. Turned on PHP debugging but there is no logfile. I assume the problem deals with CloudFlares Flexible SSL which handles SSL on Port 80 instead of 443. Do you have any idea what can be done?

Hi,

Can you try this:

Open your website in chrome, open developer tools(f12)

Select "Network tab", you should see some requests being made by freichat.

Select any one, and check the response of the request.

Post the response here.

Hi, Can you try this: Open your website in chrome, open developer tools(f12) Select "Network tab", you should see some requests being made by freichat. Select any one, and check the response of the request. Post the response here.

On the Network Tab in the Developer Tools in Chromium there is nothing, but i found something on the Javascipt Console:

Mixed Content: The page at 'https://www.xxxxx.xxx/' was loaded over HTTPS, but requested an insecure plugin resource 'http://www.xxxxx.xxx/freichat/client/jquery/img/soundmanager2_debug.swf'. This request has been blocked; the content must be served over HTTPS.

So, i was correct, thinking that this problem deals with the protocol.

On the Network Tab in the Developer Tools in Chromium there is nothing, but i found something on the Javascipt Console: Mixed Content: The page at 'https://www.xxxxx.xxx/' was loaded over HTTPS, but requested an insecure plugin resource 'http://www.xxxxx.xxx/freichat/client/jquery/img/soundmanager2_debug.swf'. This request has been blocked; the content must be served over HTTPS. So, i was correct, thinking that this problem deals with the protocol.

Hi,

Can you provide us your website address with 2 test accounts ?

You can send the details to admin[@]codologic.com
Please include a link to this topic in the email.

Hi, Can you provide us your website address with 2 test accounts ? You can send the details to admin[@]codologic.com Please include a link to this topic in the email.

Mail sent. If there is anything i can do in addition pls let me know.

Mail sent. If there is anything i can do in addition pls let me know.

Hi,

The problem is not related to Cloudflare.

The problem is that freichat is trying to send request to the server using an url like

http://your_website/freichat/server/freichat.php

But, the website is loaded as

https://your_website

You can make sure that the request are always sent using https protocol, by making the following change.

Open freichat/arg.php

Around line 100, replace

        return $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];

with

        return 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
Hi, The problem is not related to Cloudflare. The problem is that freichat is trying to send request to the server using an url like ``` http://your_website/freichat/server/freichat.php ``` But, the website is loaded as ``` https://your_website ``` You can make sure that the request are always sent using https protocol, by making the following change. Open freichat/arg.php Around line 100, replace ``` return $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']; ``` with ``` return 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']; ```
edited Jul 1 '15 at 4:27 pm

Made the correction and basically the chat works. Perhaps a good idea to place somewhere in the configuration a button "always use https".

But the user avatars will not used and the language selection does not work. As language, german is selected but the chat speaks english.

Made the correction and basically the chat works. Perhaps a good idea to place somewhere in the configuration a button "always use https". But the user avatars will not used and the language selection does not work. As language, german is selected but the chat speaks english.

Hi,

We have not integrated Buddypress avatars in freichat.

There will be some customization required to integrate those avatars.

As for the language, can you send us the file freichat/arg.php via mail ?

Hi, We have not integrated Buddypress avatars in freichat. There will be some customization required to integrate those avatars. As for the language, can you send us the file freichat/arg.php via mail ?

Thanks for the hint with the arg.php. The admin backend showed me german as language but in this script on line 120 (//$parameters['lang']; //Language please do not include .php here only file name) there was 'chinese' why ever. The result was english language in the chat. Changed this to german and it works.

So, for me this ticket is resolved. Avatars are only cosmetical and have no priority in my eyes.

Thanks for the hint with the arg.php. The admin backend showed me german as language but in this script on line 120 (//$parameters['lang']; //Language please do not include .php here only file name) there was 'chinese' why ever. The result was english language in the chat. Changed this to german and it works. So, for me this ticket is resolved. Avatars are only cosmetical and have no priority in my eyes.
332
9
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft