Новости Joomla

Joomla 6 нуждается в вашей помощи с тестированием.Вышел недавно релиз Joomla 6 alpha1

Joomla 6 нуждается в вашей помощи с тестированием.Вышел недавно релиз Joomla 6 alpha1

👩‍💻 Joomla 6 нуждается в вашей помощи с тестированием.Вышел недавно релиз Joomla 6 alpha1. Это релиз, в который включены уже проверенные изменения, но ещё очень многие исправления и улучшения ждут своей очереди. Joomla следит за качеством и безопасностью своего кода и каждое изменение должно быть успешно протестировано как минимум ещё двумя участниками сообщества. Разработка Joomla ведётся на платформе GitHub.Филипп Уолтон (Philip Walton) - один из разработчиков, кто активно вносит свой вклад в ядро Joomla. Он уже несколько месяцев посвящает свои послеполуденные часы пятницы работе с Joomla и предлагает присоединиться к нему. 📆 Пятница, 30 мая 2025, с 15:00 до 17:00 по UTC (Лондон) - с 18:00 до 20:00 по Москве.В чате Google Meet Филипп готов помочь с тестированием тем, кто будет делать это в первый раз. А так же он подготовил список лёгких Pull Request, которые можно протестировать довольно быстро. Чем больше тестов будет проведено сейчас, тем меньше ошибок вылезет потом. На данный момент 148 (уже 147 на момент написания заметки) PR на GitHub Joomla ждут тестирования.👩‍💻 Open to all. All together.Также вам поможет сделать первые шаги это видео.GitHub JoomlaДа, это вечер пятницы. Но тестирование занимает порой минут 15, а доброе дело сделано. Просто убедитесь, что разработчик чего-то не пропустил и всё работает как ожидается.#joomla #joomla6 #community

0 Пользователей и 1 Гость просматривают эту тему.
  • 29 Ответов
  • 22320 Просмотров
*

Kinski

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
  • Just Smile
Ошибка с timezone
« : 09.02.2012, 16:18:08 »
Приветствую Вас, гуру Jommla и те, кто только начинает волшебствовать на этом поприще.
Очень нужна Ваша помощь!  !

Проблема №1
Скачала шаблон JA Erica вот отсюда: А мне ошибки выдаются вот такого плана:
1) Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 '3.0/no DST' instead in Z:\home\localhost\www\joomla-portal\www\libraries\joomla\utilities\date.php on line 56

2)Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 '3.0/no DST' instead in Z:\home\localhost\www\joomla-portal\www\libraries\joomla\utilities\date.php on line 198

Я в программировании абсолютно ничего не понимаю, поэтому найдя строку 56, ужаснулась. Там всякие кракозябры, которые мне абсолютно ничего не говорят.

Может, кто-нибудь помочь и популярно объяснить, что и в какой последовательности сделать, чтобы избавиться от этих ошибок.

Проблема №2
У меня оранжевая полоса, которая красуется чуть ниже меню сайта, отсутствует. Как можно это поправить?

Проблема №3
Когда смотрю места, где можно разместить модули или как их там. В общем, через /?tp=1, то там много где есть raw outline. Что это такое и как его использовать?

Буду благодарна за помощь и ответы :'(
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #1 : 09.02.2012, 17:26:12 »
1) Попробуй в .htaccess прописать php_value date.timezone Europe/Moscow

Или попробуй перезалей файл date.php более новый версии
*

Kinski

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
  • Just Smile
Re: Ошибка с timezone
« Ответ #2 : 09.02.2012, 18:06:39 »

Цитировать
Или попробуй перезалей файл date.php более новый версии

А где эту новую версию отыскать?

*

Kinski

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
  • Just Smile
Re: Ошибка с timezone
« Ответ #3 : 09.02.2012, 18:37:31 »

Цитировать
1) Попробуй в .htaccess прописать php_value date.timezone Europe/Moscow
А в каком месте прописывать? Уж прошу прощения за чайникоподобные вопросы, но таковой и являюсь.
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #4 : 10.02.2012, 10:05:54 »
А в каком месте прописывать? Уж прошу прощения за чайникоподобные вопросы, но таковой и являюсь.

