• PrestaShop Pomoc. Tworzenie sklepów internetowych PrestaShop. Grafika, moduły, wdrożenie, aktualizacje oraz rozbudowa sklepów internetowych.

    Polskie Wsparcie PrestaShop
    Pomoc PrestaShop

PrestaShop POLSKIE WSPARCIE Sklepy internetowe PrestaShop POTRZEBNA POMOC ?

POMOC - ROZBUDOWA - NAPRAWY - AKTUALIZACJE - KONFIGURACJA - TWORZENIE SKLEPÓW

zapraszamy do kontaktu:   axp@prodo.pl / tel. 888 537 633

Presta problem Warning: file_exists(): open_basedir restriction in effect

PrestaShop błąd open_basedir restriction in effect

 

naprawa solucja dotyczy każdej wersji sklepu 1.7.x.x edytujemy plik Module.php  w ścieżce classes/module/Module.php

zmieniając kod linia 2500

 

    protected function getCurrentSubTemplate($template, $cache_id = null, $compile_id = null)
    {
        if ($compile_id === null) {
            $compile_id = $this->getDefaultCompileId();
        }

        if (!isset($this->current_subtemplate[$template . '_' . $cache_id . '_' . $compile_id])) {
            if (false === strpos($template, 'module:') &&
                !file_exists(_PS_ROOT_DIR_ . '/' . $template) &&
                !file_exists($template)
            ) {
                $template = $this->getTemplatePath($template);
            }

            $this->current_subtemplate[$template . '_' . $cache_id . '_' . $compile_id] = $this->context->smarty->createTemplate(
                $template,
                $cache_id,
                $compile_id,
                $this->smarty
            );
        }

        return $this->current_subtemplate[$template . '_' . $cache_id . '_' . $compile_id];
    }

 

zastępując na:

 

   protected function getCurrentSubTemplate($template, $cache_id = null, $compile_id = null)
{

    if ($compile_id === null) {
        $compile_id = $this->getDefaultCompileId();
    }

    if (!isset($this->current_subtemplate[$template . '_' . $cache_id . '_' . $compile_id])) {
        if (false === strpos($template, 'module:') &&
            !file_exists(_PS_ROOT_DIR_ . '/' . $template) &&
            !file_exists(_PS_ROOT_DIR_ . $template)
        ) {
            $template = $this->getTemplatePath($template);
        }

        $this->current_subtemplate[$template . '_' . $cache_id . '_' . $compile_id] = $this->context->smarty->createTemplate(
            $template,
            $cache_id,
            $compile_id,
            $this->smarty
        );
    }

    return $this->current_subtemplate[$template . '_' . $cache_id . '_' . $compile_id];
}

 

 

wgrywamy pliki, kasujemy ceche, wyłączamy tryb debugowania jeżeli był włączony sklep powinien zacząć działać znowu poprawnie.

 

 

Potrzebna pomoc naprawa sklepu dzwoń !

tel: 888 537 633

e-mail: axp@prodo.pl