MrViper Posted January 18, 2015 Share Posted January 18, 2015 Aggiornato PS alla1.6.0.11, mi sono accorto che i aggiungendo un nuovo prodotto questi non visualizzava l'IVA da applicare in quanto era assente dalla sezione "Regole ". Aprendo la sezione ho il seguente messaggio: Query SQL non valida Unknown column 'a.deleted' in 'where clause' Tentato di aggiungerne una, ricevo il seguente messaggio di errore: Si è verificato un errore durante la creazione dell'oggetto. tax_rules_group (Unknown column 'deleted' in 'field list') Come posso risolvere? Link to comment Share on other sites More sharing options...
Gipielle Posted January 18, 2015 Share Posted January 18, 2015 mi sa che l'aggiornamento non è andato a buon fine .... Link to comment Share on other sites More sharing options...
MrViper Posted January 18, 2015 Author Share Posted January 18, 2015 Il dubbio mi era sorto, ma come posso "riaggiornare" la stessa versione, sempre che questi risolva il problema, che mi puzza più di qualche mancanza nel DB? Link to comment Share on other sites More sharing options...
Gipielle Posted January 18, 2015 Share Posted January 18, 2015 Non lo so, esatto manca qualcosa nel db, non è che la tua versione è modificata ? Link to comment Share on other sites More sharing options...
MrViper Posted January 18, 2015 Author Share Posted January 18, 2015 No. Nessuna modifica se non il tema. Link to comment Share on other sites More sharing options...
Gipielle Posted January 18, 2015 Share Posted January 18, 2015 Strano, che versione avevi ? La 1.5 ? Link to comment Share on other sites More sharing options...
MrViper Posted January 19, 2015 Author Share Posted January 19, 2015 Son passato dalla 1.6.0.9 alla 1.6.0.11 Qualcuno sa a quale tabella MySQL fa riferimento l'errore?? Link to comment Share on other sites More sharing options...
MrViper Posted January 19, 2015 Author Share Posted January 19, 2015 avendo un'altra installazione di PS, ho esprtato la tabella ps_tax_rules_group e importa correttamente ma nella schermata delle Regole appare sempre il msg Query SQL non validaUnknown column 'a.deleted' in 'where clause' E al tentativo di aggiungerne una, risultato: Si è verificato un errore durante la creazione dell'oggetto. tax_rules_group (Unknown column 'deleted' in 'field list') Link to comment Share on other sites More sharing options...
Gipielle Posted January 19, 2015 Share Posted January 19, 2015 prova ad aggiungere la colonna deleted Link to comment Share on other sites More sharing options...
MrViper Posted January 19, 2015 Author Share Posted January 19, 2015 Ho fatto un confronto con l'eshop di prova e le tabelle coincido a perfezione!!! Infatti la tabella che dice che manca... C'E'!!!1 Sto impazzendo . Link to comment Share on other sites More sharing options...
MrViper Posted January 21, 2015 Author Share Posted January 21, 2015 Risolto. SET NAMES 'utf8'; CREATE TABLE `PREFIX_smarty_cache` ( `id_smarty_cache` char(40) NOT NULL, `name` char(40), `cache_id` varchar(254) DEFAULT NULL, `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `content` longtext NOT NULL, PRIMARY KEY (`id_smarty_cache`), KEY `name` (`name`), KEY `cache_id` (`cache_id`), KEY `modified` (`modified`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; INSERT INTO `PREFIX_configuration` (`name` , `value` , `date_add` , `date_upd`) VALUES ('PS_SMARTY_CACHING_TYPE', 'filesystem', NOW(), NOW()), ('PS_SMARTY_CLEAR_CACHE', 'everytime', NOW(), NOW()), ('PS_DETECT_LANG', '1', NOW(), NOW()), ('PS_DETECT_COUNTRY', '1', NOW(), NOW()); ALTER TABLE `PREFIX_quick_access` CHANGE `link` `link` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; ALTER TABLE `PREFIX_order_slip_detail` CHANGE `amount_tax_excl` `amount_tax_excl` DECIMAL(20, 6) NULL DEFAULT NULL; ALTER TABLE `PREFIX_order_slip_detail` CHANGE `amount_tax_incl` `amount_tax_incl` DECIMAL( 20, 6 ) NULL DEFAULT NULL; INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_ROUND_TYPE', 1, now(), now()); ALTER TABLE `PREFIX_order_slip` ADD `total_products_tax_excl` DECIMAL(20, 6) NULL AFTER `id_order`, ADD `total_products_tax_incl` DECIMAL(20, 6) NULL AFTER `total_products_tax_excl`,ADD `total_shipping_tax_excl` DECIMAL(20, 6) NULL AFTER `total_products_tax_incl`, ADD `total_shipping_tax_incl` DECIMAL(20, 6) NULL AFTER `total_shipping_tax_excl`; ALTER TABLE `PREFIX_order_slip_detail` ADD `unit_price_tax_excl` DECIMAL(20, 6) NULL AFTER `product_quantity`, ADD `unit_price_tax_incl` DECIMAL(20, 6) NULL AFTER `unit_price_tax_excl`, ADD `total_price_tax_excl` DECIMAL(20, 6) NULL AFTER `unit_price_tax_incl`, ADD `total_price_tax_incl` DECIMAL(20, 6) NULL AFTER `total_price_tax_excl`; CREATE TABLE IF NOT EXISTS `PREFIX_order_slip_detail_tax` ( `id_order_slip_detail` int(11) unsigned NOT NULL, `id_tax` int(11) unsigned NOT NULL, `unit_amount` decimal(16,6) NOT NULL DEFAULT '0.000000', `total_amount` decimal(16,6) NOT NULL DEFAULT '0.000000', KEY (`id_order_slip_detail`), KEY `id_tax` (`id_tax`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; ALTER TABLE `PREFIX_tax_rules_group` ADD `deleted` TINYINT(1) UNSIGNED NOT NULL, ADD `date_add` DATETIME NOT NULL, ADD `date_upd` DATETIME NOT NULL; ALTER TABLE `PREFIX_order_detail` ADD `id_tax_rules_group` INT(11) UNSIGNED DEFAULT '0' AFTER `product_weight`, ADD INDEX `id_tax_rules_group` (`id_tax_rules_group`); CREATE TABLE IF NOT EXISTS `PREFIX_mail` ( `id_mail` int(11) unsigned NOT NULL AUTO_INCREMENT, `recipient` varchar(126) NOT NULL, `template` varchar(62) NOT NULL, `subject` varchar(254) NOT NULL, `id_lang` int(11) unsigned NOT NULL, `date_add` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id_mail`), KEY `recipient` (`recipient`(10)) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_LOG_EMAILS', 1, now(), now()); ALTER TABLE `PREFIX_employee` ADD `last_connection_date` date NOT NULL DEFAULT '0000-00-00'; UPDATE `PREFIX_category` SET `is_root_category` = 0 WHERE `id_parent` != (SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'PS_ROOT_CATEGORY' LIMIT 1) AND `is_root_category` = 1; ALTER TABLE `PREFIX_orders` ADD INDEX (`reference`); UPDATE `PREFIX_meta` SET `page` = 'pagenotfound' WHERE `page` = '404'; 1 Link to comment Share on other sites More sharing options...
SHU Technologies Posted January 22, 2015 Share Posted January 22, 2015 Hi I have exactly the same problem, can you tell me how did you solved? I could not get running the SQL script you attached. Link to comment Share on other sites More sharing options...
MrViper Posted January 23, 2015 Author Share Posted January 23, 2015 Change the "PREFIX_xxxx_xxx" wiht prefix of your DB table (es. ps_smarty_cache) and run the SQL code (i used phpMyAdmin). 1 Link to comment Share on other sites More sharing options...
SHU Technologies Posted January 23, 2015 Share Posted January 23, 2015 Thanks for the quick reply, I changed the prefix but did not work, there were some other failure message. But after that I tried just this line from your script: ALTER TABLE `PREFIX_tax_rules_group` ADD `deleted` TINYINT(1) UNSIGNED NOT NULL, ADD `date_add` DATETIME NOT NULL, ADD `date_upd` DATETIME NOT NULL; And this solved my problem:))) Thanks a lot!!!! Link to comment Share on other sites More sharing options...
Gipielle Posted January 23, 2015 Share Posted January 23, 2015 Ottimo ! Link to comment Share on other sites More sharing options...
Andrea Portelli Posted September 1, 2015 Share Posted September 1, 2015 Risolto. SET NAMES 'utf8'; CREATE TABLE `PREFIX_smarty_cache` ( `id_smarty_cache` char(40) NOT NULL, `name` char(40), `cache_id` varchar(254) DEFAULT NULL, `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `content` longtext NOT NULL, PRIMARY KEY (`id_smarty_cache`), KEY `name` (`name`), KEY `cache_id` (`cache_id`), KEY `modified` (`modified`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; INSERT INTO `PREFIX_configuration` (`name` , `value` , `date_add` , `date_upd`) VALUES ('PS_SMARTY_CACHING_TYPE', 'filesystem', NOW(), NOW()), ('PS_SMARTY_CLEAR_CACHE', 'everytime', NOW(), NOW()), ('PS_DETECT_LANG', '1', NOW(), NOW()), ('PS_DETECT_COUNTRY', '1', NOW(), NOW()); ALTER TABLE `PREFIX_quick_access` CHANGE `link` `link` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; ALTER TABLE `PREFIX_order_slip_detail` CHANGE `amount_tax_excl` `amount_tax_excl` DECIMAL(20, 6) NULL DEFAULT NULL; ALTER TABLE `PREFIX_order_slip_detail` CHANGE `amount_tax_incl` `amount_tax_incl` DECIMAL( 20, 6 ) NULL DEFAULT NULL; INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_ROUND_TYPE', 1, now(), now()); ALTER TABLE `PREFIX_order_slip` ADD `total_products_tax_excl` DECIMAL(20, 6) NULL AFTER `id_order`, ADD `total_products_tax_incl` DECIMAL(20, 6) NULL AFTER `total_products_tax_excl`,ADD `total_shipping_tax_excl` DECIMAL(20, 6) NULL AFTER `total_products_tax_incl`, ADD `total_shipping_tax_incl` DECIMAL(20, 6) NULL AFTER `total_shipping_tax_excl`; ALTER TABLE `PREFIX_order_slip_detail` ADD `unit_price_tax_excl` DECIMAL(20, 6) NULL AFTER `product_quantity`, ADD `unit_price_tax_incl` DECIMAL(20, 6) NULL AFTER `unit_price_tax_excl`, ADD `total_price_tax_excl` DECIMAL(20, 6) NULL AFTER `unit_price_tax_incl`, ADD `total_price_tax_incl` DECIMAL(20, 6) NULL AFTER `total_price_tax_excl`; CREATE TABLE IF NOT EXISTS `PREFIX_order_slip_detail_tax` ( `id_order_slip_detail` int(11) unsigned NOT NULL, `id_tax` int(11) unsigned NOT NULL, `unit_amount` decimal(16,6) NOT NULL DEFAULT '0.000000', `total_amount` decimal(16,6) NOT NULL DEFAULT '0.000000', KEY (`id_order_slip_detail`), KEY `id_tax` (`id_tax`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; ALTER TABLE `PREFIX_tax_rules_group` ADD `deleted` TINYINT(1) UNSIGNED NOT NULL, ADD `date_add` DATETIME NOT NULL, ADD `date_upd` DATETIME NOT NULL; ALTER TABLE `PREFIX_order_detail` ADD `id_tax_rules_group` INT(11) UNSIGNED DEFAULT '0' AFTER `product_weight`, ADD INDEX `id_tax_rules_group` (`id_tax_rules_group`); CREATE TABLE IF NOT EXISTS `PREFIX_mail` ( `id_mail` int(11) unsigned NOT NULL AUTO_INCREMENT, `recipient` varchar(126) NOT NULL, `template` varchar(62) NOT NULL, `subject` varchar(254) NOT NULL, `id_lang` int(11) unsigned NOT NULL, `date_add` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id_mail`), KEY `recipient` (`recipient`(10)) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_LOG_EMAILS', 1, now(), now()); ALTER TABLE `PREFIX_employee` ADD `last_connection_date` date NOT NULL DEFAULT '0000-00-00'; UPDATE `PREFIX_category` SET `is_root_category` = 0 WHERE `id_parent` != (SELECT `value` FROM `PREFIX_configuration` WHERE `name` = 'PS_ROOT_CATEGORY' LIMIT 1) AND `is_root_category` = 1; ALTER TABLE `PREFIX_orders` ADD INDEX (`reference`); UPDATE `PREFIX_meta` SET `page` = 'pagenotfound' WHERE `page` = '404'; Ciao Perdonami io ho lo stesso problema ma con i prodotti, l'errore che mi esce è identico al tuo, potresti farmi capire come lo hai risolto perchè non sono molto ferrato in programmazione. Questo è l'errore : Query SQL non validaUnknown column 'image_shop.id_product' in 'on clause' Link to comment Share on other sites More sharing options...
MrViper Posted September 1, 2015 Author Share Posted September 1, 2015 Io uso due installazioni di PS, una di test e l'altra di produzione. Avevo esportato la tabella dal PS di test che funzionava e l'ho importato in quello di produzione cambiano il prefisso delle tabelle. Ad ogni modo verifica che non hai qualche modulo che vada in conflitto. 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