I am using a CCK field called intro to output as the teaser.
The hosts have upgraded to PHP 5.2 and now it is not working anymore.
My teaser in the Contemplate was
<div align="left" style="margin-top:3px; clear="both">
<?php foreach ((array)$field_intro as $item) { ?>
<?php print $item['view'] ?><?php } ?>
</div>In the template file it was
<? if($page == 0){
$content=strip_tags($content, '<b>, <i>');
}
?>
<?php print $content?>[I want ONLY bold and itals to appear; NOT the
tags at all]
Now it doesn't work!
Can't figure out where to make the change either.
By the way, this works fine when there are no CCK fields in the required teaser.
Comments
Comment #1
jrglasgow commentedWhat results are you getting, any errors?
Comment #2
subir_ghoshNo error message. Just blank.
Then I checked the log entries again.
There was an error in the for each... segment.
The error was in
<div align="left" style="margin-top:3px; clear="both">... an extra double quote before both. Removing it solved the issue.
Rather surprising since all these days the error had remained but had no impact at all on the display. Guess PHP 5.2 does not tolerate silly mistakes.
Comment #3
jrglasgow commentedI'm glad to hear that you found your mistake.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.