Managing resources usually involves three steps – allocating, using, and releasing. You’re familiar with the try... finally
pattern but Python also provides context managers.
-
Python’s with statement
-
Disable all WordPress Plugins
Check error logs to find which plugin is crashing the site, then check the site’s
wp-config.php
file to identify the database name and prefix.Using phpMyAdmin or similar, assuming “wp” is the prefix, locate
wp_options
table and edit theactive_plugins
row.The data starts
a:X
whereX
is the number of active plugins. Change the entry toa:0:{}
to disable all plugins.