Support » Plugin: Paid Memberships Pro - Restrict Member Access to Content, Courses, Communities - Free or Paid Subscriptions » Checkout page: page crash due to missing function “pmpro_recaptcha_get_html()”

  • Resolved swissspaceboy



    Plugin version: v2.7.5

    My checkout page is crashing/looping due to this error message:

    2022-03-08T22:06:42+00:00 CRITICAL Uncaught Error: Call to undefined function pmpro_recaptcha_get_html() in /home/.../public_html/wp-content/plugins/paid-memberships-pro/pages/checkout.php:489
    Stack trace:
    #0 /home/.../public_html/wp-content/plugins/paid-memberships-pro/includes/functions.php(380): include()
    #1 /home/.../public_html/wp-content/plugins/paid-memberships-pro/includes/init.php(85): pmpro_loadTemplate('checkout', 'local', 'pages')
    #2 /home/.../public_html/wp-includes/shortcodes.php(343): pmpro_pages_shortcode('', '', 'pmpro_checkout')
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /home/.../public_html/wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(pmpro_...', 'do_shortcode_ta...', '[pmpro_checkout...')
    #5 /home/.../public_html/wp-includes/class-wp-hook.php(287): do_shortcode('[pmpro_checkout...')
    #6 /home/.../public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters('[pmpro_checkout...', Array)
    #7 /home/.../public_html/wp-includes/post-template.php(253): apply_f in /home/.../public_html/wp-content/plugins/paid-memberships-pro/pages/checkout.php on line 489

    Other remarks.
    1. I am using Polylang with 2 languages
    2. recaptcha v3
    3. When I disable the recaptcha, the page loads fine. But it loops when recaptcha is enabled.
    4. It works fine for one language French. When I use the English checkout page, then it crashes with the above error.

    Any fix for this?

    Many thanks,


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Lima


    Hi Didier,

    I’m sorry to hear about this issue you are facing here.

    Does Polylang create new pages for the translated pages? Is French your default language on your site?

    Do you have any custom page template used for your checkout?

    Thread Starter swissspaceboy


    Hi Andrew,

    Hope you are doing fine.

    1. default language = french -> all good here
    2. second language = english -> fails here only in the checkout page.
    3. I have 9 pages in French and 9 pages in English. This works very well in my site to consult my subscription account, the subscription plans, etc. in the correct language. Page links etc are also working fine.
    4. no custo done. I just have 2×9 empty pages with ONLY the PMP shortcodes like [pmpro_checkout]. This is really out of the box.

    Thanks for your help,


    Plugin Author Andrew Lima


    Thanks for the feedback, we are working on resolving this in the near future. The issue comes from the second page (that isn’t set to the Paid Memberships Pro checkout page settings) causing some issues to fail.

    Plugins like WPML will create duplicate pages for the second locale and this causes some of our code functionality to be disconnected. I’ve passed this information onto our development team to investigate a temporary solution or provide further feedback.

    Thank you for your patience.

    Thread Starter swissspaceboy


    Awesome Andrew !

    I know that these multilanguage pages are giving a lot of problems with many plugins. The fault is on WordPress: after 20 years it is still not natively multilanguage.

    Many thanks for the upcoming fix.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkout page: page crash due to missing function “pmpro_recaptcha_get_html()”’ is closed to new replies.