使用 XAJAX 和 WordPress
我正在尝试将 XAJAX % WordPress 一起使用。我已经创建并测试了我的 XAJAX 应用程序,一切正常。但是当我将 XAJAX 核心包含到我的 WordPress 主题中时,我收到此错误:
输出已发送到浏览器,地址为 E:\xampp\htdocs\mysite\wp\wp-content\themes\mytheme\header.php:2。请确保命令 $xajax->processRequest() 放置在此之前。
有人有这方面的经验吗?
我真的很感谢你的帮助。 非常感谢!
I'm trying to use XAJAX % WordPress together. I've created and tested my XAJAX app and everything works fine. But when I include the XAJAX core into my WordPress theme I get this error:
Output has already been sent to the browser at E:\xampp\htdocs\mysite\wp\wp-content\themes\mytheme\header.php:2. Please make sure the command $xajax->processRequest() is placed before this.
Anyone has any experience with this?
I really appreciate your help.
Thanks so much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来 XAJAX 正在尝试设置一些标头,但它是在内容发送给访问者之后运行的。找到
processRequest()
并确保它不在任何输出(如 HTML)之后It sounds like XAJAX is trying to set some headers, but it's running after content has been sent to the visitor. Find
processRequest()
and make sure it's not after any output (like HTML)