Errors with MDSlider 2.19 and Media 2

robindrupal's picture
robindrupal
Fri, 12/11/2015 - 02:29
#1
Errors with MDSlider 2.19 and Media 2

When using MD Slider v2.19 and trying to recreate some features we get some errors.

 

Steps to reproduce

  1. Installed version of MD Slider 7.x-2.19

  2. 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?

phuonght's picture
phuonght
Fri, 12/11/2015 - 03:31

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. 

robindrupal's picture
robindrupal
Tue, 12/15/2015 - 07:53

Hello,

Your suggestion did unfortunately not work. Do you have any other ideas how to solve this?

Robin

phuonght's picture
phuonght
Tue, 12/15/2015 - 21:48

So please send us your site information by pivate comment. We would like to have a check and fix problem in your site. 

robindrupal's picture
robindrupal
Wed, 12/16/2015 - 06:31

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

phuonght's picture
phuonght
Wed, 12/16/2015 - 21:44

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. 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.