Bug en Prestashop 1.7.0.3 al importar una plantilla desde Windows que contenga nombre con caracteres especiales como por ejemplo “espacios”.
Bug reparado por aleeks en github
Fichero:
controllers/admin/AdminThemesController.php
Sustituir las siguientes líneas:
if ($this->processUploadFile($path)) {
$this->theme_manager->install($path);
@unlink($path);
por
$destination = $this->processUploadFile($path);
if (!empty($destination)) {
$this->theme_manager->install($destination);
@unlink($destination);
Sustituir línea
if ('application/zip' !== $_FILES['themearchive']['type']) {
por
$tmp_name = $_FILES['themearchive']['tmp_name'];
if ('application/zip' !== mime_content_type($tmp_name)) {
Sustituir línea
_PS_ALL_THEMES_DIR_.$name
por
$dest
Sustituir línea
return true;
por Continúa leyendo Error al importar plantilla desde Windows con caracteres especiales en Prestashop 1.7.0.3