Jump to content

sylvainlepetit

New Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

sylvainlepetit's Achievements

Rookie

Rookie (2/14)

  • One Year In Rare
  • Collaborator Rare
  • First Post Rare
  • One Month Later Rare
  • Dedicated Rare

Recent Badges

3

Reputation

  1. Hello, I'm retry to upgrade from 1.7.7.7 to 1.7.8.8. I have installed a new host with php7.4 and MySQL 5.7. I have deleted img, override dir from new version version and remove vendor dir from old version before copy. I have cleaned the var/cache/ dir before launch the command php install/upgrade/upgrade.php When I upgrade the database I have the same error into var/cache/prod/20230203_upgrade.log file: *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Error upgrading doctrine schema^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : Updating database schema...^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : 23:52:24 ERROR [console] Error thrown while running command "prestashop:schema:update-without-foreign --env=prod". Message: "The table with name 'ps_1788.ps_product' already exists." ["exception" => Doctrine\DBAL\Schema\SchemaException { …},"command" => "prestashop:schema:update-without-foreign --env=prod","message" => "The table with name 'ps_1788.ps_product' already exists."]^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : ^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : In SchemaException.php line 108:^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : ^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : The table with name 'ps_1788.ps_product' already exists. ^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : ^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : ^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : prestashop:schema:update-without-foreign [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--] <command>^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : ^M *ERROR* v1.7.8.8 2023/02/03 - 23:52:24: Doctrine SQL Error : ^M Any idea? Thanks for your help Sylvain
  2. Hello, I use php 7.4.27 error after updating. When I add a product into the cart and when I want to checkout
  3. Hello, I have exactly the same problem when updating from 1.7.7.7 to 1.7.8.3 but when checkout Syntax error in template "file:/home/demotro/shop/themes/classic/templates/checkout/_partials/header.tpl" on line 30 "{renderLogo}" unknown tag 'renderLogo'
  4. I found into the var/cache/prod/20220127_upgrade.log this error message: *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Error upgrading doctrine schema *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : Updating database schema... *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : 21:18:23 ERROR [console] Error thrown while running command "prestashop:schema:update-without-foreign --env=prod". Message: "The table with name 'prestashop.ps_product' already exists." ["exception" => Doctrine\DBAL\Schema\SchemaException { …},"command" => "prestashop:schema:update-without-foreign --env=prod","message" => "The table with name 'prestashop.ps_product' already exists."] *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : In SchemaException.php line 108: *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : The table with name 'prestashop.ps_product' already exists. *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : prestashop:schema:update-without-foreign [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--] <command> *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : *ERROR* v1.7.8.3 2022/01/27 - 21:18:23: Doctrine SQL Error : A false error message? A bug into the script?
  5. Hello, I tried by use the same process to upgrade to the last 1.7.8.3 version, but I have error id=43 when call php install/upgrade/upgrade.php. I tried from 1.7.8.2 to 1.7.8.3 and tried from 1.7.7.7 to 1.7.8.3 too with the same result. php 7.4.24 MariaDb : mysql Ver 15.1 Distrib 10.3.32-MariaDB Any idea?? Thanks Sylvain
  6. Hello, I upgrape php from 7.3 to 7.4 before lauch the install, it works! thanks to ComGrafPL
  7. Hi, ok when I have to migrate php7.3 to php7.4, at the same time I upgrade the code? before launch script? Due to the 1.7.7.7 seems to be not compatible with php7.4, can I migrate to php7.4 and use 1-click upgrade before?
  8. Hello I tryied to upgrade my shop from the version 1.7.7.7 to the 1.7.8.X. I used the 1-click module or manually I have the same error during the doctrine update porcess. I tried to upgrade a fresh install ( empty product BDD) of the 1.7.7.7 (without any custom module) to 1.7.8 with the same result. The error message is the table ps_lang already exists... If I comment the doctrine update process line into the Upgrade.php It works. But I think something should be missed no? I an under php7.3 and use MariaDb I'm alone is this case? Sylvain
  9. Bonjour En voulant mettre à jour ma boutique de la version 1.7.7.7 vers 1.7.8.X que ce soit avec le 1-click ou manuellement le process s'arrête lors de l opération de mise a jour du schéma via doctrine. J ai même essayé en utilisant une installation fraîche de la 1.7.7.7 pour vérifier que cela ne venait pas de mon code. Le message de erreur indique une la.table ps_lang existe déjà (heureusement d'ailleurs....) J'ai réussi l installation en commentant la ligne dans Upgrade.php. mais du coup il me manque forcément des trucs... Je suis sous MariaDb et php7.3. Suis-je le seul dans ce cas? Merci Sylvain
  10. I use this trick to insert my field exactly where I want: public function hookAdditionalCustomerFormFields($params) { // your new field $rpps_field = (new FormField) ->setName('my_new_field') ->setType('text') //->setRequired(true) //Uncomment to set it mandatory ->setLabel($this->l('Label for the new field')); // insert the field into other fields, I choose to put it after teh birthday date $params['fields'] = $this->array_insert_after($params['fields'], 'birthday', ['rpps_id'=>$rpps_field]); // return empty array because the new field already added with current fields return []; } function array_insert_after( array $array, $key, array $new ) { $keys = array_keys( $array ); $index = array_search( $key, $keys ); $pos = false === $index ? count( $array ) : $index + 1; return array_merge( array_slice( $array, 0, $pos ), $new, array_slice( $array, $pos ) ); }
  11. Bonjour, quelle est la meilleur méthode pour étendre, surcharger (ajout de champ bdd, formulaire, etc...) un module existant (addons) sans le modifier directement? ce module est compatible PS1.7 Merci d'avance Sylvain
×
×
  • Create New...