Title: Bug in displaying Google Recpatcha
Last modified: February 7, 2025

---

# Bug in displaying Google Recpatcha

 *  [samrueby](https://wordpress.org/support/users/samrueby/)
 * (@samrueby)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/)
 * Hello. We are a paying customer of WP Job Manager.
 * We develop our own theme. Our plugins are up to date. Our version of WP Job Manger
   is Version 2.4.0.
 * The issue is that on our submit-job page, using the shortcode `[submit_job_form]`.
   When you first load the page, our recpatcha field “Are you human?” does not appear.
   There are no browser console errors. The script for recaptcha from Google is 
   not loaded. If you fill out the form fully and click submit, you will receive
   a validation error that recpatcha did not validate. The recaptcha field **now**
   displays and you are able to submit the form.
 * In summary, the recaptcha field only displays _after _the first form submission.
 * We have Recpatcha configured in WP Job Manager settings. V2 checkbox. Site/secret
   key are correct. “Display a CATPCHA field on your job submission form.” is checked.
 * I have debugged the site. The bug is that WP Job Manager attempts to load the
   recpatcha ‘[https://www.google.com/recaptcha/api.js&#8217](https://www.google.com/recaptcha/api.js&#8217);
   too late in WordPress’s request life cycle. WP Job Manager is triggered by finding
   the shortcode `[submit_job_form]`. Unfortunately, that is **after** the wp_enqueue_scripts
   action has executed. Because of this, .google.com/recaptcha/api.js is never added
   to the page. Please see this demonstrated in the screenshot below.
 * ![](https://www.dropbox.com/scl/fi/7j1s6bz6wgui51tvaeftc/1.png?rlkey=oaet7gassgznpu3y1vehyx5oj&
   dl=1)
 * (html\wp-content\plugins\wp-job-manager\includes\class-wp-job-manager-recaptcha.
   php ALT Image is a screenshot of Visual Studio Code while debugging class-wp-
   job-manager-recaptcha.php. The debugger call stack shows the code was triggered
   by do_shortcode. The code in class-wp-job-manager-recaptcha.php adds to wp_enqueue_scripts
   too late so the method enqueue_scripts is never called. )
 * Let’s see what happens after the form is submitted where recpatcha is loaded 
   correctly.
 * ![](https://www.dropbox.com/scl/fi/u96uq80vt6as6lb0tnwu0/2.png?rlkey=5nx825fs77cbtjml3b63m86t3&
   dl=1)
 * ( ALT image is a screenshot of Visual Studio Code while debugging class-wp-job-
   manager-recaptcha.php. The debugger call stack shows the code was triggered by
   load_posted_form. The code in class-wp-job-manager-recaptcha.php adds to wp_enqueue_scripts
   earlier enough in the request that enqueue scripts is called. )
 * We can see here the wp_enqueue_scripts action is added early enough in the life
   cycle that enqueue_scripts does get called, google.com/recaptcha/api.js is added
   to the page, and the recpatcha field is loaded correctly.
 * We believe this is a bug in the WP Job Manager Plugin and have not yet found 
   a workaround.
    -  This topic was modified 1 year, 4 months ago by [samrueby](https://wordpress.org/support/users/samrueby/).
      Reason: Fixed screenshots
    -  This topic was modified 1 year, 4 months ago by [samrueby](https://wordpress.org/support/users/samrueby/).
      Reason: image alt text

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

 *  Moderator [Support Moderator](https://wordpress.org/support/users/moderator/)
 * (@moderator)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18289743)
 * “We are a paying customer of WP Job Manager.”
 * Support all commercial themes and plugins is out of scope for these forums. We
   recommend you instead use the developer’s official contact for their premium 
   offerings, as that is the most direct line.We are a paying customer of WP Job
   Manager.
    -  This reply was modified 1 year, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Thread Starter [samrueby](https://wordpress.org/support/users/samrueby/)
 * (@samrueby)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18289759)
 * [@moderator](https://wordpress.org/support/users/moderator/) I don’t understand
   your response. This is the developer’s official support forum.
 *  Moderator [Support Moderator](https://wordpress.org/support/users/moderator/)
 * (@moderator)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18289784)
 * You are a paying customer. See [https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products)
 * You’ll find support at [https://wpjobmanager.com/support/](https://wpjobmanager.com/support/)
    -  This reply was modified 1 year, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Thread Starter [samrueby](https://wordpress.org/support/users/samrueby/)
 * (@samrueby)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18290102)
 * I looked into submitting a ticket there. I unfortunately don’t have access to
   the wordpress account associated with the license, so I am unable to submit.
 *  Moderator [Support Moderator](https://wordpress.org/support/users/moderator/)
 * (@moderator)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18290157)
 * You can’t do so here.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18290192)
 * see [https://wordpress.com/wp-login.php?action=lostpassword](https://wordpress.com/wp-login.php?action=lostpassword)
   to login to wp.com
 *  Plugin Support [Alba](https://wordpress.org/support/users/ctdealba/)
 * (@ctdealba)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18292457)
 * Hi [@samrueby](https://wordpress.org/support/users/samrueby/)
 * If you can’t find your login details, the email or username you used isn’t recognized,
   you can’t access the email you signed up with, and you can’t [reset your password](https://wordpress.com/support/account-recovery/#reset-your-password),
   WordPress.com Happiness Engineers might be able to help you regain access to 
   your account.
 * To request help with recovering your account, please refer to these instructions:
   [https://wordpress.com/support/account-recovery/#verify-your-account-ownership](https://wordpress.com/support/account-recovery/#verify-your-account-ownership).
 * Once you have your log in details, please head over to [https://wpjobmanager.com/my-account/](https://wpjobmanager.com/my-account/)
   and access your account. From there, you will be able to submit a report using
   the contact form found at the bottom of this page: [https://wpjobmanager.com/support/](https://wpjobmanager.com/support/).
 * Best,
   Alba
 *  Thread Starter [samrueby](https://wordpress.org/support/users/samrueby/)
 * (@samrueby)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18292475)
 * Thank you. At the moment I am feeling like I would have received more support
   by not mentioning we’re a paid customer. I would be satisfied if at the very 
   least this could be a confirmed bug.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18292477)
 * [@samrueby](https://wordpress.org/support/users/samrueby/) I’m closing this topic
   because, as you say, you are a paying customer of A8C/Jetpack.

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

The topic ‘Bug in displaying Google Recpatcha’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/bug-in-displaying-recpatcha/#post-18292477)
 * Status: not resolved