Jump to content

Error al actualizar versión con 1-Click Upgrade


Recommended Posts

Buenas tardes. Estoy actualizando Prestashop 1.7.5.6 a 1.7.8.7, utilizando el modulo 1-Click Upgrade. Cuando termina de realizar la copia de los nuevos archivos al hosting, me devuelve este error:

[Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " 
class Cookie extends CookieCore { public function __construct($name, $path = '', $expire = null, $shared_urls = null, 
$standalone = false, $secure = false) { $this->_content = array(); $this->_standalone = $standalone; 
$this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire; $this->_path = trim(($this->_standalone ? '' : 
Context::getContext()->shop->physical_uri).$path, '/\\').'/'; if ($this->_path{0} != '/') { $this->_path = '/'.$this->_path; }
 $this->_path = rawurlencode($this->_path); $this->_path = str_replace('%2F', '/', $this->_path); 
$this->_path = str_replace('%7E', '~', $this->_path); $this->_domain = $this->getDomain($shared_urls);
 //remove www from url > example: .domain.com $this->_domain =str_replace('www','', $this->_domain);
 //Change cookie name "PrestaShop" > "MyCookieName" $this->_name = 'MyCookieName-'.md5(($this->_standalone ? '' : 
PS_VERSION).$name.$this->_domain); $this->_allow_writing = true; $this->_salt = $this->_standalone ? str_pad('', 
8, md5('ps'._FILE)) : _COOKIE_IV; if ($this->_standalone) { $this->_cipherTool = new Blowfish(str_pad('', 56, 
md5('ps'._FILE)), str_pad('', 56, md5('iv'.FILE_))); } elseif (!Configuration::get('PS_CIPHER_ALGORITHM') || 
!defined('RIJNDAEL_KEY')) { $this->cipherTool = new Blowfish(_COOKIE_KEY, COOKIE_IV); } else 
{ $this->cipherTool = new Rijndael(_RIJNDAEL_KEY, RIJNDAEL_IV); } $this->_secure = (bool)$secure; 
$this->update(); } }{"nextQuickInfo":["[SKIP] directory \"\/app\/cache\/\" does not exist and cannot be 
emptied.","[CLEANING CACHE] File prod removed","Migrating old setting file...","parameters file already exists!",
"Finished..."],"nextErrors":["[INTERNAL] \/var\/www\/html\/config\/config.inc.php line 179 - Error: Class 'Cookie' 
not found\n#0 \/var\/www\/html\/modules\/autoupgrade\/classes\/UpgradeContainer.php(566): require_once()\n#1 
\/var\/www\/html\/modules\/autoupgrade\/classes\/TaskRunner\/AbstractTask.php(120): 
PrestaShop\\Module\\AutoUpgrade\\UpgradeContainer->initPrestaShopCore()\n#2 
\/var\/www\/html\/modules\/autoupgrade\/classes\/TaskRunner\/Upgrade\/UpgradeDb.php(76): 
PrestaShop\\Module\\AutoUpgrade\\TaskRunner\\AbstractTask->init()\n#3 
\/var\/www\/html\/ps_admin\/autoupgrade\/ajax-upgradetab.php(52): 
PrestaShop\\Module\\AutoUpgrade\\TaskRunner\\Upgrade\\UpgradeDb->init()\n#4 {main}"],"error":true,"next":"error"}"

Y la web queda inoperativa.

¿Me podrían ayudar?

Link to comment
Share on other sites

Añado info. Cuando da el error al actualizar e intento entrar en el backend, da este error:

class Cookie extends CookieCore { public function _construct($name, $path = '', $expire = null, $shared_urls = null, $standalone = false, $secure = false) { $this->_content = array(); $this->_standalone = $standalone; $this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire; $this->_path = trim(($this->_standalone ? '' : Context::getContext()->shop->physical_uri).$path, '/\\').'/'; if ($this->_path{0} != '/') { $this->_path = '/'.$this->_path; } $this->_path = rawurlencode($this->_path); $this->_path = str_replace('%2F', '/', $this->_path); $this->_path = str_replace('%7E', '~', $this->_path); $this->_domain = $this->getDomain($shared_urls); //remove www from url > example: .domain.com $this->_domain =str_replace('www','', $this->_domain); //Change cookie name "PrestaShop" > "MyCookieName" $this->_name = 'MyCookieName-'.md5(($this->_standalone ? '' : _PS_VERSION).$name.$this->domain); $this->_allow_writing = true; $this->_salt = $this->_standalone ? str_pad('', 8, md5('ps'.FILE)) : _COOKIE_IV; if ($this->standalone) { $this->_cipherTool = new Blowfish(str_pad('', 56, md5('ps'.FILE)), str_pad('', 56, md5('iv'.FILE))); } elseif (!Configuration::get('PS_CIPHER_ALGORITHM') || !defined('_RIJNDAEL_KEY')) { $this->cipherTool = new Blowfish(_COOKIE_KEY, COOKIE_IV); } else { $this->cipherTool = new Rijndael(_RIJNDAEL_KEY, RIJNDAEL_IV); } $this->_secure = (bool)$secure; $this->update(); } }

Adjunto información del servidor y BBDD:

Información del servidor Linux #138-Ubuntu SMP Wed Jun 22 15:00:31 UTC 2022 x86_64

Versión del software del servidor: Apache/2.4.41 (Ubuntu)

Versión PHP: 7.2.34-32+ubuntu20.04.1+deb.sury.org+1

Límite de memoria: 512M

Tiempo máx. de ejecución: 30

Tamaño máx. para la subida de archivos: 32M

info_outline Información de la base de datos
Versión de MySQL: 10.3.34-MariaDB-0ubuntu0.20.04.1

Servidor MySQL: localhost

Nombre MySQL: lovep_presta_2022

Usuario MySQL: admindba

Prefijo de las tablas: ps_

Motor MySQL: InnoDB

Controlador MySQL: DbPDO

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...