Jump to content

Помогите разобраться с модулем - Ajax Error!!! error


Recommended Posts

Модуль csslider от Codespot - слайдер на главной странице.

При сохранении настроек при изменении чего-либо, возникает ошибка Ajax Error!!! error

Соответственно не могу сохранить изменения в слайдере.

Через консоль описание ошибки такое: Заблокирована загрузка смешанного активного содержимого «http://............ru/modules/csslider/ajax_csslider.php»

<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <[email protected]>
*  @copyright 2007-2015 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

include_once('../../config/config.inc.php');
include_once('../../init.php');
include_once('csslider.php');
$context = Context::getContext();
$csslider = new CsSlider();

if (Tools::getValue('data'))
{
	$layer_obj = Tools::getValue('data');
	$csslider->saveCaptions($layer_obj);
}
if (Tools::getValue('delete') && Tools::getValue('delete') == 1)
{
	$id_caption_del = Tools::getValue('id_caption');
	$csslider->deleteCaptions($id_caption_del);
}
if (Tools::getValue('deleteall') && Tools::getValue('deleteall') == 1)
{
	$id_slide = Tools::getValue('id_slide');
	$csslider->deleteAllCaptions($id_slide);
}
if (Tools::getValue('img_del') && Tools::getValue('img_del') != '')
{
	$img_del = Tools::getValue('img_del');
	$folder = Tools::getValue('folder');
	$csslider->deleteImage($img_del, $folder);
}
if (Tools::getValue('action') == 'updateSlidesPosition' && Tools::getValue('slides'))
{

	$slides = Tools::getValue('slides');

	foreach ($slides as $position => $id_slide)
	{
		$res = Db::getInstance()->execute('
			UPDATE `'._DB_PREFIX_.'csslider` SET `position` = '.(int)$position.'
			WHERE `id_csslider` = '.(int)$id_slide
		);
	}
	$csslider->clearCache();
}
die;

Просмотрел все файлы модуля, для замены http на https, но ничего не нашел. 

Также пробовал отключать блокировку в браузере через команду security.mixed_content.block_active_content = False, но не помогло. Все равно при сохранении вылетает ошибка. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More