CSS code appearing on page
Hello again,
I've recently made some changes to how my articles are presented, and now it displays some of the php-generated CSS code on the page.
"< class="field-item odd">" or "< class="field-item even"> before a displayed field.
eg: "< class="field-item odd"> Date: Wednesday, November 18th, 2009"
I don't know what I did to make this happen, and I can't seem to get rid of it.
Any ideas?
Okay, I've tried to undo some of the changes, and here's what I've found.
1) The CSS code only appears on "story" nodes.
2) I have a custom "story" field named story_image, which displays the main image associated with the story. CSS Code only appears before this image, and before the displayed published date of the story. Even if the story does not have a main image associated with it, the code will still appear where the image would be.
4) Inspecting code via firebug, I can see that it appears under the field-items class.
<div class="field field-type-filefield field-field-story-image">
<div class="field-items"> < class="field-item odd">
<img class="imagefield imagefield-field_story_image" alt="" src="http://www.takuyai.net/testing/newsprj/site/sites/default/files/storyimg5.jpg?1258549637" width="380" height="380">
</div>
</div>
and
<div class="field field-workflow"><div class="field-items"><div class="field-item odd"><div class="field-label-inline-first">Workflow: </div>Public</div></div></div><div class="field field-type-date field-field-date">
<div class="field-items"> < class="field-item odd">
<div class="field-label-inline-first">
Date: </div>
<span class="date-display-single">Wednesday, November 18th, 2009</span>
</div>
I really don't understand how or why this is happening. You can see it here
Ah, okay ... there are html fragments saying
<class="field-item odd">
which are being turned into
< class="field-item odd">
Presuming you haven't changed any of the standard modules in ProsePoint, I'd suggest there is something in your theme (or else a custom module with some code) which is doing a check_plain() on your CCK output when it shouldn't be.
Do you have any changes or additions in your theme which are CCK related?
The fact that this issue does not arise with ProsePoint out of the box would suggest it is specific to your site and/or your changes. I am out of ideas for specific things to look at. The general way to diagnose these sorts of issues is to rollback your changes one by one to isolate which one is the culprit.

Hi,
If I were to look first, I'd suggest looking at your theme changes if there are any.
But uh ... can I suggest you review the changes you have done and undo them one-by-one to isolate the culprit? The offending snippet of code causing this issue could just about be anywhere.
Also, make sure the content of your nodes don't have an unclosed html tag.
Sorry, I would like to help more, but it's difficult to say where the issue may lie without a very close examination.