Jump to content

Problema aggiornamento da 1.4 a .16


Recommended Posts

Salve,

sto riscontrando vari problemi nell'aggiornare un'installazione di prestashop da 1.4.7.3 alle versioni 1.6

 

Nello specifico ricevo come esito dell'upgrade con 1 click upgrade che l'aggionrmento è stato effettuato ma che ci sono degli degli errori. Il log restituisce quanto segue (copio un estratto)

 

[ERROR] PHP 1.5.0.2 /* PHP:migrate_orders(); */ 1 - 9 error(s) : 
[insert order detail 1] - MySQL server has gone away
[insert order 1] - MySQL server has gone away
[insert order detail 1] - MySQL server has gone away
[insert order 1] - MySQL server has gone away
[insert order detail 1] - MySQL server has gone away
[insert order 1] - MySQL server has gone away
[insert order detail 1] - MySQL server has gone away
[insert order 1] - MySQL server has gone away
unable to rename tables orders_2 and order_detail_2 to orders and order_detail
SQL 1.5.0.2 2006 in ALTER TABLE `ps_order_invoice` ADD `delivery_number` int(0) NOT NULL DEFAULT '0' AFTER `number`: MySQL server has gone away
SQL 1.5.0.2 2006 in ALTER TABLE `ps_order_invoice` ADD `delivery_date` datetime AFTER `delivery_number`: MySQL server has gone away
SQL 1.5.0.2 2006 in INSERT INTO `ps_order_invoice` (`id_order`, `number`, `total_discount_tax_excl`, `total_discount_tax_incl`, `total_paid_tax_excl`, `total_paid_tax_incl`, `total_products`, `total_products_wt`, `total_shipping_tax_excl`, `total_shipping_tax_incl`, `total_wrapping_tax_excl`, `total_wrapping_tax_incl`, `note`, `date_add`) ( SELECT `id_order`, `invoice_number`, `total_discounts_tax_excl`, `total_discounts_tax_incl`, `total_paid_tax_excl`, `total_paid_tax_incl`, `total_products`, `total_products_wt`, `total_shipping_tax_excl`, `total_shipping_tax_incl`, `total_wrapping_tax_excl`, `total_wrapping_tax_incl`, '', `invoice_date` FROM `ps_orders` WHERE `invoice_number` != 0 ): MySQL server has gone away
SQL 1.5.0.2 2006 in ALTER TABLE `ps_tab` ADD `active` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1': MySQL server has gone away
SQL 1.5.0.2 2006 in UPDATE `ps_order_detail` od SET od.`id_order_invoice` = ( SELECT oi.`id_order_invoice` FROM `ps_order_invoice` oi WHERE oi.`id_order` = od.`id_order` ): MySQL server has gone away
SQL 1.5.0.2 2006 in INSERT INTO `ps_order_carrier` (`id_order`, `id_carrier`, `id_order_invoice`, `weight`, `shipping_cost_tax_excl`, `shipping_cost_tax_incl`, `tracking_number`, `date_add`) ( SELECT `id_order`, `id_carrier`, ( SELECT oi.`id_order_invoice` FROM `ps_order_invoice` oi WHERE oi.`id_order` = o.`id_order` ), ( SELECT SUM(`product_weight`) FROM `ps_order_detail` od WHERE od.`id_order` = o.`id_order` ), `total_shipping_tax_excl`, `total_shipping_tax_incl`, `shipping_number`, `date_add` FROM `ps_orders` o ): MySQL server has gone away
SQL 1.5.0.2 2006 in INSERT IGNORE INTO `ps_order_payment` (`id_order_invoice`, `id_order`, `id_currency`, `amount`, `payment_method`, `conversion_rate`, `date_add`) ( SELECT ( SELECT oi.`id_order_invoice` FROM `ps_order_invoice` oi WHERE oi.`id_order` = o.`id_order` ), o.`id_order`, o.`id_currency`, o.`total_paid_real`, o.`payment`, o.`conversion_rate`, o.`date_add` FROM `ps_orders` o LEFT JOIN `ps_order_payment` op ON (op.`id_order` = o.`id_order`) WHERE op.`id_order_payment` IS NULL ): MySQL server has gone away
SQL 1.5.0.2 2006 in INSERT INTO `ps_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_SMARTY_CONSOLE', '0', NOW(), NOW()),('PS_INVOICE_MODEL', 'invoice', NOW(), NOW()): MySQL server has gone away
SQL 1.5.0.2 2006 in ALTER TABLE `ps_specific_price` ADD `id_cart` INT(11) UNSIGNED NOT NULL AFTER `id_specific_price_rule`: MySQL server has gone away
SQL 1.5.0.2 2006 in ALTER TABLE `ps_specific_price` ADD INDEX `id_cart` (`id_cart`): MySQL server has gone away
SQL 1.5.0.2 2006 in UPDATE `ps_tab` SET `position` = ( SELECT `position` FROM ( SELECT MAX(`position`)+1 as `position` FROM `ps_tab` WHERE `id_parent` = 0 ) tmp ) WHERE `class_name` = 'AdminStock': MySQL server has gone away
SQL 1.5.0.2 2006 in UPDATE `ps_tab` SET `position` = ( SELECT `position` FROM ( SELECT MAX(`position`)+1 as `position` FROM `ps_tab` WHERE `id_parent` = 0 ) tmp ) WHERE `class_name` = 'AdminAccounting': MySQL server has gone away
SQL 1.5.0.2 2006 in ALTER TABLE `ps_order_slip_detail` CHANGE `amount` `amount_tax_excl` DECIMAL( 10, 2 ) default NULL: MySQL server has gone away
SQL 1.5.0.2 2006 in ALTER TABLE `ps_order_slip_detail` ADD COLUMN `amount_tax_incl` DECIMAL(10,2) default NULL AFTER `amount_tax_excl`: MySQL server has gone away
 
La maggior parte degli errori sono a livello di query eseguite ed alcuni di funzioni php in errore. Lo step di copia dei nuovi files non restituisce nessun errore, ma nello step di update database si.
Gli errori sembrano essere tutti come se il database non fosse raggiugibile e questo mi fa pensare a un eccessivo numero di richieste.
Ho provato anche a rieseguire le query indicate nel log ma il sito non funziona.
Ho provato anche a fare aggiornamenti intermedi passando dalla 1.4.7.3 alla 1.5.1.0 ma ho sempre lo stesso problema.
 
Ho provato a fare l'upgrade replicando il sito su uno xampp su un pc ma sempre con lo stesso errore, invece su un hosting (aruba business) restituisce un errore di "Internal Server Error " jqXHR: ".
 
L'upgrade è stata la strada scelta perchè ho bisogno di avere tutti i dati presenti sull'attuale, non solo i prodotti, ma anche clienti ordini ecc...
 
Avete idee da suggerire su come procedere?
 
Grazie
 
 
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...