Проблема С Картинками При Переходе На Https

Всем привет!

Перешел на SSL (https) и столкнулся с тем, что протокол работает некорректно из-за картинок, которые все еще висят на http

Девелопер тулс говорят:

Mixed Content: The page at 'https://duhpoleta.ru/inspire-1/inspire-1-raw/kvadrokopter-dji-inspire-1-raw-s-2-pultami-ssd-obektivom-dop.-akkumulyator-3-ssd/'was loaded over HTTPS, but requested an insecure image 'http://clck.yandex.ru/redir/dtype=stred/pid=47/cid=2505/*http://grade.market.yandex.ru/?id=318998&action=image&size=0'. This content should also be served over HTTPS.

duhpoleta.ru/:1269 Mixed Content: The page at 'https://duhpoleta.ru/inspire-1/inspire-1-raw/kvadrokopter-dji-inspire-1-raw-s-2-pultami-ssd-obektivom-dop.-akkumulyator-3-ssd/'was loaded over HTTPS, but requested an insecure image 'http://duhpoleta.ru/images/companies/1/Pictures/%D0%9F%D1%80%D0%BE%D1%87%D0…%B8%D0%BD%D0%BA%D0%B8/%D0%9F%D1%80%D0%BE%D0%BC%D0%BE-min.png?1477601391060'. This content should also be served over HTTPS.

И так со всеми картинками на главной и в карточках товара. (Более 1000 карточек)

Можно ли как-то разом для всех картинок применить https, чтобы протокол работал корректно?

Заранее спасибо!

Всем привет!

Перешел на SSL (https) и столкнулся с тем, что протокол работает некорректно из-за картинок, которые все еще висят на http

Девелопер тулс говорят:

Mixed Content: The page at 'https://duhpoleta.ru/inspire-1/inspire-1-raw/kvadrokopter-dji-inspire-1-raw-s-2-pultami-ssd-obektivom-dop.-akkumulyator-3-ssd/'was loaded over HTTPS, but requested an insecure image 'http://clck.yandex.ru/redir/dtype=stred/pid=47/cid=2505/*http://grade.market.yandex.ru/?id=318998&action=image&size=0'. This content should also be served over HTTPS.

duhpoleta.ru/:1269 Mixed Content: The page at 'https://duhpoleta.ru/inspire-1/inspire-1-raw/kvadrokopter-dji-inspire-1-raw-s-2-pultami-ssd-obektivom-dop.-akkumulyator-3-ssd/'was loaded over HTTPS, but requested an insecure image 'http://duhpoleta.ru/images/companies/1/Pictures/%D0%9F%D1%80%D0%BE%D1%87%D0…%B8%D0%BD%D0%BA%D0%B8/%D0%9F%D1%80%D0%BE%D0%BC%D0%BE-min.png?1477601391060'. This content should also be served over HTTPS.

И так со всеми картинками на главной и в карточках товара. (Более 1000 карточек)

Можно ли как-то разом для всех картинок применить https, чтобы протокол работал корректно?

Заранее спасибо!

Домен: Duhpoleta.ru

(Пример на любой странице, например, https://duhpoleta.ru/phantom-3/phantom-3-standard/kvadrokopter-dji-phantom-3-standard/

(Переадресацию настраивал через cart-power модуль Cart-Power: HTTPS switcher

Keep HTTPS connection for all pages of the site

ВЕРСИЯ 1.0

Попробуйте настройку Настройки -> Настройки безопасности -> Безопасное соединение для витрины установить в Включить для всего сайта

Попробуйте настройку Настройки -> Настройки безопасности -> Безопасное соединение для витрины установить в Включить для всего сайта

ПредупреждениеНе удалось проверить защищенное соединение. Пожалуйста, убедитесь, что на вашем сервере установлен сертификат SSL. Подробную информацию ищите в Базе знаний.
Curl Error 51
To learn what caused the Curl error, look for your error number in this article.

Хотя на хостинге установлен и через модуль cat-power некоторые страницы отображаются через https

Попробуйте в функции fn_settings_actions_general_secure_auth (app/schemas/settings/actions.php) закоментировать код

		if (empty($content[1]) || $content[1] != 'OK') {
			// Disable https
			db_query("UPDATE ?:settings SET value = 'N' WHERE section_id = 'General' AND option_name LIKE 'secure\_%'");
			$new_value = 'N';
		fn_set_notification('W', fn_get_lang_var('warning'), fn_get_lang_var('warning_https_disabled'));
	}

ПредупреждениеНе удалось проверить защищенное соединение. Пожалуйста, убедитесь, что на вашем сервере установлен сертификат SSL. Подробную информацию ищите в Базе знаний.
Curl Error 51
To learn what caused the Curl error, look for your error number in this article.

Хотя на хостинге установлен и через модуль cat-power некоторые страницы отображаются через https

Это сообщение указывает на проблемы с SSL сертификатом либо с curl. Лучше всего найти причину проблемы, чтобы позже она не проявилась снова, но вы также можете отключить проверку так как посоветовал eComLabs

Попробуйте в функции fn_settings_actions_general_secure_auth (app/schemas/settings/actions.php) закоментировать код

		if (empty($content[1]) || $content[1] != 'OK') {
			// Disable https
			db_query("UPDATE ?:settings SET value = 'N' WHERE section_id = 'General' AND option_name LIKE 'secure\_%'");
			$new_value = 'N';
		fn_set_notification('W', fn_get_lang_var('warning'), fn_get_lang_var('warning_https_disabled'));
	}

Странно, у меня в этой директории только 2 файла: actions.functions.php и variants.functions.php и в них нет данного отрезка кода.

Странно, у меня в этой директории только 2 файла: actions.functions.php и variants.functions.php и в них нет данного отрезка кода.

Видимо другую версию посмотрел

fn_settings_actions_security_secure_storefront в app/schemas/settings/variants.functions.php

            if (empty($content) || $content != 'OK') {
                // Disable https
                Settings::instance()->updateValue('secure_storefront', 'none', 'Security');
                $new_value = 'none';
            $error = Http::getErrorFields();
            $error_warning = __('warning_https_is_disabled', array(
                '[href]' => Registry::get('config.resources.kb_https_failed_url'
                )));

            $error_warning .= fn_settings_actions_build_detailed_error_message($error);
            fn_set_notification('W', __('warning'), $error_warning);
        }

Видимо другую версию посмотрел

fn_settings_actions_security_secure_storefront в app/schemas/settings/variants.functions.php

            if (empty($content) || $content != 'OK') {
                // Disable https
                Settings::instance()->updateValue('secure_storefront', 'none', 'Security');
                $new_value = 'none';
            $error = Http::getErrorFields();
            $error_warning = __('warning_https_is_disabled', array(
                '[href]' => Registry::get('config.resources.kb_https_failed_url'
                )));

            $error_warning .= fn_settings_actions_build_detailed_error_message($error);
            fn_set_notification('W', __('warning'), $error_warning);
        }

Странно, у меня такого отрывка в коде нет, вот полный код:

<?php
/***************************************************************************
*                                                                          *
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev    *
*                                                                          *
* This  is  commercial  software,  only  users  who have purchased a valid *
* license  and  accept  to the terms of the  License Agreement can install *
* and use this program.                                                    *
*                                                                          *
****************************************************************************
* PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *
****************************************************************************/

use Tygh\Registry;

/**

  • Get languages list for customer language
    */
    function fn_settings_variants_appearance_frontend_default_language()
    {
    return fn_get_simple_languages();
    }

/**

  • Get languages list for admin language
    */
    function fn_settings_variants_appearance_backend_default_language()
    {
    return fn_get_simple_languages(true);
    }

/**

  • Get available formats, supported by currently used image manipulation library
    */
    function fn_settings_variants_thumbnails_convert_to()
    {
    return fn_get_supported_image_format_variants();
    }

/**

  • Get list of objects, available to search through
    */
    function fn_settings_variants_general_search_objects()
    {
    return fn_search_get_objects();
    }

function fn_settings_variants_appearance_default_products_sorting()
{
return fn_settings_variants_appearance_available_product_list_sortings();
}

function fn_settings_variants_appearance_default_products_view()
{
return fn_get_products_views(true, true);
}

function fn_settings_variants_appearance_default_products_view_templates()
{
return fn_get_products_views(true);
}

function fn_settings_variants_appearance_default_product_details_view()
{
return fn_get_product_details_views();
}

function fn_settings_variants_appearance_default_wysiwyg_editor()
{
$editors_path = Registry::get(‘config.dir.root’) . ‘/js/tygh/editors’;
$editors = fn_get_dir_contents($editors_path , false, true, ‘js’);

$return = array();
foreach ($editors as $editor) {
    $is_disabled = fn_get_file_description($editors_path . '/' . $editor, 'disabled', true);
    if ($is_disabled == 'Y') {
        continue;
    }

    $editor_description = fn_get_file_description($editors_path . '/' . $editor, 'editior-description');
    $return[fn_basename($editor, '.editor.js')] = $editor_description;
}

return $return;

}

function fn_settings_variants_appearance_default_image_previewer()
{
$previewers_path = Registry::get(‘config.dir.root’) . ‘/js/tygh/previewers’;
$previewers = fn_get_dir_contents($previewers_path, false, true, ‘js’);

$return = array();
foreach ($previewers as $previewer) {
    $previewer_description = fn_get_file_description($previewers_path . '/' . $previewer, 'previewer-description');
    $return[fn_basename($previewer, '.previewer.js')] = $previewer_description;
}

return $return;

}

/**

  • Gets settings variants for ‘Available product list sortings’ option

  • @return array Possible sortings for product list
    */
    function fn_settings_variants_appearance_available_product_list_sortings()
    {
    $sortings = fn_get_products_sorting();
    $orders = fn_get_products_sorting_orders();

    $return = array();

    foreach ($sortings as $option => $info) {
    foreach ($orders as $order) {
    if (!isset($info[$order]) || $info[$order] !== false) {
    $label = ‘sort_by_’ . $option . ‘_’ . $order;
    $return[$option . ‘-’ . $order] = __($label);
    }
    }
    }

    return $return;
    }

/**

  • Gets settings variants for the option ‘Image verification: Use for’

  • @return array Available objects
    */
    function fn_settings_variants_image_verification_use_for()
    {
    $objects = array(
    ‘login’ => __(‘use_for_login’),
    ‘register’ => __(‘use_for_register’),
    ‘checkout’ => __(‘use_for_checkout’),
    ‘track_orders’ => __(‘use_for_track_orders’),
    );

    /**

    • Add objects that should use ‘Image verification’
    • @param array $objects Available objects
      */
      fn_set_hook(‘settings_variants_image_verification_use_for’, $objects);

    return $objects;
    }

Странно, у меня такого отрывка в коде нет, вот полный код:

А в actions.functions.php ?

А в actions.functions.php ?

Закомментировал, теперь выглядит вот так:

<?php
/***************************************************************************
*                                                                          *
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev    *
*                                                                          *
* This  is  commercial  software,  only  users  who have purchased a valid *
* license  and  accept  to the terms of the  License Agreement can install *
* and use this program.                                                    *
*                                                                          *
****************************************************************************
* PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *
****************************************************************************/

use Tygh\Helpdesk;
use Tygh\Http;
use Tygh\Registry;
use Tygh\Settings;

/**

  • Check if secure connection is available
    */
    function fn_settings_actions_security_secure_storefront(&$new_value, $old_value)
    {
    if ($new_value !== ‘none’) {
    $company_id = fn_get_runtime_company_id();

     if (!fn_allowed_for('ULTIMATE') || (fn_allowed_for('ULTIMATE') && $company_id)) {
    
         $suffix = '';
         if (fn_allowed_for('ULTIMATE')) {
             $suffix = '&company_id=' . $company_id;
         }
    
         $storefront_url = fn_url('index.index?check_https=Y' . $suffix, 'C', 'https');
    
         $content = Http::get($storefront_url);
        
       
             // Disable https
             Settings::instance()->updateValue('secure_storefront', 'none', 'Security');
             $new_value = 'none';
    
             $error = Http::getErrorFields();
             $error_warning = __('warning_https_is_disabled', array(
                 '[href]' => Registry::get('config.resources.kb_https_failed_url'
                 )));
    
             $error_warning .= fn_settings_actions_build_detailed_error_message($error);
             fn_set_notification('W', __('warning'), $error_warning);
         }
     }
    

    }
    }

/**

  • Check if secure connection is available
    */
    function fn_settings_actions_security_secure_admin(&$new_value, $old_value)
    {
    if ($new_value !== ‘N’) {
    $suffix = ‘’;
    if (fn_allowed_for(‘ULTIMATE’)) {
    $suffix = ‘&company_id=’ . Registry::get(‘runtime.company_id’);
    }

     $admin_url = fn_url('index.index?check_https=Y' . $suffix, 'A', 'https');
    
     $content = Http::get($admin_url);
    

    //
    // if (empty($content) || $content != ‘OK’) {
    // Disable https
    // Settings::instance()->updateValue(‘secure_admin’, ‘N’, ‘Security’);
    // $new_value = ‘N’;
    //
    // $error = Http::getErrorFields();
    // $error_warning = __(‘warning_https_is_disabled’, array(
    // ‘[href]’ => Registry::get(‘config.resources.kb_https_failed_url’
    // )));

    // $error_warning .= fn_settings_actions_build_detailed_error_message($error);
    // fn_set_notification(‘W’, __(‘warning’), $error_warning);
    //}
    }
    }

/**

  • Alter order initial ID
    */
    function fn_settings_actions_general_order_start_id(&$new_value, $old_value)
    {
    if (intval($new_value)) {
    db_query(“ALTER TABLE ?:orders AUTO_INCREMENT = ?i”, $new_value);
    }
    }

/**

  • Save empty value if has no checked check boxes
    */
    function fn_settings_actions_general_search_objects(&$new_value, $old_value)
    {
    if ($new_value == ‘N’) {
    $new_value = ‘’;
    }
    }

function fn_settings_actions_upgrade_center_license_number(&$new_value, &$old_value)
{
if (empty($new_value)) {
$new_value = $old_value;

    fn_set_notification('E', __('error'), __('license_number_cannot_be_empty'));

    return false;
}

$mode = fn_get_storage_data('store_mode');

$data = Helpdesk::getLicenseInformation($new_value);
list($license_status, $updates, $messages) = Helpdesk::parseLicenseInformation($data, Tygh::$app['session']['auth'], true);

if ($license_status == 'ACTIVE' && ($mode != 'full' || empty($old_value))) {
    fn_set_storage_data('store_mode', 'full');
    Tygh::$app['session']['mode_recheck'] = true;
} else {
    if ($license_status != 'ACTIVE') {
        $new_value = $old_value;
    }
}

}

function fn_settings_actions_appearance_backend_default_language(&$new_value, &$old_value)
{
if (fn_allowed_for(‘ULTIMATE’)) {
db_query(“UPDATE ?:companies SET lang_code = ?s”, $new_value);
}
}

if (fn_allowed_for(‘ULTIMATE’)) {
function fn_settings_actions_stores_share_users(&$new_value, $old_value)
{
$emails = fn_get_double_user_emails();
if (!empty($emails)) {
fn_delete_notification(‘changes_saved’);
fn_set_notification(‘E’, __(‘error’), __(‘ult_share_users_setting_disabled’));
$new_value = $old_value;
}
}
}

function fn_settings_actions_appearance_notice_displaying_time(&$new_value, $old_value)
{
$new_value = fn_convert_to_numeric($new_value);
}

function fn_settings_actions_build_detailed_error_message($error) {

$detailed_message = "";

if (!empty($error['error_number'])) {
    $transport_prefix = __('http_transport_error_prefix_' . $error['transport']);

    $detailed_message .= "<br/><strong>{$transport_prefix} {$error['error_number']}</strong>";

    if ($error['transport'] == 'curl') {
        $error_description_paragraph = __('curl_error_code_reference_link',
            array(
                '[href]' => Registry::get('config.resources.curl_error_interpretation'
                )));
        $detailed_message .= "<br/>" . $error_description_paragraph;

    }
}
return $detailed_message;

}

Но все равно проблема актуальна.

Но все равно проблема актуальна.

Не в той функции сделали. Вы поправили ту, которая с админкой работает

Не в той функции сделали. Вы поправили ту, которая с админкой работает

Да, спасибо, ошибся.

Но у нужной части нет строки

if (empty($content) || $content != 'OK') {

а если комментировать без нее сервер, то пишет:

Sorry, service is temporarily unavailable.

Должна быть строка в вашей версии, может быть ранее удалили?

Должна быть строка в вашей версии, может быть ранее удалили?

Сделал, теперь вот так:

<?php
/***************************************************************************
*                                                                          *
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev    *
*                                                                          *
* This  is  commercial  software,  only  users  who have purchased a valid *
* license  and  accept  to the terms of the  License Agreement can install *
* and use this program.                                                    *
*                                                                          *
****************************************************************************
* PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *
****************************************************************************/

use Tygh\Helpdesk;
use Tygh\Http;
use Tygh\Registry;
use Tygh\Settings;

/**

  • Check if secure connection is available
    */
    function fn_settings_actions_security_secure_storefront(&$new_value, $old_value)
    {
    if ($new_value !== ‘none’) {
    $company_id = fn_get_runtime_company_id();

     if (!fn_allowed_for('ULTIMATE') || (fn_allowed_for('ULTIMATE') && $company_id)) {
    
         $suffix = '';
         if (fn_allowed_for('ULTIMATE')) {
             $suffix = '&company_id=' . $company_id;
         }
    
         $storefront_url = fn_url('index.index?check_https=Y' . $suffix, 'C', 'https');
    
         $content = Http::get($storefront_url);
        
       // if (empty($content) || $content != 'OK') {
             // Disable https
       //    Settings::instance()->updateValue('secure_storefront', 'none', 'Security');
       //    $new_value = 'none';
       //
       //    $error = Http::getErrorFields();
       //    $error_warning = __('warning_https_is_disabled', array(
       //        '[href]' => Registry::get('config.resources.kb_https_failed_url'
       //        )));
       //
       //    $error_warning .= fn_settings_actions_build_detailed_error_message($error);
       //    fn_set_notification('W', __('warning'), $error_warning);
         //}
     }
    

    }
    }

/**

  • Check if secure connection is available
    */
    function fn_settings_actions_security_secure_admin(&$new_value, $old_value)
    {
    if ($new_value !== ‘N’) {
    $suffix = ‘’;
    if (fn_allowed_for(‘ULTIMATE’)) {
    $suffix = ‘&company_id=’ . Registry::get(‘runtime.company_id’);
    }

     $admin_url = fn_url('index.index?check_https=Y' . $suffix, 'A', 'https');
    
     $content = Http::get($admin_url);
    
     if (empty($content) || $content != 'OK') {
         // Disable https
       Settings::instance()->updateValue('secure_admin', 'N', 'Security');
               $new_value = 'N';
    
       $error = Http::getErrorFields();
       $error_warning = __('warning_https_is_disabled', array(
               '[href]' => Registry::get('config.resources.kb_https_failed_url'
               )));
    
       $error_warning .= fn_settings_actions_build_detailed_error_message($error);
       fn_set_notification('W', __('warning'), $error_warning);
    

    }
    }
    }

/**

  • Alter order initial ID
    */
    function fn_settings_actions_general_order_start_id(&$new_value, $old_value)
    {
    if (intval($new_value)) {
    db_query(“ALTER TABLE ?:orders AUTO_INCREMENT = ?i”, $new_value);
    }
    }

/**

  • Save empty value if has no checked check boxes
    */
    function fn_settings_actions_general_search_objects(&$new_value, $old_value)
    {
    if ($new_value == ‘N’) {
    $new_value = ‘’;
    }
    }

function fn_settings_actions_upgrade_center_license_number(&$new_value, &$old_value)
{
if (empty($new_value)) {
$new_value = $old_value;

    fn_set_notification('E', __('error'), __('license_number_cannot_be_empty'));

    return false;
}

$mode = fn_get_storage_data('store_mode');

$data = Helpdesk::getLicenseInformation($new_value);
list($license_status, $updates, $messages) = Helpdesk::parseLicenseInformation($data, Tygh::$app['session']['auth'], true);

if ($license_status == 'ACTIVE' && ($mode != 'full' || empty($old_value))) {
    fn_set_storage_data('store_mode', 'full');
    Tygh::$app['session']['mode_recheck'] = true;
} else {
    if ($license_status != 'ACTIVE') {
        $new_value = $old_value;
    }
}

}

function fn_settings_actions_appearance_backend_default_language(&$new_value, &$old_value)
{
if (fn_allowed_for(‘ULTIMATE’)) {
db_query(“UPDATE ?:companies SET lang_code = ?s”, $new_value);
}
}

if (fn_allowed_for(‘ULTIMATE’)) {
function fn_settings_actions_stores_share_users(&$new_value, $old_value)
{
$emails = fn_get_double_user_emails();
if (!empty($emails)) {
fn_delete_notification(‘changes_saved’);
fn_set_notification(‘E’, __(‘error’), __(‘ult_share_users_setting_disabled’));
$new_value = $old_value;
}
}
}

function fn_settings_actions_appearance_notice_displaying_time(&$new_value, $old_value)
{
$new_value = fn_convert_to_numeric($new_value);
}

function fn_settings_actions_build_detailed_error_message($error) {

$detailed_message = "";

if (!empty($error['error_number'])) {
    $transport_prefix = __('http_transport_error_prefix_' . $error['transport']);

    $detailed_message .= "<br/><strong>{$transport_prefix} {$error['error_number']}</strong>";

    if ($error['transport'] == 'curl') {
        $error_description_paragraph = __('curl_error_code_reference_link',
            array(
                '[href]' => Registry::get('config.resources.curl_error_interpretation'
                )));
        $detailed_message .= "<br/>" . $error_description_paragraph;

    }
}
return $detailed_message;

}

Но проблема все равно актуальна. Подскажите, пожалуйста, в чем может быть дело?

Сделал, теперь вот так:

<?php
/***************************************************************************
*                                                                          *
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev    *
*                                                                          *
* This  is  commercial  software,  only  users  who have purchased a valid *
* license  and  accept  to the terms of the  License Agreement can install *
* and use this program.                                                    *
*                                                                          *
****************************************************************************
* PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *
****************************************************************************/

use Tygh\Helpdesk;
use Tygh\Http;
use Tygh\Registry;
use Tygh\Settings;

/**

  • Check if secure connection is available
    */
    function fn_settings_actions_security_secure_storefront(&$new_value, $old_value)
    {
    if ($new_value !== ‘none’) {
    $company_id = fn_get_runtime_company_id();

     if (!fn_allowed_for('ULTIMATE') || (fn_allowed_for('ULTIMATE') && $company_id)) {
    
         $suffix = '';
         if (fn_allowed_for('ULTIMATE')) {
             $suffix = '&company_id=' . $company_id;
         }
    
         $storefront_url = fn_url('index.index?check_https=Y' . $suffix, 'C', 'https');
    
         $content = Http::get($storefront_url);
        
       // if (empty($content) || $content != 'OK') {
             // Disable https
       //    Settings::instance()->updateValue('secure_storefront', 'none', 'Security');
       //    $new_value = 'none';
       //
       //    $error = Http::getErrorFields();
       //    $error_warning = __('warning_https_is_disabled', array(
       //        '[href]' => Registry::get('config.resources.kb_https_failed_url'
       //        )));
       //
       //    $error_warning .= fn_settings_actions_build_detailed_error_message($error);
       //    fn_set_notification('W', __('warning'), $error_warning);
         //}
     }
    

    }
    }

/**

  • Check if secure connection is available
    */
    function fn_settings_actions_security_secure_admin(&$new_value, $old_value)
    {
    if ($new_value !== ‘N’) {
    $suffix = ‘’;
    if (fn_allowed_for(‘ULTIMATE’)) {
    $suffix = ‘&company_id=’ . Registry::get(‘runtime.company_id’);
    }

     $admin_url = fn_url('index.index?check_https=Y' . $suffix, 'A', 'https');
    
     $content = Http::get($admin_url);
    
     if (empty($content) || $content != 'OK') {
         // Disable https
       Settings::instance()->updateValue('secure_admin', 'N', 'Security');
               $new_value = 'N';
    
       $error = Http::getErrorFields();
       $error_warning = __('warning_https_is_disabled', array(
               '[href]' => Registry::get('config.resources.kb_https_failed_url'
               )));
    
       $error_warning .= fn_settings_actions_build_detailed_error_message($error);
       fn_set_notification('W', __('warning'), $error_warning);
    

    }
    }
    }

/**

  • Alter order initial ID
    */
    function fn_settings_actions_general_order_start_id(&$new_value, $old_value)
    {
    if (intval($new_value)) {
    db_query(“ALTER TABLE ?:orders AUTO_INCREMENT = ?i”, $new_value);
    }
    }

/**

  • Save empty value if has no checked check boxes
    */
    function fn_settings_actions_general_search_objects(&$new_value, $old_value)
    {
    if ($new_value == ‘N’) {
    $new_value = ‘’;
    }
    }

function fn_settings_actions_upgrade_center_license_number(&$new_value, &$old_value)
{
if (empty($new_value)) {
$new_value = $old_value;

    fn_set_notification('E', __('error'), __('license_number_cannot_be_empty'));

    return false;
}

$mode = fn_get_storage_data('store_mode');

$data = Helpdesk::getLicenseInformation($new_value);
list($license_status, $updates, $messages) = Helpdesk::parseLicenseInformation($data, Tygh::$app['session']['auth'], true);

if ($license_status == 'ACTIVE' && ($mode != 'full' || empty($old_value))) {
    fn_set_storage_data('store_mode', 'full');
    Tygh::$app['session']['mode_recheck'] = true;
} else {
    if ($license_status != 'ACTIVE') {
        $new_value = $old_value;
    }
}

}

function fn_settings_actions_appearance_backend_default_language(&$new_value, &$old_value)
{
if (fn_allowed_for(‘ULTIMATE’)) {
db_query(“UPDATE ?:companies SET lang_code = ?s”, $new_value);
}
}

if (fn_allowed_for(‘ULTIMATE’)) {
function fn_settings_actions_stores_share_users(&$new_value, $old_value)
{
$emails = fn_get_double_user_emails();
if (!empty($emails)) {
fn_delete_notification(‘changes_saved’);
fn_set_notification(‘E’, __(‘error’), __(‘ult_share_users_setting_disabled’));
$new_value = $old_value;
}
}
}

function fn_settings_actions_appearance_notice_displaying_time(&$new_value, $old_value)
{
$new_value = fn_convert_to_numeric($new_value);
}

function fn_settings_actions_build_detailed_error_message($error) {

$detailed_message = "";

if (!empty($error['error_number'])) {
    $transport_prefix = __('http_transport_error_prefix_' . $error['transport']);

    $detailed_message .= "<br/><strong>{$transport_prefix} {$error['error_number']}</strong>";

    if ($error['transport'] == 'curl') {
        $error_description_paragraph = __('curl_error_code_reference_link',
            array(
                '[href]' => Registry::get('config.resources.curl_error_interpretation'
                )));
        $detailed_message .= "<br/>" . $error_description_paragraph;

    }
}
return $detailed_message;

}

Но проблема все равно актуальна. Подскажите, пожалуйста, в чем может быть дело?

надо на месте смотреть, почему так, чтобы на кофейной гуще не гадать

надо на месте смотреть, почему так, чтобы на кофейной гуще не гадать

Давайте сделаем. Что для этого нужно?

При переходе на ssl также столкнулся с этим, но дело было не в картинках, которые у товаров, а в картинках, которые добавлялись в информационные страницы - у них висели старые ссылки (http), на сайте не так много инф.страниц, просто руками все ссылки переписал и все ок. На картинки у товаров ssl не ругается.

Давайте сделаем. Что для этого нужно?

Временный доступ в личку

как решилось?
столкнулся с такой же проблемой. не переписывается адрес картинки с http на https