На ftp в корне сайта должен быть файл .htaccess Если нет, то там лежит htaccess.txt переименуй его в .htaccess и добавь строчку php_value date.timezone Europe/Moscow
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #5 : 10.02.2012, 10:11:44 »
А где эту новую версию отыскать?



Код
<?php
/**
 * @version $Id: date.php 20196 2011-01-09 02:40:25Z ian $
 * @package Joomla.Framework
 * @subpackage Utilities
 * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access
defined('JPATH_BASE') or die;

/**
 * JDate is a class that stores a date and provides logic to manipulate
 * and render that date in a variety of formats.
 *
 * @package Joomla.Framework
 * @subpackage Utilities
 * @since 1.5
 */
class JDate extends DateTime
{
const DAY_ABBR = "\x021\x03";
const DAY_NAME = "\x022\x03";
const MONTH_ABBR = "\x023\x03";
const MONTH_NAME = "\x024\x03";

/**
* The format string to be applied when using the __toString() magic method.
*
* @var string
* @since 1.6
*/
public static $format = 'Y-m-d H:i:s';

/**
* Placeholder for a DateTimeZone object with GMT as the time zone.
*
* @var object
* @since 1.6
*/
protected static $gmt;

/**
* Placeholder for a DateTimeZone object with the default server
* time zone as the time zone.
*
* @var object
* @since 1.6
*/
protected static $stz;

/**
* An array of offsets and time zone strings representing the available
* options from Joomla! 1.5 and below.
*
* @deprecated Deprecated since 1.6
*
* @var array
* @since 1.6
*/
protected static $offsets = array(
'-12' => 'Etc/GMT-12',
'-11' => 'Pacific/Midway',
'-10' => 'Pacific/Honolulu',
'-9.5' => 'Pacific/Marquesas',
'-9' => 'US/Alaska',
'-8' => 'US/Pacific',
'-7' => 'US/Mountain',
'-6' => 'US/Central',
'-5' => 'US/Eastern',
'-4.5' => 'America/Caracas',
'-4' => 'America/Barbados',
'-3.5' => 'Canada/Newfoundland',
'-3' => 'America/Buenos_Aires',
'-2' => 'Atlantic/South_Georgia',
'-1' => 'Atlantic/Azores',
'0' => 'Europe/London',
'1' => 'Europe/Amsterdam',
'2' => 'Europe/Istanbul',
'3' => 'Asia/Riyadh',
'3.5' => 'Asia/Tehran',
'4' => 'Asia/Muscat',
'4.5' => 'Asia/Kabul',
'5' => 'Asia/Karachi',
'5.5' => 'Asia/Calcutta',
'5.75' => 'Asia/Katmandu',
'6' => 'Asia/Dhaka',
'6.5' => 'Indian/Cocos',
'7' => 'Asia/Bangkok',
'8' => 'Australia/Perth',
'8.75' => 'Australia/West',
'9' => 'Asia/Tokyo',
'9.5' => 'Australia/Adelaide',
'10' => 'Australia/Brisbane',
'10.5' => 'Australia/Lord_Howe',
'11' => 'Pacific/Kosrae',
'11.5' => 'Pacific/Norfolk',
'12' => 'Pacific/Auckland',
'12.75' => 'Pacific/Chatham',
'13' => 'Pacific/Tongatapu',
'14' => 'Pacific/Kiritimati'
);

/**
* The DateTimeZone object for usage in rending dates as strings.
*
* @var object
* @since 1.6
*/
protected $_tz;

/**
* Constructor.
*
* @param string String in a format accepted by strtotime(), defaults to "now".
* @param mixed Time zone to be used for the date.
* @return void
* @since 1.5
*
* @throws JException
*/
public function __construct($date = 'now', $tz = null)
{
// Create the base GMT and server time zone objects.
if (empty(self::$gmt) || empty(self::$stz)) {
self::$gmt = new DateTimeZone('GMT');
self::$stz = new DateTimeZone(@date_default_timezone_get());
}

// If the time zone object is not set, attempt to build it.
if (!($tz instanceof DateTimeZone)) {
if ($tz === null) {
$tz = self::$gmt;
} elseif (is_numeric($tz)) {
// Translate from offset.
$tz = new DateTimeZone(self::$offsets[(string) $tz]);
}
elseif (is_string($tz)) {
$tz = new DateTimeZone($tz);
}
}

// If the date is numeric assume a unix timestamp and convert it.
date_default_timezone_set('UTC');
$date = is_numeric($date)? date('c', $date) : $date;

// Call the DateTime constructor.
parent::__construct($date, $tz);

// Set the timezone object for access later.
$this->_tz = $tz;
}

/**
* Magic method to access properties of the date given by class to the format method.
*
* @param string The name of the property.
* @return mixed A value if the property name is valid, null otherwise.
* @since 1.6
*/
public function __get($name)
{
$value = null;

switch ($name) {
case 'daysinmonth':
$value = $this->format('t', true);
break;

case 'dayofweek':
$value = $this->format('N', true);
break;

case 'dayofyear':
$value = $this->format('z', true);
break;

case 'day':
$value = $this->format('d', true);
break;

case 'hour':
$value = $this->format('H', true);
break;

case 'isleapyear':
$value = (boolean) $this->format('L', true);
break;

case 'hour':
$value = $this->format('H', true);
break;

case 'minute':
$value = $this->format('i', true);
break;

case 'month':
$value = $this->format('m', true);
break;

case 'ordinal':
$value = $this->format('S', true);
break;

case 'second':
$value = $this->format('s', true);
break;

case 'week':
$value = $this->format('W', true);
break;

case 'year':
$value = $this->format('Y', true);
break;

default:
$trace = debug_backtrace();
trigger_error(
'Undefined property via __get(): ' . $name .
' in ' . $trace[0]['file'] .
' on line ' . $trace[0]['line'],
E_USER_NOTICE
);
}

return $value;
}

/**
* Magic method to render the date object in the format specified in the public
* static member JDate::$format.
*
* @return string The date as a formatted string.
* @since 1.6
*/
public function __toString()
{
return (string) parent::format(self::$format);
}

/**
* Translates day of week number to a string.
*
* @param integer The numeric day of the week.
* @param boolean Return the abreviated day string?
* @return string The day of the week.
* @since 1.5
*/
protected function dayToString($day, $abbr = false)
{
switch ($day) {
case 0: return $abbr ? JText::_('SUN') : JText::_('SUNDAY');
case 1: return $abbr ? JText::_('MON') : JText::_('MONDAY');
case 2: return $abbr ? JText::_('TUE') : JText::_('TUESDAY');
case 3: return $abbr ? JText::_('WED') : JText::_('WEDNESDAY');
case 4: return $abbr ? JText::_('THU') : JText::_('THURSDAY');
case 5: return $abbr ? JText::_('FRI') : JText::_('FRIDAY');
case 6: return $abbr ? JText::_('SAT') : JText::_('SATURDAY');
}
}

/**
* Gets the date as a formatted string in a local calendar.
*
* @param string The date format specification string (see {@link PHP_MANUAL#date})
* @param boolean True to return the date string in the local time zone, false to return it in GMT.
* @return string The date string in the specified format format.
* @since 1.6
*/
public function calendar($format, $local = false)
{
return $this->format($format, $local);
}

/**
* Gets the date as a formatted string.
*
* @param string The date format specification string (see {@link PHP_MANUAL#date})
* @param boolean True to return the date string in the local time zone, false to return it in GMT.
* @return string The date string in the specified format format.
* @since 1.6
*/
public function format($format, $local = false)
{
// Do string replacements for date format options that can be translated.
$format = preg_replace('/(^|[^\\\])D/', "\\1".self::DAY_ABBR, $format);
$format = preg_replace('/(^|[^\\\])l/', "\\1".self::DAY_NAME, $format);
$format = preg_replace('/(^|[^\\\])M/', "\\1".self::MONTH_ABBR, $format);
$format = preg_replace('/(^|[^\\\])F/', "\\1".self::MONTH_NAME, $format);

// If the returned time should not be local use GMT.
if ($local == false) {
parent::setTimezone(self::$gmt);
}

// Format the date.
$return = parent::format($format);

// Manually modify the month and day strings in the formated time.
if (strpos($return, self::DAY_ABBR)!== false) {
$return = str_replace(self::DAY_ABBR, $this->dayToString(parent::format('w'), true), $return);
}
if (strpos($return, self::DAY_NAME)!== false) {
$return = str_replace(self::DAY_NAME, $this->dayToString(parent::format('w')), $return);
}
if (strpos($return, self::MONTH_ABBR)!== false) {
$return = str_replace(self::MONTH_ABBR, $this->monthToString(parent::format('n'), true), $return);
}
if (strpos($return, self::MONTH_NAME)!== false) {
$return = str_replace(self::MONTH_NAME, $this->monthToString(parent::format('n')), $return);
}

if ($local == false) {
parent::setTimezone($this->_tz);
}


return $return;
}

/**
* Get the time offset from GMT in hours or seconds.
*
* @param boolean True to return the value in hours.
* @return float The time offset from GMT either in hours in seconds.
* @since 1.6
*/
public function getOffsetFromGMT($hours = false)
{
return (float) $hours ? ($this->_tz->getOffset($this) / 3600) : $this->_tz->getOffset($this);
}

/**
* Translates month number to a string.
*
* @param integer The numeric month of the year.
* @param boolean Return the abreviated month string?
* @return string The month of the year.
* @since 1.5
*/
protected function monthToString($month, $abbr = false)
{
switch ($month) {
case 1:  return $abbr ? JText::_('JANUARY_SHORT') : JText::_('JANUARY');
case 2:  return $abbr ? JText::_('FEBRUARY_SHORT') : JText::_('FEBRUARY');
case 3:  return $abbr ? JText::_('MARCH_SHORT') : JText::_('MARCH');
case 4:  return $abbr ? JText::_('APRIL_SHORT') : JText::_('APRIL');
case 5:  return $abbr ? JText::_('MAY_SHORT') : JText::_('MAY');
case 6:  return $abbr ? JText::_('JUNE_SHORT') : JText::_('JUNE');
case 7:  return $abbr ? JText::_('JULY_SHORT') : JText::_('JULY');
case 8:  return $abbr ? JText::_('AUGUST_SHORT') : JText::_('AUGUST');
case 9:  return $abbr ? JText::_('SEPTEMBER_SHORT') : JText::_('SEPTEMBER');
case 10: return $abbr ? JText::_('OCTOBER_SHORT') : JText::_('OCTOBER');
case 11: return $abbr ? JText::_('NOVEMBER_SHORT') : JText::_('NOVEMBER');
case 12: return $abbr ? JText::_('DECEMBER_SHORT') : JText::_('DECEMBER');
}
}

/**
* Set the date offset (in hours).
*
* @deprecated Deprecated since 1.6
*
* @param float The offset in hours.
* @return boolean True on success.
* @since 1.5
*/
public function setOffset($offset)
{
// Only set the timezone if the offset exists.
if (isset(self::$offsets[(string) $offset])) {
$this->_tz = new DateTimeZone(self::$offsets[(string) $offset]);
$this->setTimezone($this->_tz);
return true;
}

return false;
}

/**
* Method to wrap the setTimezone() function and set the internal
* time zone object.
*
* @param object The new DateTimeZone object.
* @return object The old DateTimeZone object.
* @since 1.6
*/
public function setTimezone($tz)
{
$this->_tz = $tz;
return parent::setTimezone($tz);
}

/**
* Gets the date in a specific format
*
* Returns a string formatted according to the given format. Month and weekday names and
* other language dependent strings respect the current locale
*
* @deprecated Deprecated since 1.6, use JDate::format() instead.
*
* @param string The date format specification string (see {@link PHP_MANUAL#strftime})
* @param boolean True to return the date string in the local time zone, false to return it in GMT.
* @return string The date as a formatted string.
* @since 1.5
*/
public function toFormat($format = '%Y-%m-%d %H:%M:%S', $local = false)
{
// Set time zone to GMT as strftime formats according locale setting.
date_default_timezone_set('GMT');

// Generate the timestamp.
$time = (int) parent::format('U');

// If the returned time should be local add the GMT offset.
if ($local) {
$time += $this->getOffsetFromGMT();
}

// Manually modify the month and day strings in the format.
if (strpos($format, '%a')!== false) {
$format = str_replace('%a', $this->dayToString(date('w', $time), true), $format);
}
if (strpos($format, '%A')!== false) {
$format = str_replace('%A', $this->dayToString(date('w', $time)), $format);
}
if (strpos($format, '%b')!== false) {
$format = str_replace('%b', $this->monthToString(date('n', $time), true), $format);
}
if (strpos($format, '%B')!== false) {
$format = str_replace('%B', $this->monthToString(date('n', $time)), $format);
}

// Generate the formatted string.
$date = strftime($format, $time);

return $date;
}

/**
* Gets the date as an ISO 8601 string.  IETF RFC 3339 defines the ISO 8601 format
* and it can be found at the IETF Web site.
*
* @link http://www.ietf.org/rfc/rfc3339.txt
*
* @param boolean True to return the date string in the local time zone, false to return it in GMT.
* @return string The date string in ISO 8601 format.
* @since 1.5
*/
public function toISO8601($local = false)
{
return $this->format(DateTime::RFC3339, $local);
}

/**
* Gets the date as an MySQL datetime string.
*
* @link http://dev.mysql.com/doc/refman/5.0/en/datetime.html
*
* @param boolean True to return the date string in the local time zone, false to return it in GMT.
* @return string The date string in MySQL datetime format.
* @since 1.5
*/
public function toMySQL($local = false)
{
return $this->format('Y-m-d H:i:s', $local);
}

/**
* Gets the date as an RFC 822 string.  IETF RFC 2822 supercedes RFC 822 and its definition
* can be found at the IETF Web site.
*
* @link http://www.ietf.org/rfc/rfc2822.txt
*
* @param boolean True to return the date string in the local time zone, false to return it in GMT.
* @return string The date string in RFC 822 format.
* @since 1.5
*/
public function toRFC822($local = false)
{
return $this->format(DateTime::RFC2822, $local);
}

/**
* Gets the date as UNIX time stamp.
*
* @return integer The date as a UNIX timestamp.
* @since 1.5
*/
public function toUnix()
{
return (int) parent::format('U');
}
}
*

