Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Adding to this to avoid multiple posting of what looks like the same issue. I'm getting the same error twice at the top of a content type that has an added image field:
warning: Parameter 1 to theme_imagefield_widget() expected to be a reference, value given in C:\xampp\xampp\htdocs\ngrl\includes\theme.inc on line 617.
I opened the patch file read it... thought a bit... looked in /modules/imagefield/imagefield_widget.inc and saw that the only change was to remove an ampersand from the start of the argument to the method theme_imagefield_widget...
And it works.
I had searched on "warning: Parameter 1 to theme_imagefield_widget() expected to be a reference" and it gets no hits so thanks for your time... not only has it fixed the problem but I've learnt a little bit more about the underbelly of Drupal.
Comments
Comment #1
paul.dambra commentedAdding to this to avoid multiple posting of what looks like the same issue. I'm getting the same error twice at the top of a content type that has an added image field:
warning: Parameter 1 to theme_imagefield_widget() expected to be a reference, value given in C:\xampp\xampp\htdocs\ngrl\includes\theme.inc on line 617.
This is a pretty virgin install on top of XAMPP
Drupal 6.14
Ajax 6.x-1.14
CCK 6.x-2.5
CTools 6.x-1.1
FileField 6.x-3.1
ImageField 6.x-3.1
ImageAPI 6.x-1.6
Thickbox 6.x-1.5
Views 6.x-2.6
The line in theme.inc that is referenced is in the following function:
if (isset($info['function'])) {
// The theme call is a function.
$output = call_user_func_array($info['function'], $args);
}
I'm beyond my understanding of Drupal/php with this so apologies if I've missed something that should have been obvious.
Comment #2
seworthi commentedThis is a PHP 5.3 error. Here is a solution: http://drupal.org/node/581074.
Comment #3
paul.dambra commentedseworthi you are my new hero!
I opened the patch file read it... thought a bit... looked in /modules/imagefield/imagefield_widget.inc and saw that the only change was to remove an ampersand from the start of the argument to the method theme_imagefield_widget...
And it works.
I had searched on "warning: Parameter 1 to theme_imagefield_widget() expected to be a reference" and it gets no hits so thanks for your time... not only has it fixed the problem but I've learnt a little bit more about the underbelly of Drupal.
Cheers!
Paul
Comment #4
paul.dambra commented