最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

media library - Unable to create or edit menus

programmeradmin0浏览0评论

I'm running 3.4.2 on Ubuntu. I'm unable to make any changes to menus at all. Also I'm unable to upload anything (flash or browser uploader) to the media library. However plugins have no problem adding things to the library. When I try to make a change I get page not found.

I have my memory limit set at 128MB in php.ini and wp-config.php. I've done all the basic troubleshooting on the wordpress wiki. Disabled all my plugins, switched themes, even ran aptitude reinstall wordpress just to make sure all the core files weren't damaged.

This is my debug.log

[21-Nov-2012 02:37:53 UTC] PHP Notice:  wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>init</code> hooks. Please see <a href="">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /usr/share/wordpress/wp-includes/functions.php on line 2758
[21-Nov-2012 02:37:53 UTC] PHP Notice:  wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>init</code> hooks. Please see <a href="">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /usr/share/wordpress/wp-includes/functions.php on line 2758
[21-Nov-2012 02:37:54 UTC] PHP Warning:  Creating default object from empty value in /usr/share/wordpress/wp-admin/includes/update.php on line 92

I'm managed to stump my self here. I've done everything short of re-installing the entire site.

I'm running 3.4.2 on Ubuntu. I'm unable to make any changes to menus at all. Also I'm unable to upload anything (flash or browser uploader) to the media library. However plugins have no problem adding things to the library. When I try to make a change I get page not found.

I have my memory limit set at 128MB in php.ini and wp-config.php. I've done all the basic troubleshooting on the wordpress wiki. Disabled all my plugins, switched themes, even ran aptitude reinstall wordpress just to make sure all the core files weren't damaged.

This is my debug.log

[21-Nov-2012 02:37:53 UTC] PHP Notice:  wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>init</code> hooks. Please see <a href="http://codex.wordpress/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /usr/share/wordpress/wp-includes/functions.php on line 2758
[21-Nov-2012 02:37:53 UTC] PHP Notice:  wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>init</code> hooks. Please see <a href="http://codex.wordpress/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /usr/share/wordpress/wp-includes/functions.php on line 2758
[21-Nov-2012 02:37:54 UTC] PHP Warning:  Creating default object from empty value in /usr/share/wordpress/wp-admin/includes/update.php on line 92

I'm managed to stump my self here. I've done everything short of re-installing the entire site.

Share Improve this question asked Nov 21, 2012 at 2:47 HughHugh 112 bronze badges 3
  • What happens if you set the PHP memory limit to 256M instead of 128M? – Chip Bennett Commented Nov 21, 2012 at 3:14
  • HOLY CRAP THAT WORKED!? Thank you Chip! – Hugh Commented Nov 21, 2012 at 6:17
  • Oh, well great! I've just added that as an answer, then; with some additional information. – Chip Bennett Commented Nov 21, 2012 at 12:20
Add a comment  | 

2 Answers 2

Reset to default 1

I have my memory limit set at 128MB in php.ini and wp-config.php. There is an implicit minimum requirement for the WP Admin to be able to use 256M.

Try setting your PHP memory limit to 256M instead of 128M.

Also, be sure you have WP_DEBUG set to true in wp-config.php:

define( 'WP_DEBUG', true );

Which will likely reveal an exhausted-memory fatal error.

backup your wp-config.php, delete the original and run your yoursite/wp-admin again, filling all the fields back.... hope it works. if not, wich theme are you using?

发布评论

评论列表(0)

  1. 暂无评论