Title: [Plugin: LearnDash Content Cloner] php error with database
Last modified: September 1, 2016

---

# [Plugin: LearnDash Content Cloner] php error with database

 *  [moonprox](https://wordpress.org/support/users/moonprox/)
 * (@moonprox)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-learndash-content-cloner-php-error-with-database/)
 * learndash LMS 2.2.1.2
    Learndash cloner 1.0.1
 * Everytime I clone a learndash course, I see the following php script error with
   our database.
 * [30-Aug-2016 14:34:25 UTC]
    WordPress database error Duplicate entry ‘20130-67’
   for key ‘PRIMARY’ for query INSERT INTO `wp_term_relationships` (`object_id`,`
   term_taxonomy_id`, `term_order`) VALUES (20130, 67, 0) made by do_action(‘wp_ajax_duplicate_lesson’),
   call_user_func_array, LdccCourse\LdccCourse->createDuplicateLesson, LdccCourse\
   LdccCourse::setMeta
 * [30-Aug-2016 14:35:26 UTC]
    lesson_id[19493]
 * To me, it seems that the primary key is being duplicated too? I am trying to 
   understand what this php error is exactly about and see if repairing database
   would be necessary.
 * Any suggestion and see what I can do to avoid this error message?

The topic ‘[Plugin: LearnDash Content Cloner] php error with database’ is closed
to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [primary](https://wordpress.org/support/topic-tag/primary/)
 * [primary key](https://wordpress.org/support/topic-tag/primary-key/)

 * 0 replies
 * 1 participant
 * Last reply from: [moonprox](https://wordpress.org/support/users/moonprox/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-learndash-content-cloner-php-error-with-database/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
