Title: Not submintting form
Last modified: August 21, 2016

---

# Not submintting form

 *  [Luis](https://wordpress.org/support/users/chuo999/)
 * (@chuo999)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/not-submintting-form/)
 * Hello again, this plugins seems to have all my requeirements but I couldnt figure
   out why the form is not submitting.
 * I’ve checked the form page using chrome console and can not grab the error
 * [http://www.grupoeditoresvenezolanos.com/site/concurso-de-prueba/](http://www.grupoeditoresvenezolanos.com/site/concurso-de-prueba/)
 * Any help is appreciated!!
 * It looks like a great plugin, and I need it working ASAP please.
 * Many thanks in advance, sorry for my bad english
 * [https://wordpress.org/plugins/contesthopper/](https://wordpress.org/plugins/contesthopper/)

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

 *  Thread Starter [Luis](https://wordpress.org/support/users/chuo999/)
 * (@chuo999)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610818)
 * Hello, error found in firebug console:
 * ReferenceError: ch_ctdn is not defined
    ch_ctdn(‘2591234’, ‘ch_widget-2042_1’);
 * in this lines
 * jQuery(document).ready(function() {
    ch_ctdn(‘2591234’, ‘ch_widget-2042_1’); });
 * My shortcode is [contesthopper contest=”2042″]
 * My theme is City Desk by Gabfire themes
 * Installed plugins:
 * Akismet
 * Contact form 7
 * Contact Form DB
 * ContestHopper for WordPress
 * Ninja Pages, Categories, and Tags
 * PHP Text Widget
 * Really Simple CAPTCHA
 * Widget Logic
 * WP Bannerize
 * WP e-Commerce
 * I tried the plugin in a fresh WP 3.8.1 installation and it works like a charm!!!
 * [http://www.gfserver.com.ve/demowp/concurso/](http://www.gfserver.com.ve/demowp/concurso/)
 * Thanks to Carlos-Vazquez for the spanish translation and Webikon for creating
   this awesome plugin, but I´m stucked in my client’s page, help needed!
 *  Plugin Author [Webikon s.r.o.](https://wordpress.org/support/users/webikon/)
 * (@webikon)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610888)
 * Hello,
    thank you for the feedback.
 * It seems that contesthopper front-end javascript and CSS is not loading on your
   page. From the plugin list I don’t see anything suspicious. Maybe the theme is
   causing that, but this is not straightforward to debug.
 * You can try to work around this by manually adding
    CSS file (wp-content/plugins/
   contesthopper/templates/default/widget.css) and enqueue+localize ch_js_widget
 *     ```
       wp_enqueue_script('ch_js_widget');
       wp_localize_script('ch_js_widget', 'ch_ajax', array('ajaxurl' => admin_url('admin-ajax.php')));
       ```
   
 *  Thread Starter [Luis](https://wordpress.org/support/users/chuo999/)
 * (@chuo999)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610891)
 * Hello Webikon, thanks very much for your answer.
 * I added the css code into the default css theme file and now it looks OK, then
   I added the two lines of code you kindly indicated in the wp-includes/functions.
   wp-scripts.php file, but although now it shows the remaining days, it is still
   not working.
 * function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer
   = false ) {
    global $wp_scripts; if ( ! is_a( $wp_scripts, ‘WP_Scripts’ ) ) {
   if ( ! did_action( ‘init’ ) ) _doing_it_wrong( __FUNCTION__, sprintf( __( ‘Scripts
   and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s
   hooks.’ ), ‘`wp_enqueue_scripts`‘, ‘`admin_enqueue_scripts`‘, ‘`login_enqueue_scripts`‘),‘
   3.3’ ); $wp_scripts = new WP_Scripts(); }
 *  $wp_scripts->add( $handle, $src, $deps, $ver );
    if ( $in_footer ) $wp_scripts-
   >add_data( $handle, ‘group’, 1 );
 *  wp_enqueue_script(‘ch_js_widget’);
    }
 * —————————
 * function wp_localize_script( $handle, $object_name, $l10n ) {
    global $wp_scripts;
   if ( ! is_a( $wp_scripts, ‘WP_Scripts’ ) ) { if ( ! did_action( ‘init’ ) ) _doing_it_wrong(
   __FUNCTION__, sprintf( __( ‘Scripts and styles should not be registered or enqueued
   until the %1$s, %2$s, or %3$s hooks.’ ), ‘`wp_enqueue_scripts`‘, ‘`admin_enqueue_scripts`‘,‘`
   login_enqueue_scripts`‘ ), ‘3.3’ );
 *  return false;
    }
 *  return $wp_scripts->localize( $handle, $object_name, $l10n );
 *  wp_localize_script(‘ch_js_widget’, ‘ch_ajax’, array(‘ajaxurl’ => admin_url(‘
   admin-ajax.php’)));
    }
 * Where should I add this code?
 * Again…Thanks very very much!!
 *  [steviphoto](https://wordpress.org/support/users/steviphoto/)
 * (@steviphoto)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610907)
 * I’m having the same issue. I have no idea how to do code.
 * Is there any way you can help?
 * [http://steviclackphotography.com/blog/happy-birthday-to-us/](http://steviclackphotography.com/blog/happy-birthday-to-us/)
 *  Plugin Author [Webikon s.r.o.](https://wordpress.org/support/users/webikon/)
 * (@webikon)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610912)
 * chuo999,
 *  never ever edit core files. the two lines need to go to your theme functions.
   php, and have to be called in a hook
 * [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
   
   [http://codex.wordpress.org/Function_Reference/wp_localize_script](http://codex.wordpress.org/Function_Reference/wp_localize_script)
 *  Plugin Author [Webikon s.r.o.](https://wordpress.org/support/users/webikon/)
 * (@webikon)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610913)
 * steviphoto,
 * you have a javascript error, probably because two jquery versions are called.
   
   is your theme a custom one?
 * juraj
 *  Thread Starter [Luis](https://wordpress.org/support/users/chuo999/)
 * (@chuo999)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610920)
 * Thanks very much!
 * I added this to my theme’s functions.php file
 * function theme_name_scripts() {
 *  wp_enqueue_script(‘ch_js_widget’);
    wp_localize_script(‘ch_js_widget’, ‘ch_ajax’,
   array(‘ajaxurl’ => admin_url(‘admin-ajax.php’))); }
 * add_action( ‘wp_enqueue_scripts’, ‘theme_name_scripts’ );
 * Now is working.. Thanks!
 *  Plugin Author [Webikon s.r.o.](https://wordpress.org/support/users/webikon/)
 * (@webikon)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610924)
 * no problem,
    now enjoy some contest hoppin’ 🙂
 *  Thread Starter [Luis](https://wordpress.org/support/users/chuo999/)
 * (@chuo999)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610926)
 * Thanks for this great plugin and for your support!
 *  [steviphoto](https://wordpress.org/support/users/steviphoto/)
 * (@steviphoto)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610927)
 * Yes, my theme is custom.
 *  [steviphoto](https://wordpress.org/support/users/steviphoto/)
 * (@steviphoto)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610928)
 * Yes, my theme is custom.
 *  Plugin Author [Webikon s.r.o.](https://wordpress.org/support/users/webikon/)
 * (@webikon)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610929)
 * steviphoto,
 * well, you need to make sure your theme uses the same jquery version that wordpress
   does. this is done easily with enqueue_script.
 * [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
 * since you say, you have no idea how to code, try to contact the person who created
   the template for you.
 * cheers,
 * juraj

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

The topic ‘Not submintting form’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contesthopper.svg)
 * [ContestHopper for WordPress](https://wordpress.org/plugins/contesthopper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contesthopper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contesthopper/)
 * [Active Topics](https://wordpress.org/support/plugin/contesthopper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contesthopper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contesthopper/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [Webikon s.r.o.](https://wordpress.org/support/users/webikon/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/not-submintting-form/#post-4610929)
 * Status: not resolved