I m facing very weird problem in 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]
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
THE ISSUE CREATOR.
The problem creator line was do_action(‘admin_init’);
i commented line do_action(‘admin_init’); in admin.php now everything works except that ADMIN design is messed up.
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.
Thanks
Sabin
I fixed this problem doing following stuffs.
I commented
do_action(‘admin_init’); on admin.php in wp-admin folder.
This messed up the admin design, then I added following lines in my theme’s functions.php
And this solved the problem temporarily.