GG资源网

无法修改WordPress中的标头信息

问题描述:

I have created a WordPress theme and I have tested it in localhost , it doesn\'t have any error. But when I uploaded it in the host, in most of pages I see this error:

Warning: Cannot modify header information - headers already sent by (output started at /home2/dekadesi/domains/dekadesign.ir/public_html/wp-content/themes/dekadesign_v2/functions.php:1) in /home2/dekadesi/domains/dekadesign.ir/public_html/wp-includes/pluggable.php on line 1179

I checked space in wp-confing.php and functions.php but my problem is not solved. I need functions.php file, I don\'t know what should I do.

图片转代码服务由CSDN问答提供

感谢您的意见,我们尽快改进~
功能建议

我创建了一个WordPress主题,我在localhost中测试了它,它没有任何错误。 但是当我将它上传到主机时,在大多数页面中我都看到了这个错误:</ p>

警告:无法修改标头信息 - 已经发送的标头(输出开始于/ home2 / dekadesi / domains / dekadesign.ir / public_html / wp-content / themes / dekadesign_v2 / functions.php:1)位于第1179行的/home2/dekadesi/domains/dekadesign.ir/public_html/wp-includes/pluggable.php </ p>
</ blockquote>

我检查了 wp-confing.php </ code>和 functions.php </ code>中的空格但我的问题没有解决 。 我需要 functions.php </ code>文件,我不知道该怎么做。</ p>
</ div>

网友观点:

Thanks for your helps ,
I talked to my web hosting manager and they start output_buffering in my host .
then problem solved !

###

Please add ob_start(); at the top of the functions.php file, issue will be resolved.

由于网站搬家,部分链接失效,如无法下载,请联系站长!谢谢支持!
1. 带 [亲测] 说明源码已经被站长亲测过!
2. 下载后的源码请在24小时内删除,仅供学习用途!
3. 分享目的仅供大家学习和交流,请不要用于商业用途!
4. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
5. 本站所有资源来源于站长上传和网络,如有侵权请邮件联系站长!
6. 没带 [亲测] 代表站长时间紧促,站长会保持每天更新 [亲测] 源码 !
7. 盗版ripro用户购买ripro美化无担保,若设置不成功/不生效我们不支持退款!
8. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
9. 如果你也有好源码或者教程,可以到审核区发布,分享有金币奖励和额外收入!
10.如果您购买了某个产品,而我们还没来得及更新,请联系站长或留言催更,谢谢理解 !
GG资源网 » 无法修改WordPress中的标头信息

发表回复

CAPTCHAis initialing...
© 2021-GG资源网 - www.ggplus.cn. All rights reserved