LaurineNetizis Posted February 12, 2015 Share Posted February 12, 2015 Bonjour, Je voudrais ajouter la TVA 20% à ma boutique prestashop. Depuis la fiche d'un produit, j'ai cliqué sur "Ajouter une règle de taxe" mais voici le message d'erreur que j'obtiens : Une erreur s'est produite pendant la création de l'objet. tax_rules_group (Unknown column 'deleted' in 'field list'). Et lorsque je vais dans localisation > règles de taxes, voici le message qui s'affiche : Mauvais requête SQL. Unknown column 'a.deleted' in 'where clause'. Prestashop : 1.6.0.11 Thème : theme1055 de theme monster Merci par avance pour votre aide ! Link to comment Share on other sites More sharing options...
Eolia Posted February 12, 2015 Share Posted February 12, 2015 Vous avez fait une mise à jour depuis une ancienne version Prestashop ? Link to comment Share on other sites More sharing options...
LaurineNetizis Posted February 12, 2015 Author Share Posted February 12, 2015 Pas du tout ! C'est un site que j'ai mis en place il y a une semaine max. Link to comment Share on other sites More sharing options...
Eolia Posted February 12, 2015 Share Posted February 12, 2015 Space... Pouvez-vous vérifier que les colonnes deleted date_add et date_upd existent dans la table ps_tax_rules_group ? (utilisez phpmyadmin) Link to comment Share on other sites More sharing options...
LaurineNetizis Posted February 12, 2015 Author Share Posted February 12, 2015 Aucune de ces 3 colonnes n'existent. Link to comment Share on other sites More sharing options...
Eolia Posted February 12, 2015 Share Posted February 12, 2015 Lol, vive l'install Presta ! Effectuez cette requête dans phpmyadmin et votre souci sera résolu: ALTER TABLE `ps_tax_rules_group` ADD `deleted` TINYINT(1) UNSIGNED NOT NULL , ADD `date_add` DATETIME NOT NULL , ADD `date_upd` DATETIME NOT NULL ; Mais si l'install a merdouillé sur cette table, il y en a peut-être d'autres... Link to comment Share on other sites More sharing options...
LaurineNetizis Posted February 12, 2015 Author Share Posted February 12, 2015 Prestashop où comment illuminer ma journée ! En tout cas, ça fonctionne ! Merci beaucoup pour votre aide Link to comment Share on other sites More sharing options...
Eolia Posted February 12, 2015 Share Posted February 12, 2015 A votre service Link to comment Share on other sites More sharing options...
doekia Posted February 12, 2015 Share Posted February 12, 2015 C'est assez inquiétant quelle est votre version exacte? Car si le script sql à foiré en migration potentiellement tout 1.6.0.10.sql est manquant - est-ce que le fait que la 1.6.0.10 n'est jamais été publique est en cause? Parce que la .11 contient bien la structure conforme Ci dessous le script d'upgrade qui impliqué 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', 2, 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'; Link to comment Share on other sites More sharing options...
LaurineNetizis Posted February 12, 2015 Author Share Posted February 12, 2015 Il n'y a eu aucune migration ni aucune mise à jour. J'ai téléchargé et installé la version 1.6.0.11 ! Je ne suis jamais passée par le .10 Link to comment Share on other sites More sharing options...
Eolia Posted February 12, 2015 Share Posted February 12, 2015 Il serait bon de vérifier s'il ne vous manque pas les autres éléments. Pouvez-vous vérifier si la table ps_order_slip_detail_tax existe et si la table ps_employee a une colonne "last_connection_date"? Link to comment Share on other sites More sharing options...
LaurineNetizis Posted February 12, 2015 Author Share Posted February 12, 2015 Oui tout est bon ! Link to comment Share on other sites More sharing options...
Eolia Posted February 12, 2015 Share Posted February 12, 2015 (edited) bon... il y a du avoir un bug au moment de la requête sql alors. Bonne continuation! Edited February 12, 2015 by Eolia (see edit history) Link to comment Share on other sites More sharing options...
LaurineNetizis Posted February 12, 2015 Author Share Posted February 12, 2015 J'espère que je n'aurais pas d'autre soucis avec cette instal... Le principal c'est que mon soucis de taxes soit résolu. Bonne continuation à vous aussi ! 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