I did a deinstall of the complete store, including using the modules-Deinstall functions.
whe reinstalling catalog -> query you need to install store and product -> yes there was the errorbelow.
Solution: first delete the taxonmy by using Structure -Taxonomy
I my opinion there should either be an deleting function of the taxonmy or any handling when reinstalling the cataloge again
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'catalog' for key 'machine_name': INSERT INTO {taxonomy_vocabulary} (name, machine_name, description, hierarchy, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => Katalog [:db_insert_placeholder_1] => catalog [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => uc_catalog ) in drupal_write_record() (Zeile 7036 von .../web/drupal/includes/common.inc).
Comment | File | Size | Author |
---|---|---|---|
#2 | 1839168-uc_catalog-reinstall.patch | 664 bytes | longwave |
Comments
Comment #1
etron770 CreditAttribution: etron770 commentedAdditionally it seems that there is a product (view) problem.
I added a catalog entry and I added an ubercart class and added a product of the new class:
when clicking home (shows the product):
When clicking show my account:
Comment #2
longwaveWe deliberately do not delete the taxonomy, as users may not expect to lose data when uninstalling the catalog module. There is also a check to see if the taxonomy exists when reinstalling, but this check is faulty; it relies on the user leaving the vocabulary name as "Catalog". The attached patch should fix this, by checking for the machine name of the catalog instead.
The second failure was likely a result of the first, and I have not been able to reproduce this.
Comment #3
longwaveCommitted #2.
If the second error in #1 is still reproducible from a fresh install after applying the above patch, please open a new issue with steps to reproduce.
Comment #4.0
(not verified) CreditAttribution: commenteddeleting server path