wordpress 插件菜单未出现在管理面板中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11194028/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Plugins menu doesn't appear in the admin panel
提问by Andrew Joslin
I'm having a very simple problem. I'm new to WordPress and I'm trying to install a plugin.
我有一个非常简单的问题。我是 WordPress 的新手,我正在尝试安装一个插件。
Everyone says there's a "plugins" option on the sidebar-menu in the admin panel, but I don't see one! I've looked for it in all the sub-menus too.
每个人都说管理面板的侧边栏菜单上有一个“插件”选项,但我没有看到!我也在所有的子菜单中寻找过它。
Whenever I try to search for this problem, I get results about creating a plugin to show on the admin menu.
每当我尝试搜索此问题时,都会得到有关创建插件以显示在管理菜单上的结果。
Anyway, how can I get the plugins menu to show up?
无论如何,我怎样才能让插件菜单显示出来?
回答by random_user_name
The issue is almost certainly related to one of two things:
这个问题几乎肯定与以下两件事之一有关:
1) You don't have permissions (are you logged in as admin?)
1)您没有权限(您是否以管理员身份登录?)
OR
或者
2) The theme (or a plugin) has disabled the plugins menu.
2) 主题(或插件)禁用了插件菜单。
After you've checked to be sure that you are an administrator, then you should attempt to view this page:
在您确认您是管理员之后,您应该尝试查看此页面:
http://www.yourdomain.com/wp-admin/plugins.php(replacing www.yourdomain.com with your site's domain name).
http://www.yourdomain.com/wp-admin/plugins.php(用您网站的域名替换 www.yourdomain.com)。
If it's accessible, then it's time to start exploring the theme (which theme are you using?) and possibly some of the plugins that might have disabled the menu item.
如果它可以访问,那么是时候开始探索主题(您使用的是哪个主题?)以及可能禁用了菜单项的一些插件。
FYI, the method to remove dashboard menu items is covered here: http://www.wprecipes.com/how-to-remove-menus-in-wordpress-dashboard
仅供参考,此处介绍了删除仪表板菜单项的方法:http: //www.wprecipes.com/how-to-remove-menus-in-wordpress-dashboard
回答by Junior Mayhé
If you did double check your file permissions (i.e. 755 for folders and 644 for wordpress files on Linux), please consider editing your wp-config.php
file and change
如果您确实仔细检查了您的文件权限(即 Linux 上的文件夹为 755,而 wordpress 文件为 644),请考虑编辑您的wp-config.php
文件并更改
define('DISALLOW_FILE_MODS',true);
to
到
define('DISALLOW_FILE_MODS',false);
The Add New
option in Plugins
menu will show up, also if you have internet connection, possible updates will be shown up.
菜单中的Add New
选项Plugins
将显示,如果您有互联网连接,也会显示可能的更新。
回答by guy
This what I found looking for the same problem, I guess this is your situation also:
这是我在寻找相同问题时发现的,我想这也是您的情况:
If your site is hosted onWordPress.com:
如果您的网站托管在WordPress.com 上:
Plugins: Plugins are tools used to extend the functionality of the WordPress platform. However, they are only applicable to self-hosted blogs and web sites using the WordPress.org software. Plugins are not permitted here at WordPress.com for various security reasons.
插件:插件是用于扩展 WordPress 平台功能的工具。但是,它们仅适用于使用 WordPress.org 软件的自托管博客和网站。出于各种安全原因,WordPress.com 上不允许使用插件。
回答by SzisZ
On wordpress.com hosted sites, you don't have permission to install plugins. You must have an own wordpress installation to do that.
在 wordpress.com 托管站点上,您无权安装插件。你必须有自己的 wordpress 安装才能做到这一点。
回答by Tom Bush
I found this post searching for help with a similar issue with a self-hosted WordPress installation -- in this case it was a site that a friend had paid someone to make, but then took them off the work and asked me to help out.
我发现这篇文章正在寻求有关自托管 WordPress 安装的类似问题的帮助——在这种情况下,这是一个朋友付钱给某人制作的网站,但后来让他们停止工作并要求我帮忙。
There were several regular menu options missing -- it turned out to be down to a plugin called Admin Menu Editorthat the previous web guy had installed to limit the options available to my friend, so they wouldn't mess with things.
缺少几个常规菜单选项——结果证明是一个名为Admin Menu Editor的插件,以前的网络人员安装了这个插件来限制我朋友可用的选项,这样他们就不会搞砸了。
In this case I could access the options for Admin Menu Editor by going to http://www.example.com/wp-admin/options-general.php?page=menu_editor
在这种情况下,我可以访问管理菜单编辑器的选项 http://www.example.com/wp-admin/options-general.php?page=menu_editor
回答by Toma?
In one of my cases it turned out to be strictly file permission thing so apache users could not access the plugins directory.
在我的一个案例中,结果是严格的文件权限问题,因此 apache 用户无法访问插件目录。
回答by JROB
I have never seen that problem before. However, try either expanding all the current menu items to see if "plugins"are listed there, or try deactivatingsome/all of your plugins to see if one of the plugins are conflicting somehow and making your plugins menu notdisplay.
我以前从未见过这个问题。但是,尝试展开所有当前菜单项以查看其中是否列出了“插件”,或者尝试停用部分/所有插件以查看其中一个插件是否以某种方式发生冲突并使您的插件菜单不显示。
回答by ArchCodeMonkey
I know this is an old question but I hit this problem at work recently with a WordPress site I inherited that had been originally developed by an external company. I tracked it down to the roles assigned to the user account. The "admin"account I had been given was actually assigned a restricted role that didn't have permission to access most of the settings.
我知道这是一个老问题,但我最近在工作中遇到了这个问题,我继承了一个最初由外部公司开发的 WordPress 网站。我追踪到分配给用户帐户的角色。我获得的“管理员”帐户实际上被分配了一个受限制的角色,该角色无权访问大多数设置。
Fortunately, I have access to the database so I was able to modify the assigned role directly. The default database prefix in WordPress is wp
but you may need adjust these steps according to your own database.
幸运的是,我可以访问数据库,因此可以直接修改分配的角色。WordPress 中的默认数据库前缀是,wp
但您可能需要根据您自己的数据库调整这些步骤。
First, find the user_id
in the wp_users
table for the account you want to modify and then run the following SQL against your WordPress database.
首先,user_id
在wp_users
表中找到您要修改的帐户,然后针对您的 WordPress 数据库运行以下 SQL。
UPDATE wp_usermeta SET meta_value = "a:1:{s:13:""administrator"";b:1;}" WHERE user_id = {your_user_id} AND meta_key = "wp_capabilities";
UPDATE wp_usermeta SET meta_value = "10" WHERE user_id = {your_user_id} AND meta_key = "wp_user_level";
The next time you log in with that user account it should now have administrator privileges.
下次使用该用户帐户登录时,它现在应该具有管理员权限。
回答by Hailey Yoon
For me, changing lines in wp-config.phpworked. I changed:
对我来说,更改wp-config.php 中的行有效。我变了:
define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);
to
到
define('DISALLOW_FILE_EDIT', false);
define('DISALLOW_FILE_MODS', false);
回答by Java Beginner
If you install a local WordPress the Plugins sub menu will not appear for any of the sites you work. Click My Sites area at the top of the page then click Network Admin and then click Dashboard. The Plugins sub menu will appear there. Then install new plugins and use it on sites on which you are working. Good luck.
如果您安装本地 WordPress,则您工作的任何站点都不会显示插件子菜单。单击页面顶部的我的站点区域,然后单击网络管理员,然后单击仪表板。插件子菜单将出现在那里。然后安装新插件并在您工作的站点上使用它。祝你好运。