Új hozzászólás Aktív témák

  • radi8tor

    MODERÁTOR

    Sziasztok!

    Opencart webshop téma.

    Vásároltam egy témát hozzá, de nem szereti a magyar nyelvet. Ha átállítom magyarra hibaüzenetek fogadnak. Hozzátenném, hogy hu-Hu.php nem hibás, alap kivitelben működik hiba nélkül. De ezzel a témával nem. Tudtok ebben segíteni?

    Oldal első betöltésénél:

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/clients/client1649/web5653/web/catalog/language/hu-Hu/hu-Hu.php:1) in /home/www/clients/client1649/web5653/web/catalog/controller/startup/startup.php on line 157

    startup.php kódrészlet (setcookie sora a 157):

    // Currency
    $code = '';

    $this->load->model('localisation/currency');

    $currencies = $this->model_localisation_currency->getCurrencies();

    if (isset($this->session->data['currency'])) {
    $code = $this->session->data['currency'];
    }

    if (isset($this->request->cookie['currency']) && !array_key_exists($code, $currencies)) {
    $code = $this->request->cookie['currency'];
    }

    if (!array_key_exists($code, $currencies)) {
    $code = $this->config->get('config_currency');
    }

    if (!isset($this->session->data['currency']) || $this->session->data['currency'] != $code) {
    $this->session->data['currency'] = $code;
    }

    if (!isset($this->request->cookie['currency']) || $this->request->cookie['currency'] != $code) {
    setcookie('currency', $code, time() + 60 * 60 * 24 * 30, '/', $this->request->server['HTTP_HOST']);
    }

    $this->registry->set('currency', new Cart\Currency($this->registry));

    Aztán ha átváltom angolra, akkor meg ezt dobja:
    (csak frissítés után használható az oldal)

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/clients/client1649/web5653/web/catalog/language/hu-Hu/hu-Hu.php:1) in /home/www/clients/client1649/web5653/web/system/library/response.php on line 36

    response.php kódrészlet (header sora a 36):

    public function redirect($url, $status = 302) {
    header('Location: ' . str_replace(array('&', "\n", "\r"), array('&', '', ''), $url), true, $status);
    exit();
    }

Új hozzászólás Aktív témák