find the attached file and help me!!!!!!!!!

CommentFileSizeAuthor
error1.jpg33.64 KBkuttu666

Comments

paul.dambra’s picture

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.

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.

seworthi’s picture

This is a PHP 5.3 error. Here is a solution: http://drupal.org/node/581074.

paul.dambra’s picture

seworthi 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

paul.dambra’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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