Title: Item description error
Last modified: May 7, 2020

---

# Item description error

 *  [enkaynigeria](https://wordpress.org/support/users/enkaynigeria/)
 * (@enkaynigeria)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/item-description-error/)
 * Users have been having problems posting ads. After the fill the form and submit
   the form. They get an error message: ‘There are errors in your form. Please correct
   them before proceeding.’
    Then at ‘Description’ it says ‘Field cannot be empty.’
   And no matter how many times one fills the description and submits, he gets this
   message. This is very frustrating and has turned back many potential advertisers.
   What could be the problem?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fitem-description-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/item-description-error/#post-12795010)
 * Hi,
    on your website there is the following JavaScript error “Uncaught TypeError:
   Cannot read property ‘replace’ of undefined” related to the TinyMCE editor.
 * It seems to be originating from Media Credit plugin, try disabling it, post an
   Ad again and see if it helps?
 *  [pepe](https://wordpress.org/support/users/pputzer/)
 * (@pputzer)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/item-description-error/#post-12795094)
 * Hi, Media Credit author here. The issue with the Media Credit TinyMCE plugin 
   is that apparently the [`wp-shortcode`](https://developer.wordpress.org/block-editor/packages/packages-shortcode/)
   dependency is not loaded on the frontend. I’m not sure why this is, but normally,
   that’s available when TinyMCE is on. The plugin mechanism for TinyMCE does not
   allow for outside dependencies (unlike regular JS enqueueing with `wp_enqueue_script`.
   Making sure that `wp_enqeue_script( 'wp-shortcode' );` is run on the adverts 
   adding page should take care of that.
    -  This reply was modified 6 years, 1 month ago by [pepe](https://wordpress.org/support/users/pputzer/).
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/item-description-error/#post-12800811)
 * Hi,
    thanks for the feedback, so, in this case, a temporary fix would be adding
   a below code in theme functions.php file, it should load the wp-shortcode when
   needed
 *     ```
       add_filter( "adverts_action_add", function( $content ) {
           wp_enqeue_script( 'wp-shortcode' );
       } );
       ```
   
 * I will dig into it deeper when i will find some free time :).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Item description error’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

## Tags

 * [item description](https://wordpress.org/support/topic-tag/item-description/)

 * 3 replies
 * 3 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/item-description-error/#post-12800811)
 * Status: not resolved