Помогите найти ошибку

(Ответов: 7, Просмотров: 1032)
  1. Новичок
    • Регистрация: 21.11.2013
    • Сообщений: 17
    • Репутация: 0
    Вчера ковырял сайт, тестировал на нем модуль оплаты лик пай, модуль работает все норм, но вот вверху сайта выдает ошибку.
    Вот такой текст над шапкой сайта:

    Код HTML:
    Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 59Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 60Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 61Notice: Undefined index: Грн in /home/u637093947/public_html/system/library/currency.php on line 69


    так как сам не силен что то сделать, помогите пожалуйста. Я так понимаю я где то прописал эти "Грн " и где мне их удалить??? Спасибо. Сайт на опенкарт.
    Последний раз редактировалось Gylik; 15.07.2014 в 11:18.
    • 0
  2. Гуру Аватар для ohmygod
    • Регистрация: 30.04.2011
    • Сообщений: 1,064
    • Репутация: 268
    • Webmoney BL: ?
    Тут у человека похожая ошибка, только с рублями.
    • 0
  3. Новичок
    • Регистрация: 21.11.2013
    • Сообщений: 17
    • Репутация: 0
    Спасибо за совет, то что проблема с валютами так это точно. но вот еще что то есть. Когда я создаю валюту гривну и ставлю
    код валюты Грн. так все проходит, и как бы проблема решена. Но тогда не работает модуль оплаты лик пай, говорит неправильно указана валюта, выберите UAH, USD, RUB.
    А когда ставлю код валюты UAH то работает оплата через лик пай но выводиться прежняя ошибка.
    Видимо я где то вписал вот это "Грн. " не помню где и в каком файле что оно просит его всегда.
    • 0
  4. Студент Аватар для Java
    • Регистрация: 20.08.2013
    • Сообщений: 76
    • Репутация: 12
    Выложите php файл.
    • 0
  5. Опытный Аватар для VulkanPartner
    • Регистрация: 07.04.2014
    • Сообщений: 322
    • Репутация: 41
    Gylik, так вам же пишет, где и что не нравится. Откройте файл currency.php и посомтрите на строки 59, 60 и 61 что там. Покажите нам их для начала ) Или вообще перезалейте дефолтный файл этот (неизмененный).
    VulkanPartner.com - ведущая гемблинг-партнерка с выплатами до 60% от дохода казино!
    • 0
  6. Новичок
    • Регистрация: 21.11.2013
    • Сообщений: 17
    • Репутация: 0
    вот нашел строка 50, 60, 61
    $symbol_left = $this->currencies[$this->code]['symbol_left'];
    $symbol_right = $this->currencies[$this->code]['symbol_right'];
    $decimal_place = $this->currencies[$this->code]['decimal_place'];

    и 69
    $value = $this->currencies[$currency]['value'];
    • 0
  7. Опытный Аватар для VulkanPartner
    • Регистрация: 07.04.2014
    • Сообщений: 322
    • Репутация: 41
    Gylik, выставьте валюту UAH, а затем эту строку в начале файла:
    PHP код:
    error_reporting(E_ALL); 
    замените на эту:
    PHP код:
    error_reporting(E_ALL & ~E_NOTICE); 
    VulkanPartner.com - ведущая гемблинг-партнерка с выплатами до 60% от дохода казино!
    • 0
  8. Новичок
    • Регистрация: 21.11.2013
    • Сообщений: 17
    • Репутация: 0
    Спасибо за советы. Сделал но ничего не помогло, сообщение все то же, но когда меняю валюту все ок стает, но мне то магаз в грн нужен.

    ---------- Сообщение добавлено 11:23 ---------- Предыдущее 11:22 ----------

    а сам сайт вот он http://ekipirovka.bl.ee/ он не доделан, так просто ковыряю и хочу разобраться с опенкартом и в будущем перенести на него свой магазин.

    ---------- Сообщение добавлено 11:52 ---------- Предыдущее 11:23 ----------

    В файле

    system/library/currency.php

    public function format($number, $currency = '', $value = '', $format = TRUE)

    заменить на

    public function format($number, $currency = 'RUB', $value = '', $format = TRUE)

    помог такой вариант, но он делает гривну по умолчании, мож кто еще что то подскажет

    ---------- Сообщение добавлено 12:13 ---------- Предыдущее 11:52 ----------

    Все решилось намного проще выбором валюты по умолчанию в настройках - локализация- валюта по умолчанию.
    Видимо валюту по умолчанию можно задавать 2 способами : так как написано вверху и второй это у разделе валюта выставив 1.00000. Видимо здесь и было противоречие!

    Всем спасибо можно закрыть тему.
    • 0

Похожие темы

Темы Раздел Ответов Последний пост
Помогите найти ошибку в коде
Web программирование 2 16.09.2013 14:48
Помогите найти ошибку в HTML
Web программирование 6 11.10.2012 13:20
Помогите найти ошибку в html коде
Web программирование 1 12.04.2011 22:41
Помогите найти ошибку в коде js
Web программирование 3 11.03.2011 23:55
Помогите ошибку найти
Web программирование 1 07.01.2011 14:49

У кого попросить инвайт?

Вы можете попросить инвайт у любого модератора:

Информеры