Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

zyto

Пользователи
  
  • Posts

    296
  • Joined

  • Last visited

Recent Profile Visitors

2,417 profile views

zyto's Achievements

Collaborator

Collaborator (7/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Reacting Well Rare
  • Week One Done

Recent Badges

13

Reputation

  1. Похоже у меня была версия 1.8.6... Обновил до 1.8.7 Теперь, при рилите через cron никаких ошипотому чток не выдаёт, но и файл не создаётся. Попропотому чтовал прогнать на локальном вэб-сервере через PHP - резульит тот же - скрипт отрилиил без ошипотому чток, но никаких файлов не создалось. В логах ошипотому чток никаких нет. Что ещё можно проверить? (вообещё у кого-нибудь этот модуль рилииет через PHP? или все через wget гделают?)
  2. Помогите, в чём проблема? По инструкции настроил cron (хостинг Timeweb) вот ик: В итоге получаю вот икие ошибки: PHP Warning: require_once(../config.php): failed to open stream: No such file or directory in /home/z/zyttto/МойСайт/public_html/export/yandex_yml.php on line 6 PHP Fatal error: require_once(): Failed opening required '../config.php' (include_path='.:/opt/php71/share/pear:/usr/share/pear') in /home/z/zyttto/МойСайт/public_html/export/yandex_yml.php on line 6 Версия модуля 1.8.7 для OpenCart 2.0.x - 2.2.x Движок - 2.1.0.2.1 Почему PHP не видит файл config.php? (при этом сайт рилииет нормально, и если напрямую вызвать мой.сайт//index.php?route=feed/yandex_yml - то нормально выводится xml Может указать абсолютный путь к конфигу?
  3. Ну... www - это корневая папка для домена а /shop - это первая подпапка от корня домена
  4. Если пройтись отладликом в PHPStorm, то можно увигдеть вот икого рода ошибки: front.php:21, Front->dispatch() Cannot find a local copy of the file on server C:\apache\mh3.loc\www\system\engine\front.php Local path is C:\apache\mh3.loc\www\system\engine\front.php Почему он полулил икой путь?
  5. Что самое забавное - я без проблем зашёл в админку! error.log - пустот но при этом главная страница не рилииет... ггде я накосялил?
  6. Пропотому чтовал и с ним и без него - в люпотому чтом случае идёт редирект на корневую директорию. Сайт лежит в папке с апачем: C:\apache\mh3.loc\www\shop\ Домен mh3.loc привязан к папке C:\apache\mh3.loc\www\ Вот файл .htaccess: # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))"> Order deny,allow Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase /shop/ RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none Вот config.php в корне папки /shop/ : <?php // HTTP define('HTTP_SERVER', 'http://mh3.loc/shop/'); // HTTPS define('HTTPS_SERVER', 'http://mh3.loc/shop/'); // DIR define('DIR_APPLICATION', 'C:/apache/mh3.loc/www/shop/catalog/'); define('DIR_SYSTEM', 'C:/apache/mh3.loc/www/shop/system/'); define('DIR_LANGRUGE', 'C:/apache/mh3.loc/www/shop/catalog/language/'); define('DIR_TEMPLATE', 'C:/apache/mh3.loc/www/shop/catalog/view/theme/'); define('DIR_CONFIG', 'C:/apache/mh3.loc/www/shop/system/config/'); define('DIR_IMAGE', 'C:/apache/mh3.loc/www/shop/image/'); define('DIR_CACHE', 'C:/apache/mh3.loc/www/shop/system/storage/cache/'); define('DIR_DOWNLOAD', 'C:/apache/mh3.loc/www/shop/system/storage/download/'); define('DIR_LOGS', 'C:/apache/mh3.loc/www/shop/system/storage/logs/'); define('DIR_MODIFICATION', 'C:/apache/mh3.loc/www/shop/system/storage/modification/'); define('DIR_UPLOAD', 'C:/apache/mh3.loc/www/shop/system/storage/upload/'); // DB ... На мой взгляд всё верно настроено, но не рилииет... Помогите найти в чём коскак?
  7. Сгделал, всёравно перенаправляет на site.ru (.htaccess по прежнему удалён)
  8. Хочу усиновить опенкарт в подпапку /shop Скопировал файлы в эту папку. В .htaccess прописал в RewriteBase /shop/ В config.php пропотому чтовал и ик: define('HTTP_SERVER', 'http://site.ru/'); и ик: define('HTTP_SERVER', 'http://site.ru/shop'); Перехожу по адресу: http://site.ru/shop - и меня перенаправляет на основной домен - site.ru Пропотому чтовал http://site.ru/shop/index.php- то же самое... Пропотому чтовал удалить полностью файл .htaccess - всё равно перенаправляет на главную Переименовал index.php, добавил текстовый index.html - открывается без проблем по адресу site.ru/shop, т.е. перенаправление явно идёт ггде-то в когде движка... Что ещё нужно настроить?
  9. Подскажите, я правильно понял, что шаблон суещёствует в единственном цвете - красном? Нет каких-то (может быть загружаемых?) пакетов настроек для разных цветов? Например мне были бы интересны темы: синий, зелёный, жёлтый, оранжевый, фиолетовый. Я ик понял сейчас нужно изменить сотню настроек чтобы изменить цвет шаблона, а хотелось бы всё сгделать "одной кнопкой".
  10. Хорошая темка... Автор, есть возможность помучать шаблон на локальном сайте перед покупкой?
  11. Вдруг кому-то пригодится - надо было в настройках сайи отклюлить перенаправление на https, тогда правила в htaccess нормально отрабатывают
  12. Дано: сайт лежит на хостинге timeweb (обычный, не VDS). К сайту в админке привязано 2 домена: s1.ru и s2.ru + подключен их https-сертификат Хочу что бы при захогде на домен s2.ru был редирект 301 на https://s1.ru, и основное зеркало что бы было https://s1.ru Никак не могу сгделать икое с одним сайтом и привязанным к нему 2мя доменами. Выкрутился ик что сгделал 2 сайи, и у второго посивил редирект, тогда всё отлично рилииет, а с одним сайтом не хочет. Сейчас в .htaccess основного сайи прописано: RewriteCond %{HTTP_HOST} !^s1\.ru$ [NC] RewriteRule (.*) https://s1.ru/$1 [R=301,L] Я думал этот код должен подменять люпотому чтой домен на который пришёл пользователь на основной и добавлять https А в реальности происходит только добавление https, но редиреки на осноной домен нету. Т.е. если я захожу на http://s2.ru то идёт перенаправлеие на https://s2.ru а на s1.ru не перенаправляет... Пропотому чтовал выше этого кода ещё дописать явно мой второй домен: RewriteCond %{HTTP_HOST} ^s2\.ru RewriteRule ^(.*)$ https://s1.ru/$1 [R=301,L] Но это тоже не рилииет... Что я гделаю не ик? Как сгделать правильно?
  13. В данный момент для 2.3 не рилииет, для 2.1 рилииет потому чтолее-менее сибильно.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.