Ошибка неверный ключ рекапча опенкарт

<?php echo $header; ?>
<div class=»container»>
  <ul class=»breadcrumb»>
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <li><a href=»<?php echo $breadcrumb[‘href’]; ?>»><?php echo $breadcrumb[‘text’]; ?></a></li>
    <?php } ?>
  </ul>
  <?php if ($error_warning) { ?>
  <div class=»alert alert-danger»><i class=»fa fa-exclamation-circle»></i> <?php echo $error_warning; ?>
    <button type=»button» class=»close» data-dismiss=»alert»>&times;</button>
  </div>
  <?php } ?>
  <div class=»row»><?php echo $column_left; ?>
    <?php if ($column_left && $column_right) { ?>
    <?php $class = ‘col-sm-6’; ?>
    <?php } elseif ($column_left || $column_right) { ?>
    <?php $class = ‘col-sm-9’; ?>
    <?php } else { ?>
    <?php $class = ‘col-sm-12’; ?>
    <?php } ?>
    <div id=»content» class=»<?php echo $class; ?>»><?php echo $content_top; ?>
      <h1><?php echo $heading_title; ?></h1>
      <div class=»panel-group» id=»accordion»>
        <div class=»panel panel-default»>
          <div class=»panel-heading»>
            <h4 class=»panel-title»><?php echo $text_checkout_option; ?></h4>
          </div>
          <div class=»panel-collapse collapse» id=»collapse-checkout-option»>
            <div class=»panel-body»></div>
          </div>
        </div>
        <?php if (!$logged && $account != ‘guest’) { ?>
        <div class=»panel panel-default»>
          <div class=»panel-heading»>
            <h4 class=»panel-title»><?php echo $text_checkout_account; ?></h4>
          </div>
          <div class=»panel-collapse collapse» id=»collapse-payment-address»>
            <div class=»panel-body»></div>
          </div>
        </div>
        <?php } else { ?>
        <div class=»panel panel-default»>
          <div class=»panel-heading»>
            <h4 class=»panel-title»><?php echo $text_checkout_payment_address; ?></h4>
          </div>
          <div class=»panel-collapse collapse» id=»collapse-payment-address»>
            <div class=»panel-body»></div>
          </div>
        </div>
        <?php } ?>
        <?php if ($shipping_required) { ?>
        <div class=»panel panel-default»>
          <div class=»panel-heading»>
            <h4 class=»panel-title»><?php echo $text_checkout_shipping_address; ?></h4>
          </div>
          <div class=»panel-collapse collapse» id=»collapse-shipping-address»>
            <div class=»panel-body»></div>
          </div>
        </div>
        <div class=»panel panel-default»>
          <div class=»panel-heading»>
            <h4 class=»panel-title»><?php echo $text_checkout_shipping_method; ?></h4>
          </div>
          <div class=»panel-collapse collapse» id=»collapse-shipping-method»>
            <div class=»panel-body»></div>
          </div>
        </div>
        <?php } ?>
        <div class=»panel panel-default»>
          <div class=»panel-heading»>
            <h4 class=»panel-title»><?php echo $text_checkout_payment_method; ?></h4>
          </div>
          <div class=»panel-collapse collapse» id=»collapse-payment-method»>
            <div class=»panel-body»></div>
          </div>
        </div>
        <div class=»panel panel-default»>
          <div class=»panel-heading»>
            <h4 class=»panel-title»><?php echo $text_checkout_confirm; ?></h4>
          </div>
          <div class=»panel-collapse collapse» id=»collapse-checkout-confirm»>
            <div class=»panel-body»></div>
          </div>
        </div>
      </div>
      <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>
<script type=»text/javascript»><!—
$(document).on(‘change’, ‘input[name=’account’]’, function() {
    if ($(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title > *’).is(‘a’)) {
        if (this.value == ‘register’) {
            $(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_account; ?> <i class=»fa fa-caret-down»></i></a>’);
        } else {
            $(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_payment_address; ?> <i class=»fa fa-caret-down»></i></a>’);
        }
    } else {
        if (this.value == ‘register’) {
            $(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_account; ?>’);
        } else {
            $(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_payment_address; ?>’);
        }
    }
});

