XF 2.2 Repairing accidental Amazon plugin S3 deactivation

PapaTango

Member
Never work too late when you are tired. o_O

In a careless error, the Amazon S3 plugin folder scr/addons/AFAws on my working site was deleted. This resulted in the site crashing, as many files needed were in the cloud and could not be accessed by the core. Yup, a big 500 error.

I am posting this to benefit any other admins who may have done something untoward with their S3 plugin installation. This tip is not about Flysystem or AWS configuration problems.

Presuming any previous configurations you made to the scr/config.php file are still intact--follow these steps.

Similar to preparing for a manual install of an addon, extract the /XFAws folder from the original addon ZIP file. FTP yourself to scr/addons/ and make sure that the originally installed XFA file is not there. Then upload the extracted addon folder there.

At this time, your ACP should be functional again, and show the plugin as installable. Execute the install. Barring anything else that might have gotten broken trying to fix the problem--your site should now be fully functional again, and the S3 bucket contents available to the core. Here is the moral of the story:

NEVER DEACTIVATE THE Amazon S3 for XenForo 2.3.0 PLUGIN ON A WORKING SITE.
 

Similar threads

Top Bottom