Jump to content
Sign in to follow this  
Fant0M

Проблемы с первыми настройками

Recommended Posts

Установил свежий OCStore. Сразу возникла проблема:

1.

Unknown: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/4.0/no DST' instead in /***/www/catalog/controller/common/footer.php on line 46

2. Включил ЧПУ, не работает, ссылки по прежнему старого формата :(

3. Включил режим обслуживания сайта:

в яндекс браузере магазин открыт

в ИЕ, пишет что магазин на обслуживании, но уплыл весь дизайн в никуда

в мозилле вроде все норм

Подскажие, как все это исправить?

Share this post


Link to post
Share on other sites

1. Открыть файл catalog/controller/common/footer.php и заменить 46-ю строку на эту:

$this->data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), date('Y'));

В крайнем случае (если не поможет прошлый совет) на эту:

$this->data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), 2012);

2. Переименовать .htaccess.txt в .htaccess

3. ...

Share this post


Link to post
Share on other sites

1. Открыть файл catalog/controller/common/footer.php и заменить 46-ю строку на эту:

$this->data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), date('Y'));

В крайнем случае (если не поможет прошлый совет) на эту:

$this->data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), 2012);
Помог второй вариант, я так понимаю через полтора месяца 2012 надо будет сменить на 2013?

а при заходе в админку ругается вот на что:

Unknown: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/4.0/no DST' instead in /***/www/admin/controller/common/home.php on line 143Unknown: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/4.0/no DST' instead in /***/www/admin/model/localisation/currency.php on line 111Unknown: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/4.0/no DST' instead in /***/www/admin/model/localisation/currency.php on line 111Unknown: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/4.0/no DST' instead in /***/www/admin/model/localisation/currency.php on line 138Unknown: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/4.0/no DST' instead in/***/www/admin/language/russian/common/footer.php on line 3$this->data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), 2012);

тут что менять?

2. Переименовать .htaccess.txt в .htaccess

Переименован. Мож там чего раскомментировать надо?

Share this post


Link to post
Share on other sites

Если Вам помогла только последняя строка, то это не вариант, верните обратно.

Откройте файл system/startup.php и найдите блок:

if (!ini_get('date.timezone')) {
    date_default_timezone_set('UTC');
}

Замените весь блок на:

date_default_timezone_set('Europe/Moscow');
  • +1 1

Share this post


Link to post
Share on other sites

Установил свежий OCStore. Сразу возникла проблема:

1.

[b]Unknown[/b]: date() [[url="http://zlatexclusive.ru/function.date"]function.date[/url]]: It is not safe to rely on the system's timezone settings
в поиск.

давно все на форуме написано.

3. Включил режим обслуживания сайта:

в яндекс браузере магазин открыт

потому что в соседней вкладке вы авторизовались, как Админ.

Share this post


Link to post
Share on other sites

Если Вам помогла только последняя строка, то это не вариант, верните обратно.

Откройте файл system/startup.php и найдите блок:

if (!ini_get('date.timezone')) {
	date_default_timezone_set('UTC');
}

Замените весь блок на:

date_default_timezone_set('Europe/Moscow');
Спасибо, осталось только в админке вот это:

$this->data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), 2012);

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.