[USE full Database name in Joomla Configuration] Duplicate key name: Erreur à la restauration

More
8 years 1 month ago #60110 by hervemlam
Bonsoir,

Pour ce qui est de l'erreur "Duplicate key name", le contournement que j'ai utilisé consiste à modifier le fichier administrator/components/com_flexicontent/controller.php comme ceci :
Dans la fonction getPostinstallState(), ligne 268 :
Code:
// $existdbindexes = $model->getExistDBindexes(); $existdbindexes = true;
Dans la fonction createDBindexes(), ligne 858 :
Code:
// $missing_indexes = $model->getExistDBindexes($check_only=false); $missing_indexes = array();

Pour ce qui est de l'Erreur 1044 SQL=LOCK TABLES `xxx_assets` WRITE, j'ai désactivé les lock et les unlock, dans /libraries/joomla/database/driver/mysqli.php :
Code:
public function lockTable($table) { // $this->setQuery('LOCK TABLES ' . $this->quoteName($table) . ' WRITE')->execute(); return $this; public function unlockTables() { // $this->setQuery('UNLOCK TABLES')->execute(); return $this; }

J'ai bien conscience que ce sont des contournements, non des résolutions, mais il faut bien que j'avance... ;)

Bonne nuit.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #60117 by ggppdk
Hello

i suggest that change web-hosting,
not being able to query INFORMATION_SCHEMA will lead to more problems


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #60120 by micker
franchement c'est de la solution boiteuse ... tu ne pourras ni faire d'update et ne pourra plus t'aider au niveau support => pas de support sur des versions modifiés...

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #60124 by hervemlam

ggppdk wrote: not being able to query INFORMATION_SCHEMA will lead to more problems

Hello,

What do you mean with "query INFORMATION_SCHEMA"?
I can see much of database information with phpMyAdmin.

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #65772 by majordome
Bonjour,

je me permets de relancer ce sujet car j'ai le même problème de Duplicate Key Name mais dans des circonstances différentes.
Je suis hébergé par Infomaniak (Php 5.6.22 MySql 4.6.33)
Je fais un install neuve de Joomla 3.6.5 puis une install de Flexi 3.1.1
et j'obtiens cette erreur de Duplicate Name pour les 10 tables suivantes lors de la phase de post-installation:

flexicontent_tags (Indexing started)
flexicontent_items_ext (Indexing started)
flexicontent_items_tmp (9 indexes missing)
flexicontent_fields_item_relations (5 indexes missing)
flexicontent_items_versions (2 indexes missing)
flexicontent_download_history (2 indexes missing)
flexicontent_download_coupons (4 indexes missing)
flexicontent_templates (1 indexes missing)
flexicontent_favourites (1 indexes missing)
flexicontent_items_extravote (1 indexes missing)

Je vérifie et répare les tables aussi bien dans Joomla que via PhpMyadmin mais rien n'y fait !

Je fais une install de flexi sur un autre joomla installé sur ce même serveur Infomaniak et là tout se passe sans problème !
J'en profite pour regarder la structure des tables sur les deux install et d'essayer de voir des différences... je n'en trouve aucune !!!

J'ai installé/désinstallé/réinstallé (toutes les combis possibles) sans aucun succès !!!

J'ai bien lu ce sujet pour y explorer toutes les pistes éventuelles mais aucune n'a aboutie. J'ai regardé un éventuel problème d'interclassement mais tout est en utf8_general_ci.

Le truc c'est que je ne vois aucune altération de la base entre la version correctement installée et celle dont l'install ne va pas jusqu'au bout.

Incompréhensible...

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #65774 by ggppdk
Hello

For new / non-live site try this release:

github.com/FLEXIcontent/flexicontent-cck/releases


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.397 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline