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

jrglasgow’s picture

Status: Active » Postponed (maintainer needs more info)

What results are you getting, any errors?

subir_ghosh’s picture

Status: Postponed (maintainer needs more info) » Fixed

No 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.

jrglasgow’s picture

I'm glad to hear that you found your mistake.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.