• Resolved aberbenni

    (@aberbenni)


    syntax error, unexpected ‘)’ in /wp-content/plugins/wp-security-audit-log/wp-security-audit-log.php on line 977

Viewing 7 replies - 1 through 7 (of 7 total)
  • that error broke our sites too.

    Also breaking our sites as well

    Plugin Support robertabela

    (@robert681)

    Hello @kennytdb @tmuka and @aberbenni

    Thank you for reporting this issue. We are looking into this and will release an update shortly. Should we need any more information, we’ll let you know.

    Thank you very much for your patience and cooperation.

    The problem is a trailing comma in the esc_html__() function call with PHP<7.3.
    A workaround for now is to remove the last comma in /wp-content/plugins/wp-security-audit-log/wp-security-audit-log.php on line 977

    
    $result .= sprintf(
                    /* translators: 1: Plugin name. 2: Plugin name. 2: Freemius link. 4: Plugin name. */
                        esc_html__( 'Please help us improve %1$s! If you opt-in, some non-sensitive data about your usage of %2$s will be sent to %3$s, a diagnostic tracking service we use. If you skip this, that\'s okay! %2$s will still work just fine.', 'wp-security-audit-log' ) .
                        '<strong>' . $plugin_title . '</strong>',
                        '<strong>' . $plugin_title . '</strong>',
                        '<a href="https://wpactivitylog.com/support/kb/non-sensitive-diagnostic-data/" target="_blank" tabindex="1">freemius.com</a>',
                        '<strong>' . $plugin_title . '</strong>',
                    );
    

    Remove the comma from the last line:

    
    ...
                        '<strong>' . $plugin_title . '</strong>'
                    );
    
    Plugin Support robertabela

    (@robert681)

    Hello @kennytdb @tmuka @aberbenni

    We have just released update 4.3.3.1 which includes the fix. The issue was a coding incompatibility with PHP 7.2 – as also highlighted here by @vhmarkgmailcom

    Thank you very much for using our plugin and sorry if this has caused any inconvenience. Should there be anything else we can assist you with, please do not hesitate to ask.

    Have a great day.

    thanks for the quick fix!

    Plugin Support robertabela

    (@robert681)

    You’re welcome.

    Please do not forget to rate the plugin and our service. These reviews really help the plugin and us.

    Have a great day and thank you for using our plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘syntax error, unexpected ‘)’ in wp-security-audit-log.php on line 977’ is closed to new replies.