无法修改 header 信息 - header 已在 OpenCart 中发送
Cannot modify header information - headers already sent by in OpenCart
我在 OpenCart 1.5.6.4 中遇到以下错误。什么时候,我在前面改变了语言。 在这里,我已经 php 文件以 utf-8 编码保存。 另外,此文件中没有任何 space 可用。我已经查过了。
我该如何解决这个问题。
PHP Warning: Cannot modify header information - headers already sent
by (output started at
/home/mysite/public_html/catalog/language/arabic/module/product_tab.php:1)
in
/home/yanassco/public_html/vqmod/vqcache/vq2-system_engine_controller.php
on line 28
我的语言文件代码 (catalog/language/arabic/module/product_tab.php).
<?php
// Heading
$_['heading_title'] = 'منتجاتنا';
$_['tab_latest'] = 'آخر';
$_['tab_bestseller'] = 'الاكثر مبيعا';
$_['tab_featured'] = 'متميز';
$_['tab_special'] = 'خاص';
// Text
$_['text_reviews'] = 'Based on %s reviews.';
?>
我的问题已经解决了。在这里,文件必须保存在 utf-8 编码 utf8 without bom.
请检查并按照此操作以 utf-8 编码 utf8 无 bom 保存文件。
How to make Notepad to save text in UTF-8 without BOM?
我在 OpenCart 1.5.6.4 中遇到以下错误。什么时候,我在前面改变了语言。 在这里,我已经 php 文件以 utf-8 编码保存。 另外,此文件中没有任何 space 可用。我已经查过了。
我该如何解决这个问题。
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/catalog/language/arabic/module/product_tab.php:1) in /home/yanassco/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 28
我的语言文件代码 (catalog/language/arabic/module/product_tab.php).
<?php
// Heading
$_['heading_title'] = 'منتجاتنا';
$_['tab_latest'] = 'آخر';
$_['tab_bestseller'] = 'الاكثر مبيعا';
$_['tab_featured'] = 'متميز';
$_['tab_special'] = 'خاص';
// Text
$_['text_reviews'] = 'Based on %s reviews.';
?>
我的问题已经解决了。在这里,文件必须保存在 utf-8 编码 utf8 without bom.
请检查并按照此操作以 utf-8 编码 utf8 无 bom 保存文件。 How to make Notepad to save text in UTF-8 without BOM?