Download & Extend

Warning: Call-time pass-by-reference has been deprecated in ...\vud_term\vud_term\vud_term.module on line 82

Project:Vote Up/Down
Version:6.x-2.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)
Issue tags:vud-2-blocker

Issue Summary

following warnings appear when installing the vote up/down term

Warning: Call-time pass-by-reference has been deprecated in \sites\all\modules\vote_up_down\vud_term\vud_term.module on line 82
Warning: Call-time pass-by-reference has been deprecated in \sites\all\modules\vote_up_down\vud_term\vud_term.module on line 87

Comments

#1

Status:active» needs review

created a patch that solves this (warnings dissapear after applying)

AttachmentSizeStatusTest resultOperations
582594.isntalling.voteupdownterm.patch1.08 KBIgnored: Check issue status.NoneNone

#2

Status:needs review» needs work

there's a node attribute assign here:

<?php
  $node
->content['vud_term_show_table'] = array(
   
'#value' => theme('table', $header, $rows, $attributes = array('class' => 'vud-term-table', 'id' => "term-table-$node->nid")),
   
'#weight' => 0,
  );
?>

so, we could change _vud_term_generate_table() to return a $vud_term_show_table value and assign it to node from outside, but I do not know all the places this function is used, so I only propose it now :-p

#3

adding tag

#4

I couldn't reproduce this problem in the current dev version of the module. Was this problem already fixed?

#5

Status:needs work» needs review

The patch in #1 is incorrect - removing the & from the function-calls is correct, but not from the function declaration itself. See updated patch (which doesn't change the style, just the implementation).

AttachmentSizeStatusTest resultOperations
vud.refwarning.patch991 bytesIgnored: Check issue status.NoneNone

#6

Status:needs review» fixed

Right, I agree with lyricnz on this. Committed!

#7

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#8

Version:6.x-2.x-dev» 6.x-2.0-beta2
Status:closed (fixed)» active

Having this issue with beta2

#9

Status:active» closed (duplicate)

Duplicate of #841080: Warning: Call-time pass-by-reference has been deprecated

(the actual code referred to in this issue is long since fixed, but it popped up again elsewhere)

nobody click here