I'm already certain of one module that needs updating to work with the new version: 'views_customfield'

After upgrading, the php custom fields used don't print out the views $data in preview.
A random imagefield, embedded in flash with a php custom field, gives: 'Fatal error: Call to a member function advanced_render() on a non-object in /public_html/Drupal6/sites/all/modules/views/theme/theme.inc on line 225'

I already launched an issue with views_customfield.
However, if there are other add-on modules that need updating?

CommentFileSizeAuthor
#2 viewsexport.txt52.66 KBKoCo

Comments

dawehner’s picture

How do you embed the imagefield with php custom field?

Perhaps this code helps to understand the problem.

KoCo’s picture

StatusFileSize
new52.66 KB

The only thing I push to data is the randomly selected imagefield.
It's set to be excluded from display, no label and only returns the 'path to file'.
I attached the views export, but you can find the custom php here:

<?php
// remember DO NOT USE GROUP FUNCTION CAUSE IT GIVES ARRAY in $data
// echo '<pre>';
// print_r($data);
// echo '</pre>';
$file = field_file_load($data->node_data_field_gallerijpics_field_gallerijpics_fid); 
$path = $file['filepath'];
$presetname = 'Thumb_round';
$my_path = imagecache_create_path($presetname, $path);
?>
<!--    ________ START EFFECTS CODE - http://www.effectscode.com/ ________ -->
<script src="<?php print base_path(); ?>sites/all/scripts/mripple/effectscode.com.js" type="text/javascript"></script>
<div class="com.effectscode.MouseRipple" style="margin:0px auto;width:150px;height:150px;" title="Bekijk het album">
<textarea class="effectscode" style="visibility:hidden;" rows="1" cols="20">
// <!-- ____________________________ Start XML ___________________________

<MouseRipple src="<?php print base_path().$my_path; ?>" 
      href="<?php print base_path().drupal_get_path_alias('node/'.$data->nid, $path_language = ''); ?>" strength="30" fade="true" bgcolor="#f4f7e7" />

//      _____________________________ End XML ____________________________ -->
</textarea><div class="alternateContent">
<a href="<?php print base_path().drupal_get_path_alias('node/'.$data->nid, $path_language = ''); ?>" title="Bekijk het album.">
<img src="<?php print base_path().$my_path; ?>" 
style="cursor:pointer;" alt="Bekijk het album." title="Bekijk het album." /></a>
</div></div>
<script type="text/javascript"> ECreplace(); </script>
<!--    _______________________ END EFFECTS CODE _________________________ --> 

I will be testing this a bit further during the next couple of days, and in between working hours.

thx
Koen

merlinofchaos’s picture

It wasn't the intent that modules should have to update for this. So I am not at all certain what the problem is. There is a very similar error reported for date.module as well. The hack patch there is interesting but doesn't explain to me what's going on.

Lloyd’s picture

I'm also experiencing an issue with Views Custom Field. I'm using a markup field rewriting the output as:

[image_image] <span class="client_center_icon_text">[field_display_text_value]</span>

I've also output the field as a link using a class. The problem is that now the word "[markup]" appears before the display text.

merlinofchaos’s picture

Status: Active » Closed (duplicate)

Problem identified here: http://drupal.org/node/765296#comment-2822578 -- please use that issue for now.

Lloyd’s picture

That issue is for the fatal error message, right? I posted my problem in the Custom Field issues although I'm not sure if it's "their" problem or Views itself.

merlinofchaos’s picture

Could be either. Check to see if there's already an issue for the views custom field -- there were two items in this issue and I focused on the fatal one. If not, please post a new issue with just the views custom field, and preferably a tiny export and I'll see if I can duplicate it.

KoCo’s picture

A note, my problem with views custom field is solved with the patch added to views 2.10.