SQL Error with Features

webteam's picture
Tue, 10/07/2014 - 08:24
SQL Error with Features

Hi! When i want to recreate a existing Feature Module the site breaks down and shows me the following Error:

 PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'fieldable_panels_pane' for key 'PRIMARY': INSERT INTO {fieldable_panels_pane_type} (name, title, description) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => fieldable_panels_pane [:db_insert_placeholder_1] => Panels Pane [:db_insert_placeholder_2] => ) in drupal_write_record() (Zeile 7202 von ***\featuretest5\includes\common.inc).

So i searched really long till i found the point on wich the Error occurs. First i searched by the Feature Modules and by fieldable_panels_panes modules. So i endet up in md_slider.features.inc in the md_slider_features_export_options() function. When i remove the return value, the error is gone. Perhaps this helps someone and also i hope this bug will get fixed :)

I'm using:
md_slider: 7.x-2.15 (I think this bug is not yet since 2.15)

cindy's picture
Wed, 10/08/2014 - 06:19

Many thanks for your feedback.
If you have any ideas or suggestions, just tell us. Creative and innovative thinkings are always appreciated and welcome!


robindrupal's picture
Tue, 01/27/2015 - 05:48

Has this issue already been fixed?

I have the same problems (also in 2.16), when creating features, I get a similar database error.

When deleting any sliders, the problem is gone. But that's not a solution of course.

Returning nothing in md_slider_features_export_options() is the solution for now? (breaking any use of the features module with md_slider??)

cindy's picture
Thu, 01/29/2015 - 04:53


We check and test but see no error so far

If possible, please send us your site's url and credenticals to [email protected] (also this forum link) so that we can check and fix this issue

khyam's picture
Mon, 03/02/2015 - 08:26

I have the exact same issue as this, had to remove the return value as suggested above 7.x-2.16.

It seems to be calling all the install functions for each feature and running every install. This causes the db to reject already inserted tables and fields.

cindy's picture
Mon, 03/02/2015 - 23:38

Hi Khyam

Please send us your site's url, admin account and FTP account and a brief of your problem to [email protected] (also this forum link)

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.