Kinski

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
  • Just Smile
Re: Ошибка с timezone
« Ответ #6 : 10.02.2012, 10:52:01 »
asav2011
благодарю за ответ и помощь. Заменила внутренности date.php на то, что вы мне прописали, но осталась вот такая ошибка:

Warning: DateTime::setTimezone() [datetime.settimezone]: Can only do this for zones with ID for now in Z:\home\localhost\www\joomla-portal\libraries\joomla\utilities\date.php on line 317

*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #7 : 10.02.2012, 11:43:43 »
Kinski а какая версия Joomla?
*

Kinski

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
  • Just Smile
Re: Ошибка с timezone
« Ответ #8 : 10.02.2012, 11:46:18 »

    Joomla! 1.5.25 Stable  (18 ноября 2011г.)
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #9 : 10.02.2012, 11:48:09 »
На ftp в корне сайта должен быть файл .htaccess Если нет, то там лежит htaccess.txt переименуй его в .htaccess и добавь строчку php_value date.timezone Europe/Moscow
Пробовали?
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #10 : 10.02.2012, 11:49:10 »
можно ещё выключить вывод ошибок
php_flag error_reporting 0
*

Kinski

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
  • Just Smile
Re: Ошибка с timezone
« Ответ #11 : 10.02.2012, 11:50:11 »

