MChat doesnt respond anymore after switching over to HTTPS

Support area for phpBB's mChat extension
User avatar
Aretheus
Posts: 6
Joined: 25 Aug 2019, 07:40
Location: Germany
Contact:

MChat doesnt respond anymore after switching over to HTTPS

#1

Post by Aretheus » 25 Aug 2019, 07:49

Greetings,

I`ve actually encountered a Problem with MChat where I got stuck now since several Days.
I`ve switched the Forum lately over to HTTPS and since that Time, MChat doesnt do anything
anymore except for being there itself ;-) Means the Chat Window is fine and appearing -
but if I enter Text and press Enter --> nothing happens. Same goes for deleting old
Messages and all. There`s no visible Error or something alike - if I use the Browser
Error Console however, he shows up:

>Failed to load resource: the server responded with a status of 404 ()

Since MChat worked fine before changing over to HTTPS it might be some Problem
with a Path or Cookie Setting possibly ?

phpBB3 Version : 3.2.7
Board-Style : WildWest for 3.2.7 (but the Error still persists, even if I switch back to Prosilver)
some other Extensions present : YES
PHP Version: 7.2.21

Would be nice if you could drop me a Hint how I can probably fix that ;-)
Thanks & Regards,


Carsten.
~ Lux e tenebris - lucet et luceat ! ~

User avatar
kasimi
mChat developer
Posts: 996
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#2

Post by kasimi » 25 Aug 2019, 08:09

Hi Aretheus and welcome :wave:
>Failed to load resource: the server responded with a status of 404 ()
It sounds like mChat not working is only a side effect of some other problem. Is there a specific file mentioned in the error log?

User avatar
Aretheus
Posts: 6
Joined: 25 Aug 2019, 07:40
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#3

Post by Aretheus » 25 Aug 2019, 08:17

Hiya Kasimi,

hmmm....yes...

Failed to load resource: the server responded with a status of 404 () /Forum/phpBB3/app.php:1

Failed to load resource: the server responded with a status of 404 () /Forum/phpbb3/app.php/mchat/action/add:1 Failed to load resource: the server responded with a status of 404 ()

Maybe there are some Paths still wrong within the .htaccess but not sure.

Thanks & Greets,

Carsten.
~ Lux e tenebris - lucet et luceat ! ~

User avatar
kasimi
mChat developer
Posts: 996
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#4

Post by kasimi » 25 Aug 2019, 08:19

Did you change your .htaccess in any way? Usully that's not needed for switching to HTTPS. Try using a clean copy of it from the phpBB 3.2.7 package.

User avatar
Aretheus
Posts: 6
Joined: 25 Aug 2019, 07:40
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#5

Post by Aretheus » 25 Aug 2019, 08:22

Yes, a few from the phpBB3 Forum told me to add several Changes into .htaccess
like:

RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /Forum/phpBB/

...and so on.

Ok, trying to replace the original one now....
~ Lux e tenebris - lucet et luceat ! ~

User avatar
kasimi
mChat developer
Posts: 996
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#6

Post by kasimi » 25 Aug 2019, 08:25

That's for forcing HTTP requests over to HTTPS. The problem is most likely the RewriteBase line. See if it works without that line.

User avatar
Aretheus
Posts: 6
Joined: 25 Aug 2019, 07:40
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#7

Post by Aretheus » 25 Aug 2019, 08:27

Hmmm. Nope. Didnt changed anything. Same Error as before.

Added in 6 minutes 20 seconds:
Found it ;-)

I disabled "Force URL Rewriting" within the ACP Panel, which I should have activated
as they told me within the phpBB3 Forum when I switch over to HTTPS.

Now it works fine again ;-)

Thanks Kasimi for your Time.
Case closed *g*

Greets,

Carsten.
~ Lux e tenebris - lucet et luceat ! ~

User avatar
kasimi
mChat developer
Posts: 996
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#8

Post by kasimi » 25 Aug 2019, 08:34

Glad you got it fixed. :+1:

User avatar
Aretheus
Posts: 6
Joined: 25 Aug 2019, 07:40
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#9

Post by Aretheus » 25 Aug 2019, 08:35

Btw, should I add the HTTPS-Lines to the .htaccess again or can I leave it
with the original one ?

Greets,

Carsten.
~ Lux e tenebris - lucet et luceat ! ~

User avatar
kasimi
mChat developer
Posts: 996
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: MChat doesnt respond anymore after switching over to HTTPS

#10

Post by kasimi » 25 Aug 2019, 08:39

Those lines force users who use HTTP (for example in old bookmarks) to HTTPS which is what you want them to use, so yes, add them back and see if it works.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests