Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

[Поддержка] SEO Fix HTTPS


Recommended Posts

Марк, посмотри на гитхабе ocStore, кажется этот баг уже фиксили

Это отлично.

Значит фикс для тех у кого старые версии и у кого seo_url.php основной ЧПУ формирователь :)

Надіслати
Поділитися на інших сайтах

Марк, посмотри на гитхабе ocStore, кажется этот баг уже фиксили

Это немного не совместимая фиксация с говномодулями

Дело в том что по каким то причинам кривые модули могут изменять $this->config->get('config_ssl'); и там может оказаться http

Встречал часто такое

define('HTTPS_SERVER', 'https://site/');

А $this->config->get('config_ssl')  отдает http://site/

Поэтому лучше явно прописывать

Надіслати
Поділитися на інших сайтах

Тоже не чего не изменилось в sitemap ссылки http Google Sitemap Fast

Что все ссылки http ? Или какие ?

  • +1 1
Надіслати
Поділитися на інших сайтах

Марк, спасибо

 

хороший фикс, но не рабочий к сожалению ((( точнее не полностью рабочий

 

В админке перестает работать API 

 

Внимание: У Вас нет разрешения на доступ к API!

 

а в заказе:

 

ВНИМАНИЕ: API ключ не действителен!!

 

можно как-то пофиксить для OcStore 2.1.0.2.1?

Надіслати
Поділитися на інших сайтах


 

Марк, спасибо

 

хороший фикс, но не рабочий к сожалению ((( точнее не полностью рабочий

 

В админке перестает работать API 

 

Внимание: У Вас нет разрешения на доступ к API!

 

а в заказе:

 

ВНИМАНИЕ: API ключ не действителен!!

 

можно как-то пофиксить для OcStore 2.1.0.2.1?

 

Решено, рецепт от rb2 https://opencartforum.com/topic/58206-%D0%BD%D0%B5-%D1%80%D0%B5%D0%B4%D0%B0%D0%BA%D1%82%D0%B8%D1%80%D1%83%D0%B5%D1%82%D1%81%D1%8F-%D0%B7%D0%B0%D0%BA%D0%B0%D0%B7-ocstore-2xx-https/?do=findComment&comment=519238

Змінено користувачем Rashp
Надіслати
Поділитися на інших сайтах


Решено, рецепт от rb2 здесь

Это баг работы  https ocStore 2, а не фикса :)

Надіслати
Поділитися на інших сайтах

Бронебойно добавил

 

        if ($this->config->get('config_secure')) {
            $this->request->server['HTTPS'] = true;
            $this->config->set('config_url', HTTPS_SERVER);
        }

 

Надіслати
Поділитися на інших сайтах

еще можно заменить в admin/controller/setting/store.php

'url'      => HTTP_CATALOG,
'url'      => ($this->config->get('config_secure') ? HTTPS_CATALOG : HTTP_CATALOG),
Змінено користувачем jvz
  • +1 1
Надіслати
Поділитися на інших сайтах

 

еще можно заменить в admin/controller/setting/store.php

'url'      => HTTP_CATALOG,
'url'      => ($this->config->get('config_secure') ? HTTPS_CATALOG : HTTP_CATALOG),

Спасибо!

Коллеги, скидывайте где что нужно менять (баги opencart)

  • +1 1
Надіслати
Поділитися на інших сайтах

Народ, нужны костыли в админке к редактированию заказа (

 

jquery-2.1.1.min.js:4 Mixed Content: The page at 'https://site.ru/admin/index.php?route=sale/order/edit&token=7tfBlb7we91Xr2R0qEajoCWePAjXtCfv&order_id=1030' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://site.ru/index.php?route=api/login'. This request has been blocked; the content must be served over HTTPS.send @ jquery-2.1.1.min.js:4
jquery-2.1.1.min.js:4 XMLHttpRequest cannot load http://site.ru/index.php?route=api/login. Failed to start loading.send @ jquery-2.1.1.min.js:4
jquery-2.1.1.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
index.php:9 Uncaught TypeError: Cannot read property 'timepicker' of undefinedsend @ jquery-2.1.1.min.js:4
jquery-2.1.1.min.js:4 Mixed Content: The page at 'https://site.ru/admin/index.php?route=sale/order/edit&token=7tfBlb7we91Xr2R0qEajoCWePAjXtCfv&order_id=1030' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://site.ru/index.php?route=api/customer&token='. This request has been blocked; the content must be served over HTTPS.send @ jquery-2.1.1.min.js:4
jquery-2.1.1.min.js:4 XMLHttpRequest cannot load http://site.ru/index.php?route=api/customer&token=. Failed to start loading.send @ jquery-2.1.1.min.js:4
jquery-2.1.1.min.js:4 Mixed Content: The page at 'https://site.ru/admin/index.php?route=sale/order/edit&token=7tfBlb7we91Xr2R0qEajoCWePAjXtCfv&order_id=1030' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://site.ru/index.php?route=api/customer&token='. This request has been blocked; the content must be served over HTTPS.send @ jquery-2.1.1.min.js:4
jquery-2.1.1.min.js:4 XMLHttpRequest cannot load http://site.ru/index.php?route=api/customer&token=. Failed to start loading.send @ jquery-2.1.1.min.js:4

Надіслати
Поділитися на інших сайтах


подскажите пожалуйста, установлен ssl

но вот в консоле браузера показывает множество ошибок по типу:

 

Mixed Content: The page at  was loaded over HTTPS, but requested an insecure font 'http://fonts.gstatic.com/s/opensans/v10/RjgO7rYTmqiVp7vzi-Q5UVtXRa8TVwTICgirnJhmVJw.woff2'. This request has been blocked; the content must be served over HTTPS.

 

и таких ошибок много строк

Надіслати
Поділитися на інших сайтах


подскажите пожалуйста, установлен ssl

но вот в консоле браузера показывает множество ошибок по типу:

 

Mixed Content: The page at  was loaded over HTTPS, but requested an insecure font 'http://fonts.gstatic.com/s/opensans/v10/RjgO7rYTmqiVp7vzi-Q5UVtXRa8TVwTICgirnJhmVJw.woff2'. This request has been blocked; the content must be served over HTTPS.

 

и таких ошибок много строк

 

Это у вас в теме скорее всего уже "так" прописано.

Надіслати
Поділитися на інших сайтах

Народ, нужны костыли в админке к редактированию заказа (

 

jquery-2.1.1.min.js:4 Mixed Content: The page at 'https://site.ru/admin/index.php?route=sale/order/edit&token=7tfBlb7we91Xr2R0qEajoCWePAjXtCfv&order_id=1030' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://site.ru/index.php?route=api/login'. This request has been blocked; the content must be served over HTTPS.send @ jquery-2.1.1.min.js:4

jquery-2.1.1.min.js:4 XMLHttpRequest cannot load http://site.ru/index.php?route=api/login. Failed to start loading.send @ jquery-2.1.1.min.js:4

jquery-2.1.1.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

index.php:9 Uncaught TypeError: Cannot read property 'timepicker' of undefinedsend @ jquery-2.1.1.min.js:4

jquery-2.1.1.min.js:4 Mixed Content: The page at 'https://site.ru/admin/index.php?route=sale/order/edit&token=7tfBlb7we91Xr2R0qEajoCWePAjXtCfv&order_id=1030' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://site.ru/index.php?route=api/customer&token='. This request has been blocked; the content must be served over HTTPS.send @ jquery-2.1.1.min.js:4

jquery-2.1.1.min.js:4 XMLHttpRequest cannot load http://site.ru/index.php?route=api/customer&token=. Failed to start loading.send @ jquery-2.1.1.min.js:4

jquery-2.1.1.min.js:4 Mixed Content: The page at 'https://site.ru/admin/index.php?route=sale/order/edit&token=7tfBlb7we91Xr2R0qEajoCWePAjXtCfv&order_id=1030' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://site.ru/index.php?route=api/customer&token='. This request has been blocked; the content must be served over HTTPS.send @ jquery-2.1.1.min.js:4

jquery-2.1.1.min.js:4 XMLHttpRequest cannot load http://site.ru/index.php?route=api/customer&token=. Failed to start loading.send @ jquery-2.1.1.min.js:4

Я добавил фикс в новой версии - обновите модификатор

Надіслати
Поділитися на інших сайтах

Я добавил фикс в новой версии - обновите модификатор

 

Обновил, не помогло (

 

как всегда сам задал вопрос, сам и починил )))

 

Спасибо Waha

 

При рекдактирвании заказа выскакивает alert с error undefiend

в Контроллере admin\controller\sale\order.php в строке 630 находим

        $data['stores'][] = array(

            'store_id' => 0,

            'name' => $this->language->get('text_default'),

            'href' => HTTP_CATALOG

        );

Снова HTTP_CATALOG, меняем в admin/config.php все http на https

Надіслати
Поділитися на інших сайтах


 

еще можно заменить в admin/controller/setting/store.php

'url'      => HTTP_CATALOG,
'url'      => ($this->config->get('config_secure') ? HTTPS_CATALOG : HTTP_CATALOG),

 

И в admin/controller/sale/order.php  почти тоже

    <file path="admin/controller/sale/order.php" error="skip">
    <operation error="skip">
        <search><![CDATA['href'     => HTTP_CATALOG]]></search>
        <add position="replace"><![CDATA['href'      => ($this->config->get('config_secure') ? HTTPS_CATALOG : HTTP_CATALOG)]]></add>
    </operation>
    </file>
Надіслати
Поділитися на інших сайтах

Обновил, не помогло (

 

как всегда сам задал вопрос, сам и починил )))

 

Спасибо Waha

 

При рекдактирвании заказа выскакивает alert с error undefiend

в Контроллере admin\controller\sale\order.php в строке 630 находим

        $data['stores'][] = array(

            'store_id' => 0,

            'name' => $this->language->get('text_default'),

            'href' => HTTP_CATALOG

        );

Снова HTTP_CATALOG, меняем в admin/config.php все http на https

 

В фиксе есть код патча

Видно не совпадает с вашим

 

Лучше заменить на 'href'      => ($this->config->get('config_secure') ? HTTPS_CATALOG : HTTP_CATALOG)

Надіслати
Поділитися на інших сайтах

не работает такой вариант

А у вас вообще включен SSL, в настройках магазина ?

Надіслати
Поділитися на інших сайтах

Конэчно  :-D

А модификаторы обновили ?

Надіслати
Поділитися на інших сайтах

Створіть аккаунт або увійдіть для коментування

Ви повинні бути користувачем, щоб залишити коментар

Створити обліковий запис

Зареєструйтеся для отримання облікового запису. Це просто!

Зареєструвати аккаунт

Вхід

Уже зареєстровані? Увійдіть тут.

Вхід зараз

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.