Это в этом же файлике date.php? а где и как прописать?
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #12 : 10.02.2012, 11:51:48 »
В файле .htaccess (в корне сайта на FTP)

добавить вначале 2 строчки

php_flag error_reporting 0
php_value date.timezone Europe/Moscow
*

Kinski

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
  • Just Smile
Re: Ошибка с timezone
« Ответ #13 : 10.02.2012, 11:54:08 »

О! ПОМОГЛО!
Безмерно благодарна вам, о великий сэнсэй :D :D :D
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #14 : 10.02.2012, 11:55:38 »
О! ПОМОГЛО!
Безмерно благодарна вам, о великий сэнсэй :D :D :D

Не за что)
*

venoel

  • Новичок
  • 9
  • 1 / 0
Re: Ошибка с timezone
« Ответ #15 : 08.04.2012, 16:28:42 »
Для расширения всеобщего кругозора.

PHP 5.3.10, Joomla 1.5.22
при установке стало писать на страницах сообщение из проблемы №1 первого поста. Что характерно, такое сообщение стало даже выдавать при работе функции
Код
echo phpinfo();
На PHP 5.2 такого не припомню.

Лечение: В php.ini указал
Код
date.timezone = 'Europe/Kiev'
Помогло.

*

ivano88

  • Новичок
  • 1
  • 0 / 0
