Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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) {
Comment | File | Size | Author |
---|---|---|---|
#1 | cck-d6_strict_warning-1962718-1.patch | 761 bytes | zionduc |
Comments
Comment #1
zionduc CreditAttribution: zionduc commentedI'v created a patch file for this issue.
Comment #2
zionduc CreditAttribution: zionduc commentedComment #3
Dane Powell CreditAttribution: Dane Powell commentedWorked for me.
Comment #4
jonathan1055 CreditAttribution: jonathan1055 commentedConfirm this also worked for me.
cck content 6.x-2.9, views 6.x-2.16
Comment #5
tsphethean CreditAttribution: tsphethean commentedComment #6
DamienMcKennaComment #7
DamienMcKennaThis is related to a bug in Views: #893128: Fix E_STRICT notices - method declaration compatibility with init(), pre_render(), _validate() and _submit() with PHP 5.4.x
Comment #8
SeanA CreditAttribution: SeanA commented#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.
Comment #9
DamienMcKennaComment #10
DamienMcKenna#2327005: E_STRICT compliance includes this fix, so lets close this issue and focus on the other one.
Comment #11
baltazarz3 CreditAttribution: baltazarz3 commentedThanks guys! worked for me on CCK version 6.x-2.10, Views 6.x-2.18 and PHP 5.4