正在处理的站点的验证错误如下
Line 1, Column 1: non SGML character number 6
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.…在FireFox源代码查看器中,以下几行的文本为红色
DOCTYPE
HEAD
META CHARSET
/HEAD
BODY
2 Paragraph tags (that are properly opened and closed.当我使用web addon,并选择"Edit“选项时,会出现一个红色的点,直到<title>的所有标记都消失了。也没有body标记,在FireFox源代码查看器中显示为红色的两个段落标记也消失了。换句话说,红色意味着某种错误,但我在源中没有看到任何错误。
这里显示了表示错误的部分:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body class="page">
<p>
<div class="photo-box photo-box-right" id="photo-box-test-image-619">
<div class="photo-box-photo">
<img src="http://localhost/assets/uploads/images/logo.png" title="Test image" alt="Test image" />
</div>
<div class="photo-box-title">
<span class="photo-box-head" title="Test image">Test image</span>
</div>
</div>
Qualitative data approximates, characterizes or describes but does not measure the attributes, characteristics, properties of a phenomenon. Data could take the form of textual transcriptions of interviews, focus groups or dialogues, photographs, audio and video recordings.
</p>
<p>
<div class="photo-box photo-box-left" id="photo-box-test-image-476">
<div class="photo-box-photo">
<img src="http://localhost/assets/uploads/images/sparta.jpg" title="Test image" alt="Test image" />
</div>
<div class="photo-box-title">
<span class="photo-box-head" title="Test image">Test image</span>
</div>
</div>
Quantitative data defines attributes in terms of values with numerical significance and can be represented as matrixes of numbers of responses, maps, tables or graphs.
</p>我看不到HTML中的任何错误。我在任何普通编辑器(Notepad++、UltraEdit、记事本、写字板)中都看不到隐藏的控制字符,但我确实在Web工具栏的“editor”屏幕上看到了它。
以下是我为解决这一问题所做的努力:
你觉得我还能做些什么吗?
从上面我得出结论,无论是定制模块(不太可能)、CSS样式表、添加的jQuery库(站点之间的差异(uniform.js、buttons.js),还是使用的模板和视图)都对我的快乐产生了某种影响。
如果你能想到其他我错过的事情.
谢谢!
柯布思
编辑:现在我可以添加图片了,我决定做一些截图来更好地解释这个问题。也许会有帮助..。我一开始以为是标题标签上的空格,但那不是.


发布于 2012-10-06 10:39:32
嗨,每一个回复的人,
非常感谢您为帮助我所做的一切努力,特别是@MadaraUchiha,感谢您的耐心和努力。
这个问题最终在我将网站上传到我的网站托管空间(感谢@JukkaK.Korpela提出这个建议)并试图访问该页面之后得到了解决。在我的本地dev环境中,CodeIgniter错误屏幕不显示(必须找出原因),但是在我的托管空间中,我清楚地知道错误是什么:
Cannot modify header information - headers already sent by (output started at /usr/www/users/imperoco/demo/application/helpers/bootstrap_helper.php:1)
在另一个文件(一个CodeIgniter助手文件)中,<?php标记前面有一个.所以-不知怎么的,当我编辑它的时候,我一定是添加了一个流氓-。删除它,现在页面显示得很好。
非常感谢你抽出时间。既然我知道我的开发环境没有显示错误,我就可以解决这个问题,以防止下一次出现类似的问题。:-)
致以亲切的问候,
柯布思
发布于 2012-10-06 09:51:40
可能是编码问题。确保将文件保存为ANSI或UTF8,而不使用BOM标记。BOM标记可能导致此问题。
在Notepad++中,第四个菜单用于编码,您可以很容易地在那里更改它。
https://stackoverflow.com/questions/12758447
复制相似问题