admin管理员组文章数量:1122832
I'm aware admin-ajax.php is intended to return '0' if there's no action set. My issue seems to be that it's returning an error after the '0'.
Accessing the file mu.site/wp-admin/admn-ajax.php
directly returns '0' as expected.
Accessing the file mu.site/sub-site/wp-admin/admn-ajax.php
directly returns '0 OK The server encountered an internal error or misconfiguration and was unable to complete your request. [ check your error logs]"
Naturally, my error logs have no information shown even though all sources say that error logging is enabled.
Possibly it's due to me having a subdirectory multi-site set up on a subdomain?
I first noticed the issue because I tried to upload a file through the Media Library. The file gets uploaded to the server (verified via FTP), but I receive a generic "HTTP error" error in the Media Library and no files are added to the WP database. I've now noticed admin-ajax fails throughout the WP Admin. The error above also shows in the Network tab of Chrome's developer tools when uploading.
Everything is working as expected on my primary site, this just occurs on my newly created sub-site. I did just convert a single site WP install to multisite so the sub-site has no other content / is brand new.
Disabling plugins & using a standard theme has no impact.
Setup is on Network Solution's "Web Hosting for Essential (Hosting-Unix)" platform. Using WordPress 4.7.3.
I'd really appreciate any ideas you have!
I'm aware admin-ajax.php is intended to return '0' if there's no action set. My issue seems to be that it's returning an error after the '0'.
Accessing the file mu.site.com/wp-admin/admn-ajax.php
directly returns '0' as expected.
Accessing the file mu.site.com/sub-site/wp-admin/admn-ajax.php
directly returns '0 OK The server encountered an internal error or misconfiguration and was unable to complete your request. [ check your error logs]"
Naturally, my error logs have no information shown even though all sources say that error logging is enabled.
Possibly it's due to me having a subdirectory multi-site set up on a subdomain?
I first noticed the issue because I tried to upload a file through the Media Library. The file gets uploaded to the server (verified via FTP), but I receive a generic "HTTP error" error in the Media Library and no files are added to the WP database. I've now noticed admin-ajax fails throughout the WP Admin. The error above also shows in the Network tab of Chrome's developer tools when uploading.
Everything is working as expected on my primary site, this just occurs on my newly created sub-site. I did just convert a single site WP install to multisite so the sub-site has no other content / is brand new.
Disabling plugins & using a standard theme has no impact.
Setup is on Network Solution's "Web Hosting for Essential (Hosting-Unix)" platform. Using WordPress 4.7.3.
I'd really appreciate any ideas you have!
Share Improve this question edited Mar 23, 2017 at 16:53 DACrosby asked Mar 23, 2017 at 16:38 DACrosbyDACrosby 4154 silver badges15 bronze badges1 Answer
Reset to default 0This isn't the answer to my question, but ended up being the workaround I used.
Settle for a subdomain multi-site.
I changed it over to mu.site.com/
and sub-site.site.com/
, updated htaccess to work for a subdomain install and everything just started working. I'm not sure why the subdirectory multi-site installed on a subdomain caused an issue, but it did!
本文标签: multisiteAdmin Ajax returns quot0 200 OK server errorquot in Multisite subsite
版权声明:本文标题:multisite - Admin Ajax returns "0 200 OK server error.." in Multi-site sub-site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736281760a1926424.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论