Through cPanel I installed a free Let's Encrypt SSL certificate .

Corrected all the ways - changed from http to https. Reconfigured redirects in htaccess.

RESULT: the site has become secure - HTTPS

The PROBLEM is this: the jQuery library itself began to swear and give the error "SyntaxError: missing; before statement" . There was version 1.8.2. Put the last with CDN - 3.1.1. Put early versions ... The error did not go away. From the footer I threw it into the header, above all other libraries. All the same. The code is:

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> 

Please help solve the problem.

  • And if you turn off all the other scripts on the page, the problem will remain? - Mikhail Vaysman
  • Disconnected other scripts. jQuery earned, the error went away, and even the hide / show function worked. But now crossSlide swears - TypeError: $ is not a function - tlustenko
  • It means the problem is in them. Include one by one and find out where to look. - Mikhail Vaysman
  • The problem is strange. There is one big common script all.js, where about ten different js-scripts are stored. For verification, I commented out the insertion of the script in the html code like this: <! - ... ->. And commented out all the lines in the script itself as follows: // Each line separately. jQuery does not swear and does not produce errors. But if you uncomment the script in the html code <! - ... ->, jQuery starts to swear SyntaxError: missing; before statement. Although the whole script is commented out inside the slashes //. What is it??? - tlustenko
  • put at the very end; - Mikhail Vaysman

0