Recaptcha throwing error. Form not sent

In this form I use ReCaptcha http://makkumnieuws.nl/contact.php
On “Send” I get an error stating a syntax error in
dmxConnectLib\/modules\/recaptcha.php","line":9,"message":"syntax error, unexpected '\\' (T_NS_SEPARATOR), expecting identifier (T_STRING)"
Can anyone tell me what is wrong?

What version of PHP are you running?

7.3

Can you check what exactly do you on line 9 in the dmxConnectLib/modules/recaptcha.php file?
Also - where is the recaptcha control in your form?

Just above </head> is <script src="https://www.google.com/recaptcha/api.js"></script>
Recaptcha itself is in the form

<div class="form-group row">
                                <label for="input1" class="col-sm-2 col-form-label">Validatie</label>
                                <div class="col-sm-10">
<div id="dmxReCaptcha21" class="g-recaptcha" data-sitekey="sitekeydummy"></div>
                                </div>
                            </div>
                            <div class="form-group row">
                                <div class="col-sm-2">&nbsp;</div>
                                <div class="col-sm-10">
                                    <button id="btn1_submit" type="submit" class="btn btn-primary" dmx-on:click="contactform.submit()">Verzenden</button>
                                </div>
                            </div>
                        </form>

In Server Actions ReCaptcha is above the ‘Send mail’ action
Below are the first 27 lines of modules/recaptcha.php

This file looks corrupted.
Please remove the dmxConnectLib folder locally. Save any server action and it will be recreated.
Upload the new dmxConnectLib folder to your server.

1 Like

Working now. Thanks for the assist. Will try to remember to do this first next time :sweat_smile: