Activate my plugins via FTP

时间:2016-10-26 作者:Ben Horle

嗨,我已经禁用了我的所有插件来尝试确定插件冲突,结果只需单击一下就破坏了我的网站!

我搜索了arrond,发现有人说你可以通过FTP将其转为om。

我想我找到了我的“active plugins“phpmyadmin中的tasble,其内容如下

a:1:{i:4;s:27:"cornerstone/cornerstone.php";}
但我在我的插件文件夹中有所有这些插件,它们以前都是活动的。

File path:
/public\\u html/wp-content/plugins/all-in-one-wp-security and firewall
/public\\u html/wp-content/plugins/business worldpay gateway for woocommerce
/public\\u html/wp-content/plugins/contact-form-7-to-database-extension
/public\\u html/wp-content/plugins/基石
/public\\u html/wp-content/plugins/really simple captcha
/public\\u html/wp-contentt/plugins/remove query strings from static resources(从静态资源中删除查询字符串)
/public\\u html/wp content/plugins/revision control(插件/修订控制)
/public\\u html/wp content/plugins/simple-301-redirects(重定向)
/public\\u html/wp content/plugins/updraftplugins(插件)/woomerce(Woomerce)
/public\\u html/wp content/plugins/woomerce订单交付ugins/woocommerce产品过滤器
/public\\u html/wp内容/插件/woothemes更新程序
/public\\u html/wp内容/插件/woothemes seo高级版
/public\\u html/wp内容/插件/wp优化
/public\\u html/wp内容/插件/x-content-dock
/public\\u html/wp内容/插件/x-custom-404
/public\\u html/wp内容/插件/x-facebook-comments
/public\\u html/wp content/plugins/x-google-analytics/public\\u html/wp content/plugins/x-smooth-scroll/public\\u html/wp content/plugins/advanced cache。php
/public\\u html/wp-content/plugins/index。php

如何打开所有这些?对不起,我知道这是个大问题!谁能告诉我,我是否可以从这里再次激活插件?

谢谢

2 个回复
最合适的回答,由SO网友:AddWeb Solution Pvt Ltd 整理而成

尝试以下mysql查询激活您的插件:

UPDATE wp_options SET option_value = \'a:22:{i:0;s:19:"akismet/akismet.php";i:1;s:58:"contact-form-7-to-database-extension/contact-form-7-db.php";i:2;s:36:"contact-form-7/wp-contact-form-7.php";i:3;s:27:"js_composer/js_composer.php";i:4;s:23:"revslider/revslider.php";i:5;s:23:"soliloquy/soliloquy.php";i:6;s:27:"updraftplus/updraftplus.php";i:7;s:41:"wordpress-importer/wordpress-importer.php";i:8;s:24:"wordpress-seo/wp-seo.php";i:9;s:25:"wp-smushit/wp-smushit.php";i:10;s:33:"x-content-dock/x-content-dock.php";i:11;s:29:"x-custom-404/x-custom-404.php";i:12;s:39:"x-disqus-comments/x-disqus-comments.php";i:13;s:39:"x-email-mailchimp/x-email-mailchimp.php";i:14;s:43:"x-facebook-comments/x-facebook-comments.php";i:15;s:41:"x-google-analytics/x-google-analytics.php";i:16;s:43:"x-olark-integration/x-olark-integration.php";i:17;s:29:"x-shortcodes/x-shortcodes.php";i:18;s:35:"x-smooth-scroll/x-smooth-scroll.php";i:19;s:45:"x-under-construction/x-under-construction.php";i:20;s:29:"x-video-lock/x-video-lock.php";i:21;s:31:"x-white-label/x-white-label.php";}\' WHERE option_name = \'active_plugins\';
但正如您所说的“确定插件冲突并最终破坏我的网站”,我建议您遵循以下步骤:

1 De-activate All Plugins via phpmyadmin在选项表中,找到option_name 列并查找查找名为active_plugins. 在active_plugins 行,单击“编辑”。您将看到类似的内容:

a:22:{i:0;s:19:"akismet/akismet.php";i:1;s:58:"contact-form-7-to-database-extension/contact-form-7-db.php";i:2;s:36:"contact-form-7/wp-contact-form-7.php";i:3;s:27:"js_composer/js_composer.php";i:4;s:23:"revslider/revslider.php";i:5;s:23:"soliloquy/soliloquy.php";i:6;s:27:"updraftplus/updraftplus.php";i:7;s:41:"wordpress-importer/wordpress-importer.php";i:8;s:24:"wordpress-seo/wp-seo.php";i:9;s:25:"wp-smushit/wp-smushit.php";i:10;s:33:"x-content-dock/x-content-dock.php";i:11;s:29:"x-custom-404/x-custom-404.php";i:12;s:39:"x-disqus-comments/x-disqus-comments.php";i:13;s:39:"x-email-mailchimp/x-email-mailchimp.php";i:14;s:43:"x-facebook-comments/x-facebook-comments.php";i:15;s:41:"x-google-analytics/x-google-analytics.php";i:16;s:43:"x-olark-integration/x-olark-integration.php";i:17;s:29:"x-shortcodes/x-shortcodes.php";i:18;s:35:"x-smooth-scroll/x-smooth-scroll.php";i:19;s:45:"x-under-construction/x-under-construction.php";i:20;s:29:"x-video-lock/x-video-lock.php";i:21;s:31:"x-white-label/x-white-label.php";}
剪切该代码并单击Go。现在所有插件都已成功停用。

2 Determine the cause plugin现在,确定哪个插件导致问题的最好方法是通过您的WordPress管理员登录页面,逐个启用每个插件,转到插件>已安装插件>逐个启用插件,并每次查看您的网站首页。

希望这对你有用

SO网友:TheDeadMedic

在FTP中,重命名:

  1. wp-content/themeswp-content/themes-tmp
  2. wp-content/pluginswp-content/plugins-tmp
。。。此时,您应该能够重新登录/访问您的仪表板(此时站点的前端将完全死机,这没关系)。

因此,现在您进入了,转到“插件”-这将确保WP永久停用所有插件,因为从技术上讲,这些插件不再安装(已重命名目录)。

返回FTP,还原plugins 目录,离开themes-tmp 单独地然后再回到WordPress,重新激活所有需要的插件。

现在终于回到FTP恢复themes.