Products
GG网络技术分享 2025-03-18 16:12 3
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.
Demand feedback