• Resolved aberbenni

    (@aberbenni)


    Fatal error on websites using latest version (4.4.3.1) of this plugin.

    Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /wp-content/plugins/wp-security-audit-log/classes/Settings.php on line 30

    WordPress 5.5.9 & WordPress 6.0.3
    PHP 7

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support robertabela

    (@robert681)

    Thank you for using our plugin @aberbenni

    I am sorry to read about your issue. Can you please share more details about this?

    1. When is this happening? Does this happen when you activate the plugin or when you do something specific on your website?
    2. Can you share all the logs please?

    Looking forward to hearing from you.

    Thread Starter aberbenni

    (@aberbenni)

    Hello @robert681 the problem occurred with the last automatic update.
    Two sites, one with WP 5.5.9 and one with WP 6.0.3 crashed showing the above error message.
    I deactivated the plugin manually by renaming the folder containing it.

    Trying to reactivate it (on WP 6.0.3) I get this error message:

    Plugin could not be activated because it triggered a fatal error.
    
    Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /wp-content/plugins/wp-security-audit-log/classes/Settings.php on line 30

    At the moment I do not have access to the logs, I will follow up as soon as I have news.

    Plugin Support robertabela

    (@robert681)

    Hello @aberbenni

    That is happening because you are using PHP 7. The minimum version of PHP required is 7.2. We have just updated the version in the plugin’s readme file. Sorry for missing this one.

    So the best solution is to upgrade your version of PHP to at least 7.2. Should you have any more questions, please do not hesitate to ask.

    Have a good day and thank you again for using our plugin.

    Thread Starter aberbenni

    (@aberbenni)

    I am in the process of migrating these sites to a new server so I think the problem will solve itself.

    Plugin Support robertabela

    (@robert681)

    Glad to hear that @aberbenni

    Should there be anything else we can assist you with, please do not hesitate to ask.

    Have a great day.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘FATAL: Parse error in Settings.php on line 30 in Version 4.4.3.1’ is closed to new replies.