Skip to main content
Topic: Quote and Edit stopped working after moving to https (Read 1161 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Quote and Edit stopped working after moving to https

Reply #15

Hi @Spuds ,
I have updated from 1.1.7 a few months ago and don't see anything : but my forum is small with not a lot of users.
Few days ago i have updated UltimateMenu with your new zip : i tried to uninstall but still the same problem.
I will install a new elkarte and UltimateMenu to test.

Re: Quote and Edit stopped working after moving to https

Reply #16

I just made a fresh install : just french langpack and UltimateMenu... everything works fine !

Re: Quote and Edit stopped working after moving to https

Reply #17

I forgot to say that just with elkarte alone, without addons and french langpack, i have the "Loading..." bar on top that quick disapear, like in my "official" test forum.
And here, in this forum, it is the same thing : is it regular ?
I don't remember that.

Re: Quote and Edit stopped working after moving to https

Reply #18

The loading bar only shows when its doing a AJAX call in the background.   If the call happens fast (as it should) it probably would just flash.  Something that should be improved in2.0 so its less annoying.
Be safe, Be kind, Happy Programing

Re: Quote and Edit stopped working after moving to https

Reply #19

Of course, but what about Quote and Quick edit on my main forum : they don't work at all.
Do you have an idea ?

Re: Quote and Edit stopped working after moving to https

Reply #20

Hi,
There are some informations in chrome console.

With Quick edit button the console return :

Uncaught TypeError: XMLDoc.getElementsByTagName is not a function
    at QuickModify.onMessageReceived (topic.js?R118:412)
    at XMLHttpRequest.oSendDoc.onreadystatechange (script.js?R118:95)
QuickModify.onMessageReceived @ topic.js?R118:412
oSendDoc.onreadystatechange @ script.js?R118:95
XMLHttpRequest.send (async)
sendXMLDocument @ script.js?R118:102
QuickModify.modifyMsg @ topic.js?R118:399
onclick @ VM126 index.php:463

With Quote button the console returm:

Uncaught TypeError: oXMLDoc.getElementsByTagName is not a function
    at QuickReply.onQuoteReceived (topic.js?R118:294)
    at XMLHttpRequest.oMyDoc.onreadystatechange (script.js?R118:64)
QuickReply.onQuoteReceived @ topic.js?R118:294
oMyDoc.onreadystatechange @ script.js?R118:64
XMLHttpRequest.send (async)
getXMLDocument @ script.js?R118:69
QuickReply.quote @ topic.js?R118:278
onclick @ VM108 index.php:466

Philippe

Re: Quote and Edit stopped working after moving to https

Reply #21

That seems like the same issue already discussed in this thread.  If the server does not send back an XML response then you get a failure.  You can test like this, on this site if you do:

https://www.elkarte.net/community/index.php?action=register;sa=usernamecheck;xml;username=testuser

You will get back an XML response like:
Code: [Select]
<elk>
<username valid="0">testuser</username>
</elk>

Do the same for your site, what do you get in the response? 

If its not the same then its a server configuration issue. 

One I have seen in the past is if your site sends back the response with content encoding br.  If that turns out to be the case it means your server is using the apache mod_brotli (only seen on an https sites)  And if that is so, you need to ensure you have Brotli  configured to send back the proper mime type.  Check that the Brotli configuration section has something like
RewriteRule "\.xml\.br$" "-" [T=text/xml,E=no-brotli:1,E=no-gzip:1]  
it could be there but set as text/html which is wrong.  Either way we need the response back as XML.  Good Luck
Be safe, Be kind, Happy Programing

 

Re: Quote and Edit stopped working after moving to https

Reply #22

Hi @Spuds ,

On my elkarte i get an error :

This page contains the following errors:
error on line 25 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.
var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//augras.eu/matomo/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '5']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })();

Matomo is the point !
In this post i explain what i made to get matomo works :
https://www.elkarte.net/community/index.php?topic=6050.0

Matomo works but elkarte no !

I deleted the line
require 'matomo.php';
and now it works fine

Now i don't know how to make matomo working but Elkarte is on the road again.

THANK YOU @Spuds !