In another wordpress installation the install of version 2.4.3 does give this error:
PHP Fatal error: Cannot redeclare class WSAL_Settings in ../wp-content/plugins/wp-security-audit-log/classes/Settings.php on line 2
Installing 2.4.2 version of plugin works fine in both cases
Hi Vakantie,
Thank you for showing interest in our plugin.
Can you please advise what version of PHP are you running? As such the plugin should display an error if the version of PHP is older than 5.3 but unfortunately there are some cases when it is not able to display the error.
Looking forward to hearing from you.
Oops! Missed the note where you said installing 2.4.2 works fine. Let me check through the code, will get back to you later on.
Just upgraded PHP to PHP 5.6.22 Same problems exist
It seems this might be a cache related problem. By any chance do you have the option opcache.enable enabled in your php.ini file?
If yes, can you please try to disable it, restart the web server and try again?
Let us know and thank you.
I’m not using opcache. I use xcache
Can you try to temporarily disable the cache and see if you can reproduce the problem?
When completely disabling xcache the problem is gone
It seems that this is a common problem with XCACHE (http://stackoverflow.com/questions/4575341/php-with-apc-fatal-errors-cannot-redeclare-class).
We will look into the possibility of improving the autoloader and remove all the require_once calls in the code. A fix for this will be available in the upcoming version, 2.5.
Ok tnx for getting this fixed in the next version. For now I will leave the xcache disabled.
Hello Vakantie,
We just released a new version update of the plugin. Can you please update it and let me know if the issue was solved?
Looking forward to hearing from you.
Tnx for the new version. Enabled xcache again. Updated the plugin on several wordpress installations and the errors have gone, plugin is working fine now.
Hello Vakantie,
Very glad all is sorted for you 🙂 Would appreciate if you can rate our plugin: https://wordpress.org/support/view/plugin-reviews/wp-security-audit-log
Do not hesitate to get in touch should you have any queries and have a good day.