<?php if (!$logged) { ?>
$(document).ready(function() {
    $.ajax({
        url: ‘index.php?route=checkout/login’,
        dataType: ‘html’,
        success: function(html) {
           $(‘#collapse-checkout-option .panel-body’).html(html);

            $(‘#collapse-checkout-option’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-checkout-option» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_option; ?> <i class=»fa fa-caret-down»></i></a>’);

            $(‘a[href=’#collapse-checkout-option’]’).trigger(‘click’);
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);
        }
    });
});
<?php } else { ?>
$(document).ready(function() {
    $.ajax({
        url: ‘index.php?route=checkout/payment_address’,
        dataType: ‘html’,
        success: function(html) {
            $(‘#collapse-payment-address .panel-body’).html(html);

            $(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_payment_address; ?> <i class=»fa fa-caret-down»></i></a>’);

            $(‘a[href=’#collapse-payment-address’]’).trigger(‘click’);
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);
        }
    });
});
<?php } ?>

// Checkout
$(document).delegate(‘#button-account’, ‘click’, function() {
    $.ajax({
        url: ‘index.php?route=checkout/’ + $(‘input[name=’account’]:checked’).val(),
        dataType: ‘html’,
        beforeSend: function() {
            $(‘#button-account’).button(‘loading’);
        },
        complete: function() {
            $(‘#button-account’).button(‘reset’);
        },
        success: function(html) {
            $(‘.alert, .text-danger’).remove();

            $(‘#collapse-payment-address .panel-body’).html(html);

            if ($(‘input[name=’account’]:checked’).val() == ‘register’) {
                $(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_account; ?> <i class=»fa fa-caret-down»></i></a>’);
            } else {
                $(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_payment_address; ?> <i class=»fa fa-caret-down»></i></a>’);
            }

            $(‘a[href=’#collapse-payment-address’]’).trigger(‘click’);
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);
        }
    });
});

// Login
$(document).delegate(‘#button-login’, ‘click’, function() {
    $.ajax({
        url: ‘index.php?route=checkout/login/save’,
        type: ‘post’,
        data: $(‘#collapse-checkout-option :input’),
        dataType: ‘json’,
        beforeSend: function() {
            $(‘#button-login’).button(‘loading’);
        },
        complete: function() {
            $(‘#button-login’).button(‘reset’);
        },
        success: function(json) {
            $(‘.alert, .text-danger’).remove();
            $(‘.form-group’).removeClass(‘has-error’);

            if (json[‘redirect’]) {
                location = json[‘redirect’];
            } else if (json[‘error’]) {
                $(‘#collapse-checkout-option .panel-body’).prepend(‘<div class=»alert alert-danger»><i class=»fa fa-exclamation-circle»></i> ‘ + json[‘error’][‘warning’] + ‘<button type=»button» class=»close» data-dismiss=»alert»>&times;</button></div>’);

                // Highlight any found errors
                $(‘input[name=’email’]’).parent().addClass(‘has-error’);
                $(‘input[name=’password’]’).parent().addClass(‘has-error’);
           }
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);
        }
    });
});

// Register
$(document).delegate(‘#button-register’, ‘click’, function() {
    $.ajax({
        url: ‘index.php?route=checkout/register/save’,
        type: ‘post’,
        data: $(‘#collapse-payment-address input[type=’text’], #collapse-payment-address input[type=’date’], #collapse-payment-address input[type=’datetime-local’], #collapse-payment-address input[type=’time’], #collapse-payment-address input[type=’password’], #collapse-payment-address input[type=’hidden’], #collapse-payment-address input[type=’checkbox’]:checked, #collapse-payment-address input[type=’radio’]:checked, #collapse-payment-address textarea, #collapse-payment-address select’),
        dataType: ‘json’,
        beforeSend: function() {
            $(‘#button-register’).button(‘loading’);
        },
        success: function(json) {
            $(‘.alert, .text-danger’).remove();
            $(‘.form-group’).removeClass(‘has-error’);

            if (json[‘redirect’]) {
                location = json[‘redirect’];
            } else if (json[‘error’]) {
                $(‘#button-register’).button(‘reset’);

                if (json[‘error’][‘warning’]) {
                    $(‘#collapse-payment-address .panel-body’).prepend(‘<div class=»alert alert-danger»><i class=»fa fa-exclamation-circle»></i> ‘ + json[‘error’][‘warning’] + ‘<button type=»button» class=»close» data-dismiss=»alert»>&times;</button></div>’);
                }

                for (i in json[‘error’]) {
                    var element = $(‘#input-payment-‘ + i.replace(‘_’, ‘-‘));

                    if ($(element).parent().hasClass(‘input-group’)) {
                        $(element).parent().after(‘<div class=»text-danger»>’ + json[‘error’] + ‘</div>’);

                    } else {


                        $(element).after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    }


                }


                // Highlight any found errors


                $(‘.text-danger’).parent().addClass(‘has-error’);


            } else {


                <?php if ($shipping_required) { ?>


                var shipping_address = $(‘#payment-address input[name=’shipping_address’]:checked’).prop(‘value’);


                if (shipping_address) {


                    $.ajax({


                        url: ‘index.php?route=checkout/shipping_method’,


                        dataType: ‘html’,


                        success: function(html) {


                            // Add the shipping address


                            $.ajax({


                                url: ‘index.php?route=checkout/shipping_address’,


                                dataType: ‘html’,


                                success: function(html) {


                                    $(‘#collapse-shipping-address .panel-body’).html(html);


                                    $(‘#collapse-shipping-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_address; ?> <i class=»fa fa-caret-down»></i></a>’);


                                },


                                error: function(xhr, ajaxOptions, thrownError) {


                                    alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                                }


                            });


                            $(‘#collapse-shipping-method .panel-body’).html(html);


                            $(‘#collapse-shipping-method’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-method» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_method; ?> <i class=»fa fa-caret-down»></i></a>’);


                               $(‘a[href=’#collapse-shipping-method’]’).trigger(‘click’);


                            $(‘#collapse-shipping-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_shipping_method; ?>’);


                            $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_payment_method; ?>’);


                            $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                        },


                        error: function(xhr, ajaxOptions, thrownError) {


                            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                        }


                    });


                } else {


                    $.ajax({


                        url: ‘index.php?route=checkout/shipping_address’,


                        dataType: ‘html’,


                        success: function(html) {


                            $(‘#collapse-shipping-address .panel-body’).html(html);


                            $(‘#collapse-shipping-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_address; ?> <i class=»fa fa-caret-down»></i></a>’);


                            $(‘a[href=’#collapse-shipping-address’]’).trigger(‘click’);


                            $(‘#collapse-shipping-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_shipping_method; ?>’);


                            $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_payment_method; ?>’);


                            $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                        },


                        error: function(xhr, ajaxOptions, thrownError) {


                            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                        }


                    });


                }


                <?php } else { ?>


                $.ajax({


                    url: ‘index.php?route=checkout/payment_method’,


                    dataType: ‘html’,


                    success: function(html) {


                        $(‘#collapse-payment-method .panel-body’).html(html);


                        $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-method» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_payment_method; ?> <i class=»fa fa-caret-down»></i></a>’);


                        $(‘a[href=’#collapse-payment-method’]’).trigger(‘click’);


                        $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


                <?php } ?>


                $.ajax({


                    url: ‘index.php?route=checkout/payment_address’,


                    dataType: ‘html’,


                    complete: function() {


                        $(‘#button-register’).button(‘reset’);


                    },


                    success: function(html) {


                        $(‘#collapse-payment-address .panel-body’).html(html);


                        $(‘#collapse-payment-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_payment_address; ?> <i class=»fa fa-caret-down»></i></a>’);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


            }


        },


        error: function(xhr, ajaxOptions, thrownError) {


            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


        }


    });


});


// Payment Address


$(document).delegate(‘#button-payment-address’, ‘click’, function() {


    $.ajax({


        url: ‘index.php?route=checkout/payment_address/save’,


        type: ‘post’,


        data: $(‘#collapse-payment-address input[type=’text’], #collapse-payment-address input[type=’date’], #collapse-payment-address input[type=’datetime-local’], #collapse-payment-address input[type=’time’], #collapse-payment-address input[type=’password’], #collapse-payment-address input[type=’checkbox’]:checked, #collapse-payment-address input[type=’radio’]:checked, #collapse-payment-address input[type=’hidden’], #collapse-payment-address textarea, #collapse-payment-address select’),


        dataType: ‘json’,


        beforeSend: function() {


            $(‘#button-payment-address’).button(‘loading’);


        },


        complete: function() {


            $(‘#button-payment-address’).button(‘reset’);


        },


        success: function(json) {


            $(‘.alert, .text-danger’).remove();


            if (json[‘redirect’]) {


                location = json[‘redirect’];


            } else if (json[‘error’]) {


                if (json[‘error’][‘warning’]) {


                    $(‘#collapse-payment-address .panel-body’).prepend(‘<div class=»alert alert-warning»>’ + json[‘error’][‘warning’] + ‘<button type=»button» class=»close» data-dismiss=»alert»>&times;</button></div>’);


                }


                for (i in json[‘error’]) {


                    var element = $(‘#input-payment-‘ + i.replace(‘_’, ‘-‘));


                    if ($(element).parent().hasClass(‘input-group’)) {


                        $(element).parent().after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    } else {


                        $(element).after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    }


                }


                // Highlight any found errors


                $(‘.text-danger’).parent().parent().addClass(‘has-error’);


            } else {


                <?php if ($shipping_required) { ?>


                $.ajax({


                    url: ‘index.php?route=checkout/shipping_address’,


                    dataType: ‘html’,


                    success: function(html) {


                        $(‘#collapse-shipping-address .panel-body’).html(html);


                        $(‘#collapse-shipping-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_address; ?> <i class=»fa fa-caret-down»></i></a>’);


                        $(‘a[href=’#collapse-shipping-address’]’).trigger(‘click’);


                        $(‘#collapse-shipping-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_shipping_method; ?>’);


                        $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_payment_method; ?>’);


                        $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


                <?php } else { ?>


                $.ajax({


                    url: ‘index.php?route=checkout/payment_method’,


                    dataType: ‘html’,


                    success: function(html) {


                        $(‘#collapse-payment-method .panel-body’).html(html);


                        $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-method» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_payment_method; ?> <i class=»fa fa-caret-down»></i></a>’);


                        $(‘a[href=’#collapse-payment-method’]’).trigger(‘click’);


                        $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


                <?php } ?>


                $.ajax({


                    url: ‘index.php?route=checkout/payment_address’,


                    dataType: ‘html’,


                    success: function(html) {


                        $(‘#collapse-payment-address .panel-body’).html(html);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


            }


        },


        error: function(xhr, ajaxOptions, thrownError) {


            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


        }


    });


});


// Shipping Address


$(document).delegate(‘#button-shipping-address’, ‘click’, function() {


    $.ajax({


        url: ‘index.php?route=checkout/shipping_address/save’,


        type: ‘post’,


        data: $(‘#collapse-shipping-address input[type=’text’], #collapse-shipping-address input[type=’date’], #collapse-shipping-address input[type=’datetime-local’], #collapse-shipping-address input[type=’time’], #collapse-shipping-address input[type=’password’], #collapse-shipping-address input[type=’checkbox’]:checked, #collapse-shipping-address input[type=’radio’]:checked, #collapse-shipping-address textarea, #collapse-shipping-address select’),


        dataType: ‘json’,


        beforeSend: function() {


            $(‘#button-shipping-address’).button(‘loading’);


        },


        success: function(json) {


            $(‘.alert, .text-danger’).remove();


            if (json[‘redirect’]) {


                location = json[‘redirect’];


            } else if (json[‘error’]) {


                $(‘#button-shipping-address’).button(‘reset’);


                if (json[‘error’][‘warning’]) {


                    $(‘#collapse-shipping-address .panel-body’).prepend(‘<div class=»alert alert-warning»>’ + json[‘error’][‘warning’] + ‘<button type=»button» class=»close» data-dismiss=»alert»>&times;</button></div>’);


                }


                for (i in json[‘error’]) {


                    var element = $(‘#input-shipping-‘ + i.replace(‘_’, ‘-‘));


                    if ($(element).parent().hasClass(‘input-group’)) {


                        $(element).parent().after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    } else {


                        $(element).after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    }


                }


                // Highlight any found errors


                $(‘.text-danger’).parent().parent().addClass(‘has-error’);


            } else {


                $.ajax({


                    url: ‘index.php?route=checkout/shipping_method’,


                    dataType: ‘html’,


                    complete: function() {


                        $(‘#button-shipping-address’).button(‘reset’);


                    },


                    success: function(html) {


                        $(‘#collapse-shipping-method .panel-body’).html(html);


                        $(‘#collapse-shipping-method’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-method» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_method; ?> <i class=»fa fa-caret-down»></i></a>’);


                        $(‘a[href=’#collapse-shipping-method’]’).trigger(‘click’);


                        $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_payment_method; ?>’);


                        $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                        $.ajax({


                            url: ‘index.php?route=checkout/shipping_address’,


                            dataType: ‘html’,


                            success: function(html) {


                                $(‘#collapse-shipping-address .panel-body’).html(html);


                            },


                            error: function(xhr, ajaxOptions, thrownError) {


                                alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                            }


                        });


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


                $.ajax({


                    url: ‘index.php?route=checkout/payment_address’,


                    dataType: ‘html’,


                    success: function(html) {


                        $(‘#collapse-payment-address .panel-body’).html(html);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


            }


        },


        error: function(xhr, ajaxOptions, thrownError) {


            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


        }


    });


});


// Guest


$(document).delegate(‘#button-guest’, ‘click’, function() {


    $.ajax({


        url: ‘index.php?route=checkout/guest/save’,


        type: ‘post’,


        data: $(‘#collapse-payment-address input[type=’text’], #collapse-payment-address input[type=’date’], #collapse-payment-address input[type=’datetime-local’], #collapse-payment-address input[type=’time’], #collapse-payment-address input[type=’checkbox’]:checked, #collapse-payment-address input[type=’radio’]:checked, #collapse-payment-address input[type=’hidden’], #collapse-payment-address textarea, #collapse-payment-address select’),


        dataType: ‘json’,


        beforeSend: function() {


               $(‘#button-guest’).button(‘loading’);


        },


        success: function(json) {


            $(‘.alert, .text-danger’).remove();


            if (json[‘redirect’]) {


                location = json[‘redirect’];


            } else if (json[‘error’]) {


                $(‘#button-guest’).button(‘reset’);


                if (json[‘error’][‘warning’]) {


                    $(‘#collapse-payment-address .panel-body’).prepend(‘<div class=»alert alert-warning»>’ + json[‘error’][‘warning’] + ‘<button type=»button» class=»close» data-dismiss=»alert»>&times;</button></div>’);


                }


                for (i in json[‘error’]) {


                    var element = $(‘#input-payment-‘ + i.replace(‘_’, ‘-‘));


                    if ($(element).parent().hasClass(‘input-group’)) {


                        $(element).parent().after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    } else {


                        $(element).after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    }


                }


                // Highlight any found errors


                $(‘.text-danger’).parent().addClass(‘has-error’);


            } else {


                <?php if ($shipping_required) { ?>


                var shipping_address = $(‘#collapse-payment-address input[name=’shipping_address’]:checked’).prop(‘value’);


                if (shipping_address) {


                    $.ajax({


                        url: ‘index.php?route=checkout/shipping_method’,


                        dataType: ‘html’,


                        complete: function() {


                            $(‘#button-guest’).button(‘reset’);


                        },


                        success: function(html) {


                            // Add the shipping address


                            $.ajax({


                                url: ‘index.php?route=checkout/guest_shipping’,


                                dataType: ‘html’,


                                success: function(html) {


                                    $(‘#collapse-shipping-address .panel-body’).html(html);


                                    $(‘#collapse-shipping-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_address; ?> <i class=»fa fa-caret-down»></i></a>’);


                                },


                                error: function(xhr, ajaxOptions, thrownError) {


                                    alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                                }


                            });


                            $(‘#collapse-shipping-method .panel-body’).html(html);


                            $(‘#collapse-shipping-method’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-method» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_method; ?> <i class=»fa fa-caret-down»></i></a>’);


                            $(‘a[href=’#collapse-shipping-method’]’).trigger(‘click’);


                            $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_payment_method; ?>’);


                            $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                        },


                        error: function(xhr, ajaxOptions, thrownError) {


                            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                        }


                    });


                } else {


                    $.ajax({


                        url: ‘index.php?route=checkout/guest_shipping’,


                        dataType: ‘html’,


                        complete: function() {


                            $(‘#button-guest’).button(‘reset’);


                        },


                        success: function(html) {


                            $(‘#collapse-shipping-address .panel-body’).html(html);


                            $(‘#collapse-shipping-address’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-address» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_address; ?> <i class=»fa fa-caret-down»></i></a>’);


                            $(‘a[href=’#collapse-shipping-address’]’).trigger(‘click’);


                            $(‘#collapse-shipping-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_shipping_method; ?>’);


                            $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_payment_method; ?>’);


                            $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                        },


                        error: function(xhr, ajaxOptions, thrownError) {


                            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                        }


                    });


                }


                <?php } else { ?>


                $.ajax({


                    url: ‘index.php?route=checkout/payment_method’,


                    dataType: ‘html’,


                    complete: function() {


                        $(‘#button-guest’).button(‘reset’);


                    },


                    success: function(html) {


                        $(‘#collapse-payment-method .panel-body’).html(html);


                        $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-method» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_payment_method; ?> <i class=»fa fa-caret-down»></i></a>’);


                        $(‘a[href=’#collapse-payment-method’]’).trigger(‘click’);


                        $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


                <?php } ?>


            }


        },


        error: function(xhr, ajaxOptions, thrownError) {


            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


        }


    });


});


// Guest Shipping


$(document).delegate(‘#button-guest-shipping’, ‘click’, function() {


    $.ajax({


        url: ‘index.php?route=checkout/guest_shipping/save’,


        type: ‘post’,


        data: $(‘#collapse-shipping-address input[type=’text’], #collapse-shipping-address input[type=’date’], #collapse-shipping-address input[type=’datetime-local’], #collapse-shipping-address input[type=’time’], #collapse-shipping-address input[type=’password’], #collapse-shipping-address input[type=’checkbox’]:checked, #collapse-shipping-address input[type=’radio’]:checked, #collapse-shipping-address textarea, #collapse-shipping-address select’),


        dataType: ‘json’,


        beforeSend: function() {


            $(‘#button-guest-shipping’).button(‘loading’);


        },


        success: function(json) {


            $(‘.alert, .text-danger’).remove();


            if (json[‘redirect’]) {


                location = json[‘redirect’];


            } else if (json[‘error’]) {


                $(‘#button-guest-shipping’).button(‘reset’);


                if (json[‘error’][‘warning’]) {


                    $(‘#collapse-shipping-address .panel-body’).prepend(‘<div class=»alert alert-danger»>’ + json[‘error’][‘warning’] + ‘<button type=»button» class=»close» data-dismiss=»alert»>&times;</button></div>’);


                }


                for (i in json[‘error’]) {


                    var element = $(‘#input-shipping-‘ + i.replace(‘_’, ‘-‘));


                    if ($(element).parent().hasClass(‘input-group’)) {


                        $(element).parent().after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    } else {


                        $(element).after(‘<div class=»text-danger»>’ + json[‘error’]
+ ‘</div>’);

                    }


                }


                // Highlight any found errors


                $(‘.text-danger’).parent().addClass(‘has-error’);


            } else {


                $.ajax({


                    url: ‘index.php?route=checkout/shipping_method’,


                    dataType: ‘html’,


                    complete: function() {


                        $(‘#button-guest-shipping’).button(‘reset’);


                    },


                    success: function(html) {


                        $(‘#collapse-shipping-method .panel-body’).html(html);


                        $(‘#collapse-shipping-method’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-shipping-method» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_shipping_method; ?> <i class=»fa fa-caret-down»></i>’);


                        $(‘a[href=’#collapse-shipping-method’]’).trigger(‘click’);


                        $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_payment_method; ?>’);


                        $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


            }


        },


        error: function(xhr, ajaxOptions, thrownError) {


            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


        }


    });


});


$(document).delegate(‘#button-shipping-method’, ‘click’, function() {


    $.ajax({


        url: ‘index.php?route=checkout/shipping_method/save’,


        type: ‘post’,


        data: $(‘#collapse-shipping-method input[type=’radio’]:checked, #collapse-shipping-method textarea’),


        dataType: ‘json’,


        beforeSend: function() {


            $(‘#button-shipping-method’).button(‘loading’);


        },


        success: function(json) {


            $(‘.alert, .text-danger’).remove();


            if (json[‘redirect’]) {


                location = json[‘redirect’];


            } else if (json[‘error’]) {


                $(‘#button-shipping-method’).button(‘reset’);


                if (json[‘error’][‘warning’]) {


                    $(‘#collapse-shipping-method .panel-body’).prepend(‘<div class=»alert alert-danger»>’ + json[‘error’][‘warning’] + ‘<button type=»button» class=»close» data-dismiss=»alert»>&times;</button></div>’);


                }


            } else {


                $.ajax({


                    url: ‘index.php?route=checkout/payment_method’,


                    dataType: ‘html’,


                    complete: function() {


                        $(‘#button-shipping-method’).button(‘reset’);


                    },


                    success: function(html) {


                        $(‘#collapse-payment-method .panel-body’).html(html);


                        $(‘#collapse-payment-method’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-payment-method» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_payment_method; ?> <i class=»fa fa-caret-down»></i></a>’);


                        $(‘a[href=’#collapse-payment-method’]’).trigger(‘click’);


                        $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<?php echo $text_checkout_confirm; ?>’);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


            }


        },


        error: function(xhr, ajaxOptions, thrownError) {


            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


        }


    });


});


$(document).delegate(‘#button-payment-method’, ‘click’, function() {


    $.ajax({


        url: ‘index.php?route=checkout/payment_method/save’,


        type: ‘post’,


        data: $(‘#collapse-payment-method input[type=’radio’]:checked, #collapse-payment-method input[type=’checkbox’]:checked, #collapse-payment-method textarea’),


        dataType: ‘json’,


        beforeSend: function() {


             $(‘#button-payment-method’).button(‘loading’);


        },


        success: function(json) {


            $(‘.alert, .text-danger’).remove();


            if (json[‘redirect’]) {


                location = json[‘redirect’];


            } else if (json[‘error’]) {


                $(‘#button-payment-method’).button(‘reset’);


                


                if (json[‘error’][‘warning’]) {


                    $(‘#collapse-payment-method .panel-body’).prepend(‘<div class=»alert alert-danger»>’ + json[‘error’][‘warning’] + ‘<button type=»button» class=»close» data-dismiss=»alert»>&times;</button></div>’);


                }


            } else {


                $.ajax({


                    url: ‘index.php?route=checkout/confirm’,


                    dataType: ‘html’,


                    complete: function() {


                        $(‘#button-payment-method’).button(‘reset’);


                    },


                    success: function(html) {


                        $(‘#collapse-checkout-confirm .panel-body’).html(html);


                        $(‘#collapse-checkout-confirm’).parent().find(‘.panel-heading .panel-title’).html(‘<a href=»#collapse-checkout-confirm» data-toggle=»collapse» data-parent=»#accordion» class=»accordion-toggle»><?php echo $text_checkout_confirm; ?> <i class=»fa fa-caret-down»></i></a>’);


                        $(‘a[href=’#collapse-checkout-confirm’]’).trigger(‘click’);


                    },


                    error: function(xhr, ajaxOptions, thrownError) {


                        alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


                    }


                });


            }


        },


        error: function(xhr, ajaxOptions, thrownError) {


            alert(thrownError + «rn» + xhr.statusText + «rn» + xhr.responseText);


        }


    });


});


//—></script>


<?php echo $footer; ?>

  1. Всем привет!

    Подскажите решение проблемы, ошибка отображения капчи на странице товара, при написание отзыва.

    Заранее спасибо!

    Notice: Undefined variable: site_key in /home/u720648361/public_html/catalog/view/theme/kingstorepro/template/product/product.tpl on line 470

    [​IMG]
    [​IMG]


  2. Romans

    Romans
    Administrator
    Команда форума

    Сообщения:
    1.410
    Симпатии:
    756

    Обратитесь к автору шаблона, пусть предоставит шаблон для нужной версии.

  3. Самому это исправить нельзя или как убрать проверку вообще?
    Спасибо!

  4. Попробуйте в product.tpl найти код и изменить его.
    Как изменить посмотрите в дефолтном шаблоне вашей версии опенкарт.

  5. Можете подсказать, что удалить, что бы вообще не было этой капчи в отзывах?

  6. Помогите не как не могу найти где в каптчи сделать шрифт внутри побольше, а то глаза сломать можно. Модуль оформления заказа Simple как сказал автор там каптча стандартная опенкартовская.

    Вложения:

    • Image 22015-09-16 09 39 19.jpg

  7. catalogcontrollertoolcaptcha.php

    Ну а шрифт не увеличить… просто так. Надо переделывать.. подключать шрифт и потом увеличивать уже размер в imagestring

  8. у меня там нет captcha.php, я так понял просто увеличения шрифта нет, эх


  9. NTKU

    NTKU
    Новичок

    Сообщения:
    11
    Симпатии:
    0

    reCAPTCHA отображается с такой надписью ОШИБКА: неверный ключ.
    Ключи 30 раз проверил.
    Version 3.0.3.1 (rs.1)

  10. При регистрации капчи, домен указан правильный?


  11. NTKU

    NTKU
    Новичок

    Сообщения:
    11
    Симпатии:
    0

    Да. Прямиком из адресной строки

  12. ,нужно вводить без http//


  13. NTKU

    NTKU
    Новичок

    Сообщения:
    11
    Симпатии:
    0

    На сайте Google домен ввожу так: site.ru
    Но капча выглядит так:

    2019-03-14_15-55-46.png

  14. Странно как то у вас. Я делаю на локалке и даже там работает.
    И выбираете капчу второй версии?


  15. NTKU

    NTKU
    Новичок

    Сообщения:
    11
    Симпатии:
    0

    Модификаторы обновлял, кэш чистил, историю браузера удалял, водички сходил попил. Изготовителю темы пойду поклонюсь. Неужели опять с нуля начинать!


  16. NTKU

    NTKU
    Новичок

    Сообщения:
    11
    Симпатии:
    0

    Вообщем, вопрос решился. У reCAPTCHA есть версии. Я долбился в версию v3. Но рабочей оказалась версия v2.
    Оченьхотелось взгляноть на v3. Опять же вопрос: почему она не работает в последней версии опенкарт.


  17. karpov

    karpov
    Продвинутый пользователь

    Сообщения:
    1.459
    Симпатии:
    236

    ;)


OpenCart Russia Форум

reCAPTCHA ERROR: Неверный домен для ключа сайта

Я реализовал свою reCAPTCHA в соответствии с тем, что показано в примере.

У меня есть этот сценарий в теге head :

В моем form в HTML у меня есть:

Но когда я загружаю form , я получаю такую ​​ошибку:

ОШИБКА: неверный домен для ключа сайта

Я подтвердил, что это правильный ключ сайта для моего домена.

Код в настоящее время находится в поддомене, поэтому я подумал, что, возможно, это проблема, поэтому я также добавил поддомен в администратор Google reCAPTCHA, но все равно получаю сообщение об ошибке.

Тот же самый код на 100% работает в другом домене (с ключом, специфичным для этого домена).
В чем может быть проблема?

17 ответов

На случай, если у кого-то есть подобная проблема. Мое решение состояло в том, чтобы удалить ключ, который не работал, и получить новый ключ для моего домена. И это теперь работает со всеми моими поддоменами, без необходимости явно указывать их в области администрирования recaptcha.

У меня была аналогичная проблема из-за того, что я забыл показать параметр рендеринга

Моя область была довольно сложной. Я взял значение, возвращаемое window.location.host в консоли разработчика, и вставил это значение в белый список администратора recaptcha. Затем я очистил кеш и перезагрузил страницу.

У меня были такие же проблемы. Я решил это: зашел на https://www.google.com/recaptcha/admin , щелкнул домен, а затем перешел к ключевым настройкам внизу.

Там я отключил опцию ниже «Проверка имени домена» Проверить происхождение решения reCAPTCHA.

Нажал сохранить и капча заработала.

Я пробовал это почти 4 часа и, наконец, разобравшись с этим под руководством отсюда, я подумал, что поделюсь с вами своим решением.

Итак, мой домен — это дополнительный домен. Я также получил сообщение «ОШИБКА для владельца сайта: недействительный домен для ключа сайта». Я проверил, что все было правильно, почти тысячу раз, и мне это показалось правильным, пока я не подумал об этом с точки зрения ярлыка на рабочем столе.

Решение:

Поэтому для дополнительного домена убедитесь, что родительский URL-адрес также находится в списке доменов, например: [ДОБАВИТЬ ДОМЕН]. [РОДИТЕЛЬСКИЙ ДОМЕН] .com. Местоположение надстройки будет папкой, которую вы установили на своем хосте, поэтому при использовании дополнительных доменов убедитесь, что корень имеет логичное имя.

Надеюсь, это поможет кому-то другому, и спасибо за предложения людям.

Что касается меня, я просто забыл ввести фактическое доменное имя в области «Основные настройки», где написано «Домены» (по одному в каждой строке).

Попробуйте добавить домены без http:// и https:// , например example.com

Я также столкнулся с этой проблемой, и моим решением было проверить, что я интегрирую соответствующий клиентский код для выбранной мной версии.

В моем случае я выбрал reCAPTCHA v3, но использовал код интеграции клиента для v2.

V3 выглядит так:

Код V2 выглядит так:

Что касается того, какая у вас версия, это будет то, что вы решили в начале настройки учетной записи reCAPTCHA.

Убедитесь, что вы указали свое доменное имя, и оно не должно заканчиваться путем.

Перед повторным созданием ключей, которые решают проблему на 90%, необходимо отметить еще один момент.

Например, ваш каталог xampp — C: xampp

А папка htdocs — это C: xampp htdocs

Мы хотим открыть страницу с именем: example-cap.html, и на странице отображается ошибка «недопустимый домен для ключа сайта»

ИСПОЛЬЗУЙТЕ СВОЙ ЛОКАЛЬНЫЙ АДРЕС в адресе браузера, например:

Это решит вашу проблему

НЕ ИСПОЛЬЗУЙТЕ АДРЕС c: xampp htdocs example-cap.html, это приведет к ошибке

Возможно, вы случайно использовали закрытый ключ в качестве открытого ключа.

Я использовал localhost во время модульного тестирования, когда мой ключ recaptcha был зарегистрирован на 127.0.0.1. Поэтому я изменил свой браузер на 127.0.0.1, и он начал работать. Хотя мне удалось добавить «localhost» в список доменов в моих настройках ключа ReCaptcha, я все еще не могу выполнить модульное тестирование с использованием localhost. Мне нужно использовать IP-адрес обратной петли 127.0.0.1.

Думаю, самый быстрый способ — просто отключить проверку домена, пока вы его разрабатываете.

У меня были те же проблемы, что и я решил. Я зашел на страницу https://www.google.com/recaptcha/admin и щелкнул домен, а затем перешел к ключевым настройкам внизу.

Там я отключил опцию ниже Проверка доменного имени Проверьте источник решения reCAPTCHA

Нажал на сохранение и капча заработала.

Я думаю, это связано со способом настройки сервера. Я использую общий хостинг, и меня просто без уведомления перевели с Liquidweb на Deluxehosting (так как первый продал свой общий хостинг второму), и у меня возникли такие проблемы со многими проблемами. Я думаю, что в этом случае Google проверяет сервер, но он идентифицируется как имя общего сервера, а не как мой домен. Когда я снимаю флажок «Проверить происхождение», он начинает работать. Надеюсь, это поможет решить проблему на данный момент.

Не нужно создавать новый ключ, просто очистите данные сайта в браузере

Если вы измените домен своего сайта, добавьте этот домен к существующему ключу (создавать новый ключ не обязательно) и сохраните его.

Но у Google recapture есть некоторые данные о браузере. Очистите их, тогда он будет работать с вашим новым доменом

Прежде всего, управление ключами осуществляется на странице https://www.google.com/recaptcha/admin#. список

Я столкнулся с этой ошибкой, потому что я использую один и тот же ключ в нескольких разных доменах, и я забыл добавить один из доменов к ключу.

После добавления моего сайта потребовалась минута или две (скорее всего, из-за кеша), чтобы все снова заработало нормально.

Вы должны установить свой домен, например: www.abi.wapka.mobi , то есть если вы используете сайт wapka.

Обратите внимание, что если у вас есть домен с wapka, он не будет работать, поэтому сравните wapka с вашим провайдером сайта и отправьте текстовое сообщение.

Joomla 3.8.1 и CAPTCHA — reCAPTCHA v2 — Joomla 3.x: Установка, обновление и настройка

Бесплатный плагин вставки модулей Joomla в JoomShopping. Нередко, при разработке интернет-магазина на Joomla JoomShopping бывает нужно вывести информацию из модулей Joomla в карточке товара или в категории. Обычно это делается программным методом прямо в шаблоне магазина.

Вышел релиз Joomla 4.1.4

Доступна к загрузке Joomla 4.1.4. Это релиз с исправлениями ошибок и улучшениями для серий Joomla 4.0.x.

Сбор средств для помощи нашему камраду voland’у

Сообщество Joomla!, объявляется сбор средств для помощи нашему камраду Болотову Сергею, на форуме — voland, создатель бота Ванга, повелитель минусов на форуме )).

reCAPTCHA ERROR: Invalid domain for site key

I have implemented my reCAPTCHA in line with as is shown in the example.

I have this script in the head tag:

In my form in HTML I have:

But when I load the form I get this error:

ERROR: Invalid domain for site key

I have confirmed that this is the correct site key for my domain.

The code is currently in a subdomain so I thought maybe that was the problem so I also added the subdomain to the Google reCAPTCHA admin but still get the error.

The exact same code works 100% in a different domain (with a key specific to that domain).
What could be the problem?

user avatar

17 Answers 17

In case someone has a similar issue. My resolution was to delete the key that was not working and got a new key for my domain. And this now works with all my sub-domains as well without having to explicitly specify them in the recaptcha admin area.

I ran into this error because I’m using the same key on a few different domains and I had forgotten to add one of the domains to the key.

After adding my site it took a minute or two (most likely because of cache) for things to work normally again.

user avatar

I had the same problems I solved it. I went to https://www.google.com/recaptcha/admin and clicked on the domain and then went to key settings at the bottom.

There I disabled the the option below Domain Name Validation Verify the origin of reCAPTCHA solution

clicked on save and captcha started working.

I think this has to do with way the server is setup. I am on a shared hosting and just was transferred without notice from Liquidweb to Deluxehosting(as the former sold their share hosting to the latter) and have been having such problems with many issues. I think in this case google is checking the server but it is identifying as shared server name and not my domain. When i uncheck the «verify origin» it starts working. Hope this helps solve the problem for the time being.

I tried to set up reCAPTCHA, on my page by following the instructions here. I signed up for an API key pair and was issued a public key and a private key. It was not clear, to me, how the private key should be used and I could not find more information about it. It does not appear to be used on the page where reCAPTCHA is called.

I edited my page and put

<script src='https://www.google.com/recaptcha/api.js'></script>

before the closing </head> tag on my HTML template.

I also put

<div class="g-recaptcha" data-sitekey="my-public-key"></div>

where I want my reCAPTCHA widget to appear.

When I load my page, I get the message

Cannot contact reCAPTCHA. Check your connection and try again.

I also see the reCAPTCHA widget with the text

ERROR for site owner: Invalid site key

I have checked similar questions such as this, where the answer says the key is probably invalid but I have just generated it. I also saw this but I did not disable

Verify the origin of reCAPTCHA solutions

OC 3.0.2 — reCAPTCHA — error: Invalid Keytype


Hi All,

I am trying to activate reCAPTCHA on my site and having trouble getting it to work. I keep getting:

Error for site owner: Invalid Keytype.

I have registered the shop owners e-mail address (name@mydomain.com) with Google and generated the site key and secret key succesfully for the domain and the owner.
I entered these keys in the reCAPTCHA extension and set the extension active. I also activated reCAPTCHA in the shop options and checked all the boxes underneath it.
I checked the PHP settings with my hoster and allow_url_fopen is on. This is also the case in the php.ini in my site.

I even tried to remove the keys and generate new keys. The problems is still there.

Any help greatly appreciated because all the fake orders / messages I receive drive me nuts ;)

Greetz,

Sjonnie

EDIT: I checked the logs (System -> Maintenance -> Error logs) and found no errors concerning reCAPTCHA

EDIT2: FWIW: the site is using PHP 5.6




Joined

Wed Dec 27, 2017 11:26 pm

Re: OC 3.0.2 — reCAPTCHA — error: Invalid Keytype


User avatar



Joined

Mon Aug 22, 2011 11:01 pm

Re: OC 3.0.2 — reCAPTCHA — error: Invalid Keytype


Post

by Sjonnie2017 » Mon Dec 24, 2018 11:24 pm

Hi Paul,

Thanks for your reply!

What do you want to look at? Do you want to have access to the admin panel or would it be enough to have a look at the page containing the error?

Looking forward to your reply!

Greetz,

Sjonnie




Joined

Wed Dec 27, 2017 11:26 pm

Re: OC 3.0.2 — reCAPTCHA — error: Invalid Keytype


Post

by Sjonnie2017 » Sun Dec 30, 2018 12:53 am

Friendly bump!
Does anyone have any clue as to why recaptcha does not work? I have even cloned my site, changed the owners e-mail address and registered that with Google but to no avail!

Any help really appreciated (since I am still going nuts with all the fake registrations/buys/questions I get :( )




Joined

Wed Dec 27, 2017 11:26 pm

Re: OC 3.0.2 — reCAPTCHA — error: Invalid Keytype


Post

by MysticKnight » Mon May 18, 2020 4:05 pm

For whatever reason, OpenCart isn’t compatible with Google reCAPTCHA v3.

It works if you configure it with Google reCAPTCHA v2.


Bill Elgin
Custom Website Design
www.billelgin.com

Who is online

Users browsing this forum: No registered users and 40 guests

Понравилась статья? Поделить с друзьями:
  • Ошибка неверный идентификатор языка программирования
  • Ошибка неверный домен ключа что это значит
  • Ошибка неверный домен ключа конфиденциальность условия использования
  • Ошибка неверная контрольная сумма
  • Ошибка неверная вещественная операция паскаль