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 commentedI'v created a patch file for this issue.
Comment #2
zionduc commentedComment #3
danepowell commentedWorked for me.
Comment #4
jonathan1055 commentedConfirm this also worked for me.
cck content 6.x-2.9, views 6.x-2.16
Comment #5
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 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 commentedThanks guys! worked for me on CCK version 6.x-2.10, Views 6.x-2.18 and PHP 5.4