Pojawiaj? si? b??dy w g?rnej cz?sci panelu

Wszelkie dyskusje na temat instalacji i aktualizacji Opencart w wersji 1.0 i wyższej.

Pojawiają się błędy w górnej częsci panelu

Postprzez itposthuman » 12 lut 2012, o 20:50

Witam
Pierwszy raz zainstalowałem OpenCart na przykładowej domenie i wszytko ładnie działa poza tym że wyświetlają się błędy w górnej części strony.
Nie mogłem wgrać języka przez skopowianie plików jak większość (naczytałem sie o tym i próbowałem pare dni) więc zainstalowałem już gotową paczkę ze strony :
http://code.google.com/p/opencart-polish/downloads/detail?name=opencart-1.5.1.1-Polish_v1.2.zip

Nie zależnie którą wersję skelpu wgrałbym zawsze pojawiają się takie błędy :

Kod: Zaznacz cały
Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/kuba/data:.) in /var/www/kuba/data/www/domena.pl/system/library/language.php on line 20Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/kuba/data:.) in /var/www/kuba/data/www/domena.pl/system/library/language.php on line 20Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/kuba/data:.) in /var/www/kuba/data/www/domena.pl/system/library/language.php on line 20Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/kuba/data:.) in /var/www/kuba/data/www/domena.pl/system/library/language.php on line 20Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/kuba/data:.) in /var/www/kuba/data/www/domena.pl/system/engine/controller.php on line 62Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/kuba/data:.) in /var/www/kuba/data/www/domena.pl/system/engine/controller.php on line 62


Plik language.php ma postać :

Kod: Zaznacz cały
<?php
final class Language {
     private $directory;
   private $data = array();

   public function __construct($directory) {
      $this->directory = $directory;
   }
   
     public function get($key) {
         return (isset($this->data[$key]) ? $this->data[$key] : $key);
     }
   
   public function load($filename) {
      $file = DIR_LANGUAGE . $this->directory . '/' . $filename . '.php';
       
      if (file_exists($file)) {
         $_ = array();
           
         require($file);
      
         $this->data = array_merge($this->data, $_);
         
         return $this->data;
      } else {
         echo 'Error: Could not load language ' . $filename . '!';
         exit();
      }
     }
}
?>


a controler.php :


Kod: Zaznacz cały
<?php
abstract class Controller {
   protected $registry;   
   protected $id;
   protected $layout;
   protected $template;
   protected $children = array();
   protected $data = array();
   protected $output;
   
   public function __construct($registry) {
      $this->registry = $registry;
   }
   
   public function __get($key) {
      return $this->registry->get($key);
   }
   
   public function __set($key, $value) {
      $this->registry->set($key, $value);
   }
         
   protected function forward($route, $args = array()) {
      return new Action($route, $args);
   }

   protected function redirect($url, $status = 302) {
      header('Status: ' . $status);
      header('Location: ' . str_replace('&amp;', '&', $url));
      exit();
   }
   
   protected function getChild($child, $args = array()) {
      $action = new Action($child, $args);
      $file = $action->getFile();
      $class = $action->getClass();
      $method = $action->getMethod();
   
      if (file_exists($file)) {
         require_once($file);

         $controller = new $class($this->registry);
         
         $controller->$method($args);
         
         return $controller->output;
      } else {
         exit('Error: Could not load controller ' . $child . '!');
      }      
   }
   
   protected function render() {
      foreach ($this->children as $child) {
         $this->data[basename($child)] = $this->getChild($child);
      }
      
      if (file_exists(DIR_TEMPLATE . $this->template)) {
         extract($this->data);
         
            ob_start();
     
           require(DIR_TEMPLATE . $this->template);
     
           $this->output = ob_get_contents();

            ob_end_clean();
            
         return $this->output;
       } else {
            exit('Error: Could not load template ' . DIR_TEMPLATE . $this->template . '!');
       }
   }
}
?>


Czy ktoś ma jakiś pomysł ? Proszę o pomoc
itposthuman
 
Posty: 1
Dołączył(a): 12 lut 2012, o 19:35

Re: Pojawiają się błędy w górnej częsci panelu

Postprzez adikon.oc » 13 lut 2012, o 01:23

spróbuj ustawić w .htaccess wartości
php_admin_value open_basedir none
php_admin_flag safe_mode 0

lub

php_value open_basedir none
php_flag safe_mode 0
adikon.oc
 
Posty: 603
Dołączył(a): 28 gru 2010, o 22:56


Powrót do Instalacja i aktualizacja systemu Opencart

Kto przegląda forum

Użytkownicy przeglądający ten dział: Brak zidentyfikowanych użytkowników i 0 gości

cron