five Posted May 17, 2023 Share Posted May 17, 2023 Hola, cada vez que intento entrar al ps_account me sale este error, [2] file_exists(): open_basedir restriction in effect. File(/views/templates/admin/app.tpl) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/private:/var/www/clients/client1/web4/tmp:/var/www/new.dominio.com/web:/srv/www/new.dominio.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom) Y no me deja conectar a la tienda, os ha pasado ? Gracias y un saludo Link to comment Share on other sites More sharing options...
five Posted May 17, 2023 Author Share Posted May 17, 2023 He leído por allí de una posible solución que es añadir !file_exists(_PS_ROOT_DIR_ .$template) en module.php 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 ); } Por: 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 ); } Pero me petan otros módulos en el front con el mismo error Y no me deja conecta a la página pero no se si es por este error Os ha pasado ? Gracias Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now