简体   繁体   English

在WordPress管理中找不到404页面错误

[英]404 page cannot be found error in wordpress admin

I m facing very weird problem in wordpress wp-admin. 我在wordpress wp-admin中遇到非常奇怪的问题。 I was trying to upload image to the post and i encountered a problem. 我试图将图像上传到帖子,但遇到了问题。 I turned on firebug and saw http://www.mysite.com/wp-admin/media-upload.php?post_id=36671 is not found (404 error), Addtionally, http://www.mysite.com/wp-admin/ajax-admin.php is not found as well [in firebug] 我打开了萤火虫,看到http://www.mysite.com/wp-admin/media-upload.php?post_id=36671未找到(404错误),此外, http: //www.mysite.com/wp -在firebug中也找不到-admin / ajax-admin.php

actually the file DOES EXIST in the right folder in the server. 实际上文件确实存在于服务器的正确文件夹中。 I then edited this file put following lines at top of the page 然后,我编辑了此文件,并在页面顶部添加了以下几行

echo "Hello World";
exit;

Now the file is found. 现在找到文件。 Can anybody suggest a solution? 有人可以提出解决方案吗? My wordpress version is 3.3.1 我的WordPress版本是3.3.1

THE ISSUE CREATOR. 发行者。

The problem creator line was do_action('admin_init'); 问题创建者行是do_action('admin_init'); i commented line do_action('admin_init'); 我评论了do_action('admin_init');行; in admin.php now everything works except that ADMIN design is messed up. 在admin.php中,现在一切正常,但ADMIN设计混乱了。 Any Help will be appreciated. 任何帮助将不胜感激。

EDIT : I turned on WP_DEBUG, And i just see Notices, 500s of them, I don't see any other warnings or errors. 编辑:我打开了WP_DEBUG,我只看到通知,其中有500则,没有其他警告或错误。

Thanks Sabin 谢谢萨宾

I fixed this problem doing following stuffs. 我解决了以下问题,解决了这个问题。

I commented do_action('admin_init'); 我评论了do_action('admin_init'); on admin.php in wp-admin folder. 在wp-admin文件夹中的admin.php上。

This messed up the admin design, then I added following lines in my theme's functions.php 这弄乱了管理员设计,然后在主题的functions.php中添加了以下几行

function itg_admin_css_all_page() {

wp_register_style($handle = 'itg-admin-css-all', $src = "/wp-admin/css/colors-classic.css", $deps = array(), $ver = '1.0.0', $media = 'all');

wp_enqueue_style('itg-admin-css-all');
}
add_action('admin_print_styles', 'itg_admin_css_all_page');

And this solved the problem temporarily. 这样可以暂时解决问题。

I was having this problem also, I even did a fresh WordPress install and was still having it. 我也遇到了这个问题,我什至没有进行全新的WordPress安装,并且仍然存在。 All you need to do is upgrade your PHP version. 您需要做的就是升级您的PHP版本。

I went to my control panel and in the software/services section there's a button that says php configuration, when you click on that a little drop down menu appears and there you can chose the latest version of PHP, which I was on 5.2 and upgraded it to 5.5. 我转到控制面板,然后在“软件/服务”部分中有一个表示php配置的按钮,当您单击该菜单时,会出现一个小的下拉菜单,您可以选择最新版本的PHP(该版本是5.2并已升级)到5.5。 When I did that the 404 errors went away. 当我这样做时,404错误消失了。

Good luck.. 祝好运..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM