Linux 软件免费装
Banner图

Safe Mode

开发者 wpkonsulent
更新时间 2018年12月20日 18:23
PHP版本: 3.0.1 及以上
WordPress版本: 5.0.2
版权: GPLv2 or later
版权网址: 版权信息

标签

debug error recovery safe mode

下载

详情介绍:

This plugin enables safe mode for WordPress. This means: Why is this useful? Whenever something's wrong with a WordPress site, the first rule of thumb is to disable plugins and revert to the default theme if possible. Depending on the nature of the error, that is not always an option. The back end (dashboard) may also be down or you may not have FTP access to manually disable plugins and themes. Enter Safe Mode. Safe Mode will completely disable all plugins and the active theme temporarily for a single page view - ultimately enabling you to log in and remove the offending plugin. (This is not guaranteed to work in all scenarios, please read the disclaimer) How does it work? If your site crashes due to an upsetting plugin or theme, all you have to do is add a querystring parameter to the URL. Doing that will temporarily disable all plugins for that single page view, as well as temporarily activate a default theme if one is installed. Let's say you're the owner of www.example.com. To enable safe mode for one particular page, you add this to the URL: "?safe_mode=1". Bear in mind that you have to do this for every view. The querystring parameter isn't carried on automatically. So, for instance: When you go to plugin management, all plugins will seem to be deactivated (due to the way Safe Mode works), but you'll still be able to explicitly deactivate each plugin. Just use the "Deactivate (safe mode)" option. What are default themes? By default theme, I'm referring to the themes that ships with WordPress, you know, the Twenty "something" ones. The plugin checks if any of these themes are installed, and if so, activates the first theme it encounters. Thus I highly recommend that you keep one of those themes installed at all times. If you don't, safe mode will keep your current active theme, and that theme may just be the offender - leaving safe mode useless. Keep this in mind. Disclaimer This plugin will be able to handle many scenarios, but not all. If your site's crash is caused by a database crash, or something that simply brings down the PHP parser, like a call to an undefined function, Safe Mode won't be able to do anything about that.

安装:

  1. Upload the safe-mode folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
NOTE: Upon activation, the plugin tries to copy a file to the /wp-content/mu-plugins/ directory. If the mu-plugins directory does not exist, the plugin will attempt to create it and copy the file. Depending on your file permissions it may not be successful. If not, you'll have to create the directory manually and copy the file /wp-content/plugins/safe-mode/loader/safe-moder-loader.php to the /wp-content/mu-plugins/ directory.

更新日志:

1.1.3 1.1.2 1.1.1 1.1 1.0