What i’ve had to do is deactivate the plugin by renaming the directory via FTP, log in to WP dashboard, then via FTP I have deleted /wp-content/uploads/aios, also deleted /wp-content/mu-plugins/aios-firewall-loader.php (because without removing these 2, I couldn’t reactivate the plugin), then re-activate and re-insert the rules.
But this seems to be a lengthy and annoying process to have to do from now on each time I clone a site, which i’ve never had problems with before – has something been updated? And how am I now best restoring backups of my sites?
Thanks
Just to help with your investigation in to this, I have compared the site I clone from (the one I tried to restore on a new domain), with one of my other sites.
My other site does not have the following in .htaccess:
# Begin AIOWPSEC Firewall
<IfModule LiteSpeed>
php_value auto_prepend_file '/home/blabla/public_html/demo/aios-bootstrap.php'
</IfModule>
<IfModule lsapi_module>
php_value auto_prepend_file '/home/blabla/public_html/demo/aios-bootstrap.php'
</IfModule>
# End AIOWPSEC Firewall
And I suspect this is because I haven’t yet clicked “Upgrade your protection now” on this message:
“We have detected that your AIOS firewall is not fully installed, and therefore does not have the highest level of protection. Your firewall will have reduced functionality until it has been upgraded.”
So by clicking that button, what else does that do apart from add the above lines in to the .htaccess file? and when was this introduced?
I only ‘upgraded the protection’ on my demo website a few days ago so this process must have been the cause of this new issue I am having with restoring the backup, why would it do this?
Thanks.
Hi @adejones
This issue might be due to the site has been copied from some where other site and still the path in wp-config.php., htaccess, .user.ini, aios-bootstrap.php are of the old site which is loading the class form another copy of website on the same hosting.
Or in parent folder another site will have the AIOS installed and from its the aios-bootstrap.php being called and prepend file.
Regards
Hi @hjogiupdraftplus – thanks for the reply. That seems about right, I did another clone and got the error but then removed the /wp-content/mu-plugins/aios-firewall-loader.php file and I was able to proceed with my set up process.
I assume this is something added in to the latest update? Is there anything in particular I can disable in the settings to remove this file from my main sites mu-plugins directory to make my future cloning a bit easier?
Hi @adejones
Latest update do not have any change regarding the mu-plugins /aios-firewall-loader.php related. but yes how it gets added using the full path that is changed due to for some new install undetermined context issue.
Right now there is no any such settings to remove that file.
Hi @adejones
This recently identified issue regarding can not redeclare class have been solved by us.
Please upload the zip as Add new plugin and replace it with existing AIOS plugin.
https://gofile.io/d/QNwe88
This fix is going to be in the next version release.
Thanks, uploaded the zip yesterday, cloned my site again for another customer today and didn’t have any issues.