Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/content/j/d/e/jdesalvo/html/sites/all/modules/image_fupload/image_fupload_imagefield/image_fupload_imagefield.module on line 116

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/content/j/d/e/jdesalvo/html/sites/all/modules/image_fupload/image_fupload_imagefield/image_fupload_imagefield.module on line 130

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of form_get_cache(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/content/j/d/e/jdesalvo/html/sites/all/modules/image_fupload/image_fupload_imagefield/image_fupload_imagefield.module on line 243

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of imagefield_widget_widget_process(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/content/j/d/e/jdesalvo/html/sites/all/modules/image_fupload/image_fupload_imagefield/image_fupload_imagefield_widget.inc on line 124

I guess errors is where my ability ends unfortunately. This happens after I installed the new 6.x-3 alpha. When I check the cck fupload box and hit save. If I uncheck it is fine again. I uninstalled and deleted files to come to the same result. The I ran update.php and still I just get this error.
I apologize if this is obvious in advance but I am so exited to see this release!

Comments

Johnny D’s picture

http://drupal.org/node/335646

I have godaddy as well. In regard to the php4 and needing .htacesss php5 I am a bit lost I guess. Before going there I will wait for a spot.. thx in advance.

grandcat’s picture

allow_call_time_pass_reference is true using my site so I don't get this error. But I will check this and change it.

grandcat’s picture

Version: 6.x-3.0-alpha1 » 6.x-3.x-dev
Status: Active » Fixed

Should be fixed in dev. Will be regenerated tomorrow by Drupal cron.

demm’s picture

Status: Fixed » Active

This error still occurs for me with the latest dev.
Error messages are exactly the same as in the original post.

grandcat’s picture

Status: Active » Fixed

dev will only be regenerated once a day. Try it tomorrow.

demm’s picture

Yes, sorry, I didn't look at the date of the post... :S

I can confirm that it is fixed, thank you.

Johnny D’s picture

I am trying to use the alpha so I have CCK working that was the big one for me. I tried to set allow_call_time_pass_reference = true in my godaddy php.ini file used instead of fixing the .htaccess. Did you up grade dev not alpha?? I am 100% waiting to use the CCK piece..

Working with godaddy to set to true..

Johnny D’s picture

Ok I guess with godaddy you need to add a php5.ini with the one line of code allow_call_time_pass_reference = on into the root to avoid the error as you cant change .htacess. But still the error didnt seem to be gone in alpha

grandcat’s picture

Use dev version instead. A new update will be published soon.

demm’s picture

Status: Fixed » Active

@Johnny: Yes, as grandcat mentioned in #3, this error was fixed in the dev branch, not in the alpha release.

This error seems to occur at another place too, even in the latest dev: when I create a new CCK node with a imagefield, upload the images, after pressing "next step" I get:
Warning: Call-time pass-by-reference ... in .../image_fupload/includes/images.previewlist.imagefield.inc on line 35
Warning: Call-time pass-by-reference ... in .../image_fupload/includes/images.previewlist.imagefield.inc on line 224

The "Edit Captions" page displays correctly, it just has the error messages on top.

grandcat’s picture

Status: Active » Fixed

Thank you. Fixed in CVS Head.

Status: Fixed » Closed (fixed)

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

mattcasey’s picture

I am getting this error twice with the latest dev, on line 505 of image_fupload_imagefield.module, if I remove the ampersands it goes away. Not sure if this will break anything, but I will be testing the module more soon. allow_call_time_pass_reference is Off on my server


/**
 * Implementation of hook_widget().
 *
 * Assign default properties to item and delegate to filefield.
 */
function image_fupload_imagefield_widget($form, $form_state, $field, $items, $delta = 0) {
  $element = call_user_func('imagefield_widget', &$form, &$form_state, $field, $items, $delta); //remove ampersands to get rid of errors
  return $element;
}
phenaproxima’s picture

I have had the same problem, and I wanted to say that mattwad's fix worked fine for me.

likewhoa’s picture

Status: Closed (fixed) » Active

@ #13 this breaks the code, not sure how that even made a difference for you. I am using latest -dev and this issue still arises.
Fatal error: Call-time pass-by-reference has been removed in sites/all/modules/image_fupload/image_fupload_imagefield/image_fupload_imagefield.module on line 505