B
B
BLM212021-08-05 09:49:30
Web development
BLM21, 2021-08-05 09:49:30

Why does the application form on the site not open and become unclickable after changing the hosting and switching the site to https?

Greetings, dear connoisseurs. Once this resource helped with editing the code when there were troubles with the mobile version of the site. Maybe now someone will be able to help.

To the point. When the site was on a different hosting, one coder made an application form from the site to send it to telegrams. PHP hosting convention has reached version 8.0. The old host didn't want to give free SSL without a dedicated IP fee. Therefore, recently there was a congress to another hosting. The site has become https, but the PHP version of the current hosting is 7.4.

I have read a lot of information. I was struck that there is no intelligible clear answer to any wording of approximately such a search query "why it does not open and the application form from the site has become unclickable." Any reformulation of the request did not give an answer even close. I read something about floating, but, of course, everything turned out to be useless.

At the root of the site there is a folder, inside which is "telegramform" and in it there are three folders with css, php, js files. Around where I met, I changed http to https, zero sense.

Everything on the site works, except for this form. It is not clickable, does not open.

I wrote to the hosting, which answered me that all scripts are being executed, but there are js errors. The hosting provided me with two screenshots ( prnt.sc/1j3zd24 , prnt.sc/1j3p6uv ) , the links of which open for me only under VPN . Hosting advised me to contact the developer who made the form, but I have no desire to contact him.

The screenshots that the hosting provided me reminded me of troubles with the mobile version. Errors, in my opinion, then after editing main.js remained, but everything began to work at least.

Where to dig now, no idea. By the method of long enumeration, perhaps I will come to something. But one thing is clear to me - there is no answer to the question on the Internet. All around, all the pseudo-experts lick each other's knowledge from each other, and the slightest deviation from the banal standard - that's it, they've arrived, the barbell.

I myself am not a coder even close, programming is not my element. Why did I clarify about changing hosting and PHP from https - because, I believe, this is where the dog is buried somewhere. And I would also like to unsubscribe to the hosting, what was the reason for him to realize and admit that the defect became after the move, and also so that he could help other people if they also had a similar trouble.
And also, gentlemen, on the Internet on the first page of the search will finally appear (although I have shoveled dozens of sites) the answer to the question - why it became not clickable and the application form from the site does not open (feedback form - whatever you want to call it).

I don't know what else this form could be related to. Is its code written somewhere else, except for the telegramform folder? ..

PS
If anyone wants to participate, please note that I need to not just write - change the fifth line in main.js or something like that, but write the path to file that needs editing. For example: assets-templates-js-main.js. Darkness of files, darkness of branches. Finding the right folder is difficult, not to mention the file.

MODX 2.8.3-pl

I don't know if this is an easy question. For a real professional - probably yes. But, given that I did not find the answer to the question on the whole Internet, I put it on the level - difficult.

Anything you need to find an answer, I'll provide. It seems to me that the F12 console will not be enough, because everything was the same there for the last 3 years, and the form worked like everything else.

Oh yes, blm21.com

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2021-08-05
@BLM21

It seems to me that the F12 console will not be enough,

The closing tag </script>before this line is quite missing:
<!-- Global site tag (gtag.js) - Google Analytics -->

S
SagePtr, 2021-08-05
@SagePtr

Even when you try to send an application, you get a PHP error:
iboqzuqntwnm8pzxhl2cjydjoja.png
For good, the output of errors on the screen in the PHP config should be disabled (enabled only on the developer's computer, but not on the production server), instead, enable error output to the log and sometimes get acquainted with the error log and correct them as they are found.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question