I keep getting this error message when I insert a image link into a post.

warning: strpos() [function.strpos]: Empty delimiter in /home/karmabro/domains/karmabrown.com/public_html/sites/all/themes/plainscape/template.php on line 123.

Any ideas?

Comments

karmabrown’s picture

This is the code it seems to be referring to:

// experimental code to handle CCK fields
foreach ($content as $key => $value) {
if (substr($key, 0, 6) == 'field_' && strpos($vars['content'], $vars[$key . '_rendered']) !== FALSE) {
$content['cck_' . $key] = array(
'#weight' => $content[$key]['#weight'],
'#value' => $vars[$key . '_rendered'],
'#title' => '',
'#description' => '',
);
}
}

karmabrown’s picture

Having tried out different things it seems to be related to the "length of trimmed posts" setting in post settings. If I set it to unlimited and repost it the error box disappears.

I don't think it's necessarily related to CCK fields as the last occurrence was with embedded flickr images.