Skip to content

Ошибки с js в ipb 3.4.8

Здравствуйте.

Появились какие то ошибки в консоле браузера.

Не могу понять в чем проблема, как исправить?

http://i85.fastpic.ru/big/2016/1007/85/3df6ad089040511c3c8674cac3224885.png

 

A Parser-blocking, cross-origin script, http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8/effects.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
scriptaculous.js?load=effects,dragdrop,builder:31 A Parser-blocking, cross-origin script, http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8/dragdrop.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
scriptaculous.js?load=effects,dragdrop,builder:31 A Parser-blocking, cross-origin script, http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8/builder.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
2jsapi:22 A Parser-blocking, cross-origin script, https://www.google.com/uds/?file=search&v=1, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
2jsapi:22 A Parser-blocking, cross-origin script, https://www.google.com/uds/api/search/1.0/33c7bfb92330999684a54e63dca8bb29/default+ru.I.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.

Featured Replies

  • Author

И еще почему то

Mixed Content: The page at 'https://www.rgmix.eu/' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://www.rgmix.eu/index.php?app=core&module=search&do=search&fromMainBar=1'. This endpoint should be made available over a secure connection.

Форма поиска через http идет.

Не могу понять в чем проблема, как исправить?

Если вкратце, то гугл хром может блокировать скрипты встраиваемые через document.write. Динамические добавляемые скрипты должны встраивается через метод .appendChild.

 

if(!window.jQuery){
	var script = document.createElement("script");
	script.src = 'https://www.rgmix.eu/public/style_images/rgmix/js/jquery.min.js';
	script.onload = function () {
		jQuery.noConflict();
	};
	document.getElementsByTagName("head")[0].appendChild(script);
}

 

И еще почему то

Форма поиска через http идет.

Все встраиваемые элементы и формы на https странице должны подключатся через протокол https.

  • Author

Куда это вставить?

 

Про встраиваемые элементы я знаю, было всё норм, но после переезда теперь почему то ссылка не меняется

Вот эта ссылка в шаблоне

<form action="{parse url="app=core&module=search&do=search&fromMainBar=1" base="preferHttps"}" method="post" id='search-box' >

base="preferHttps"

Удалить или заменить на base="public".

 

 

Куда это вставить?

Это пример подключения динамического скрипта библиотеки jquery. Смотрите где у вас скрипты подключаются через document.write и переделайте согласно рекомендациям гугла по примеру выше.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.