Re: Ошибка с timezone
« Ответ #16 : 04.05.2012, 14:29:53 »
Добрый день у меня аналогичная проблема прям по пунктам

но вот это действие не проходит

В файле .htaccess (в корне сайта на FTP)

добавить вначале 2 строчки

php_flag error_reporting 0
php_value date.timezone Europe/Moscow


почему то если добавляю эти строчки то сайт вообще перестает работать
вот как файл .htaccess
Спойлер
[свернуть]

буду очень признателен за подсказку в чём загвоздка
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #17 : 18.05.2012, 15:57:48 »
покажите свой htaccess
*

justfunk

  • Новичок
  • 1
  • 0 / 0
Re: Ошибка с timezone
« Ответ #18 : 18.06.2012, 11:05:30 »
to asav2011
Большое человеческое спасибо! У меня была точно такая же проблема, то что вы посоветовали сделать полностью помогло её решить. Весь интернет перекопал, что только не пробовал. Специально тут зарегился чтоб спасибо сказать)
*

asav2011

  • Захожу иногда
  • 104
  • 5 / 0
Re: Ошибка с timezone
« Ответ #19 : 19.06.2012, 16:29:13 »
 ;)
*

Ilona Trifonova

  • Новичок
  • 2
  • 0 / 0
Re: Ошибка с timezone
« Ответ #20 : 22.09.2012, 11:46:55 »
В файле .htaccess (в корне сайта на FTP)

