写文章
谁用了1s
2015-04-15 20:19

Wordpress添加菜单上限

新网站到尾声发现wordpress菜单添加有上限,还有好几十个菜单没添加,但是已经添加不了了。要添加新的只能删除之前的。
guge了下老外也有同样的问题,但是在我这里无解啊,奇怪啊
I'm running WP 3.4.2 on a VPS. When I first moved to this VPS server and imported all my WP data from the old, the menus worked fine. However, for some reason, I cannot edit/add to the menus, and some items have been deleted. No matter how many times I try to re-add those items, they won't appear. WP does not report any errors. When I add them again, and click the "Save Menu" button, after a long pause (30-45 sec) WP simply says, "The Main Menu menu has been updated." But the new items are missing, both from the site menus and from the WP menus setup.

Originally when I first moved to this VPS there were 9 menu top-level items, about about 90 submenu items -- about 100 menu items total. Everything displayed correctly.

Now I am limited to 88 menu items. I can only add a menu item by deleting another.

I'm not sure when this problem started, because we don't edit the menu often. It was noticed for the first time yesterday that some menu items had disappeared, which may coincide with someone adding or editing a menu item. But we've been running on this new VPS for about a month.

I found in another forum discussion a reference to suhosin which can cause menu limit problems in WP 3.x, but that is not part of our PHP installation.

I've tried Safari and Firefox (OS X). Same results with both.


answer::

I have ran into this problem on several occasions. Try this quick solution:

Open your favorite text editor (Notepad, Dreamweaver, etc.)
Create a file named "php.ini"
Paste the following code: php_value max_input_vars 7000
Save the file
Upload the file to your site's root folder via ftp (Filezilla, Rush FTP, etc.)
:) That's it!
点赞
举报
收藏
转发
0/500
添加表情
评论
评论 (4)
最近
最早
3天2夜学会建站

谁用了1s

长太息以掩涕兮,哀民生之多艰

向TA提问
置顶时间 :

设置帖子类型

普通
新闻
活动
修改

圈内转发

0/104

分享至微信

复制链接

举报

请选择举报理由

留联系方式
垃圾广告
人身攻击
侵权抄袭
违法信息
举报

确认要删除自己的评论吗?

取消 确定

确认要删除自己的文章吗?

取消 确定
提问
设置提问积分
当前可用积分:
-
+
20
50
100
200
偷看

积分偷看

10积分
我的积分(可用积分)
确认偷看

问题已关注

答主回复后,系统将通知你

不再提示