• 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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    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?

    Hi, Media Credit author here. The issue with the Media Credit TinyMCE plugin is that apparently the wp-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 4 years, 10 months ago by pepe.
    Plugin Author Greg Winiarski

    (@gwin)

    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.