добавить вначале 2 строчки

php_flag error_reporting 0
php_value date.timezone Europe/Moscow



Вы ГЕРОЙ ! Мне тоже очень помогли спасибо!
*

baykonyr177

  • Осваиваюсь на форуме
  • 10
  • 2 / 0
Re: Ошибка с timezone
« Ответ #21 : 22.09.2012, 13:06:57 »
Добрый день, товарищи гуру!
Помогите пожалуйста и мне тоже. Имею такую проблему:

Notice: Undefined offset: 1 in /home/stolichnii/stolichnii-sezon.ru/docs/components/com_virtuemart/virtuemart.php on line 26

Notice: Undefined offset: 1 in /home/stolichnii/stolichnii-sezon.ru/docs/components/com_virtuemart/virtuemart.php on line 85
*

baykonyr177

  • Осваиваюсь на форуме
  • 10
  • 2 / 0
Re: Ошибка с timezone
« Ответ #22 : 01.10.2012, 10:26:07 »
Добрый день, товарищи гуру!
Помогите пожалуйста и мне тоже. Имею такую проблему:

Notice: Undefined offset: 1 in /home/stolichnii/stolichnii-sezon.ru/docs/components/com_virtuemart/virtuemart.php on line 26

Notice: Undefined offset: 1 in /home/stolichnii/stolichnii-sezon.ru/docs/components/com_virtuemart/virtuemart.php on line 85
Вылечил путем отключения ошибок на хостинге.
*

