CCK with PHP 5.4 creates error messages like this:

Declaration of content_handler_field_multiple::pre_render() should be compatible with views_handler_field::pre_render(&$values) in modules/cck/includes/views/handlers/content_handler_field_multiple.inc

To fix it, in content_handler_field_multiple.inc, replace
function pre_render($values) {
with
function pre_render(&$values) {

CommentFileSizeAuthor
#1 cck-d6_strict_warning-1962718-1.patch761 byteszionduc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zionduc’s picture

I'v created a patch file for this issue.

zionduc’s picture

Status: Active » Needs review
Dane Powell’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Worked for me.

jonathan1055’s picture

Version: 6.x-2.8 » 6.x-2.9

Confirm this also worked for me.
cck content 6.x-2.9, views 6.x-2.16

tsphethean’s picture

Issue tags: +php5.4
DamienMcKenna’s picture

Version: 6.x-2.9 » 6.x-2.x-dev
SeanA’s picture

#2327005: E_STRICT compliance contains a patch which covers this warning and also a couple more. I recommend the more complete fix over there instead of this one.

DamienMcKenna’s picture

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Closed (duplicate)
Parent issue: #2510648: Plan for CCK 6.x-3.0 release »

#2327005: E_STRICT compliance includes this fix, so lets close this issue and focus on the other one.

baltazarz3’s picture

Thanks guys! worked for me on CCK version 6.x-2.10, Views 6.x-2.18 and PHP 5.4