Quote Originally Posted by torvista View Post
As you correctly surmised, the culprit is your obsolete php 5.6.

You need to remove the ":string" from that line:
Code:
function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null): string {
to
Code:
function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null) {
Thanks - that got rid of the errors but now the recaptcha isn't working... I can submit forms on the site without ticking the Google checkbox? (not sure if it's related or not?)