When using MD Slider v2.19 and trying to recreate some features we get some errors.
Steps to reproduce
-
Installed version of MD Slider 7.x-2.19
-
Drupal and modules versions (among others):
-
drupal 7.41
-
features 7.x-2.7
-
domains 7.x-3.12
3. Go to /admin/structure/features/
4. Click on 'Recreate' for any feature, the errors I got were these:
Module install: Attempt to recreate field: "css_class", when it already exists.
en 1 error
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'file_type': ALTER TABLE {file_managed} CHANGE `type` `type` VARCHAR(50) NOT NULL DEFAULT 'undefined' COMMENT 'The type of this file.', ADD INDEX `file_type` (`type`); Array ( ) in db_change_field() (line 3020 of /var/www/xxxxxx/docroot/includes/database/database.inc).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Website feedback' for key 'category': INSERT INTO {contact} (category, recipients, selected, reply) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => Website feedback [:db_insert_placeholder_1] => xxxxxxxx@localhost.localdomain [:db_insert_placeholder_2] => 1 [:db_insert_placeholder_3] => ) in contact_install() (line 79 of /var/www/xxxxxx/docroot/modules/contact/contact.install).
5. When I replace the MD slider with the old version (7.x-2.16), while keeping all my other code the same, recreating features works again.
Do you know why this happens? And can you help us solve this?
Hi,
Please
In file md_slider.module in function md_slider_features_api()
line 485, remove line
"default_hook" => "install"
If it still does not work, you could send us your site url, admin account and FTP account by Private comment, we would like to help you.
Hello,
Your suggestion did unfortunately not work. Do you have any other ideas how to solve this?
Robin
So please send us your site information by pivate comment. We would like to have a check and fix problem in your site.
Hello,
Unfortunately our policies prevent me from providing you with any login credentials.
However we do need this to be resolved! Can you send us any fixes for us to try out?
Robin
Sorry,
It is very difficult for us to find exactly problem just by an error message. Base on which you described, we only can give suggestion as above.