koza777

  • Новичок
  • 8
  • 1 / 0
Re: Ошибка с timezone
« Ответ #23 : 16.01.2013, 19:09:53 »
В php.ini вставляем для Украины:
[Date]
 ; Defines the default timezone used by the date functions
 ; http://php.net/date.timezone
 date.timezone = Europe/Kiev

 для России :

[Date]
 ; Defines the default timezone used by the date functions
 ; http://php.net/date.timezone
 date.timezone = Europe/Moscow

и все будет айс  ^-^
*

Zefirko

  • Новичок
  • 2
  • 0 / 0
Re: Ошибка с timezone
« Ответ #24 : 20.03.2015, 00:55:26 »
В файле .htaccess (в корне сайта на FTP)

добавить вначале 2 строчки

php_flag error_reporting 0
php_value date.timezone Europe/Moscow


Пробовал - не помогло! Никакого эффекта!
В каком именно месте нужно добавить эти строчки?
*

capricorn

  • Завсегдатай
  • 1949
  • 118 / 3
Re: Ошибка с timezone
« Ответ #25 : 20.03.2015, 01:02:49 »
Цитировать
Пробовал - не помогло! Никакого эффекта!
В каком именно месте нужно добавить эти строчки?

Если php работает в режиме CGI/FastCGI  то директивы php_value в .htaccess не будут работать - будет скорее всего ошибка сервера 500.

*

Zefirko

  • Новичок
  • 2
  • 0 / 0
Re: Ошибка с timezone
« Ответ #26 : 20.03.2015, 11:27:21 »
Если php работает в режиме CGI/FastCGI  то директивы php_value в .htaccess не будут работать - будет скорее всего ошибка сервера 500.


И как это исправить? А то я уже все перепробовал(
*

spam63

  • Осваиваюсь на форуме
  • 14
  • 2 / 0
Re: Ошибка с timezone
« Ответ #27 : 01.04.2015, 11:09:58 »
Мне помогла такая штука

в файле libraries/joomla/utilities/date.php прописать строчку "date_default_timezone_set('UTC');" (прям под "<?php")
*

Dron25

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
Re: Ошибка с timezone
« Ответ #28 : 15.05.2015, 13:41:47 »
Добрый день ошибки пропали, но после этого не могу создать в админке новый материал
*

arturk

  • Захожу иногда
  • 105
  • 11 / 2
Re: Ошибка с timezone
« Ответ #29 : 25.11.2015, 18:38:38 »
ништяк)
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

simpleform2 ошибка ajax error в Google chrome

Автор safronoff343

Ответов: 1
Просмотров: 1101
Последний ответ 05.06.2020, 20:36:42
от safronoff343
Ошибка #1050 при переносе базы данных на хостинг

Автор Ksen

Ответов: 7
Просмотров: 24579
Последний ответ 16.03.2020, 17:47:29
от Petrovich
При попытке войти в админку 404 ошибка компонента

Автор omezik

Ответов: 4
Просмотров: 2745
Последний ответ 31.08.2019, 22:41:46
от Taatshi
Ошибка в компоненте CKForms

Автор Vas80

Ответов: 9
Просмотров: 1610
Последний ответ 22.04.2019, 13:34:48
от sivers
Ошибка Fatal error: Allowed memory size of 73400320 bytes exhausted

Автор Andre109

Ответов: 1
Просмотров: 2036
Последний ответ 03.12.2018, 01:29:56
от voland