Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After enabling module I throw the following error.
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of conditional_fields_set_required_for_render(). 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 /mnt/local/home/escapecm/escapecme.com/sites/all/modules/conditional_fields/conditional_fields.module on line 899
Comment | File | Size | Author |
---|---|---|---|
#2 | remove_pass-by-ref_warning.patch | 982 bytes | threexk |
Comments
Comment #1
threexk CreditAttribution: threexk commentedThis issue was identified in http://drupal.org/node/269145 and I wrote a patch, but apparently my patch was incomplete. On that line you mention, the ampersand just needs to be removed. I'll post a new patch shortly.
I'm changing the priority on this bug to normal because the module still operates properly with the warning.
Comment #2
threexk CreditAttribution: threexk commentedComment #3
peterpoe CreditAttribution: peterpoe commentedComment #4
threexk CreditAttribution: threexk commentedpeterpoe: This issue is indeed a duplicate of http://drupal.org/node/269145, but by my mistake the patch for that issue only fixed one out of two warnings. That's why this issue was created. This line still needs its ampersand removed:
conditional_fields_set_required_for_render(&$item);
Can you make this change directly, or should I make a new patch?
Comment #5
peterpoe CreditAttribution: peterpoe commentedRequired fields in d5 are still buggy (see also #292044: Required fields within conditional groups not indicated as required). In d6 after many changes (in d6 the function conditional_fields_set_required_for_render does not even exist!) they work correctly, but the fixes have not been yet backported to d5. Will backport the fixes from d6 as soon as d6 is ready for release (it should not take long), but if you want to help with this you are welcome.
Comment #6
abramo CreditAttribution: abramo commentedJust a reminder that this issue is still alive and well :)
Comment #7
abramo CreditAttribution: abramo commentedComment #8
threexk CreditAttribution: threexk commentedabramo: In the meantime until the fix gets backported, you can just remove the ampersand in the two instances of the following text in conditional_fields.module:
conditional_fields_set_required_for_render(&$item);
Comment #9
abramo CreditAttribution: abramo commentedmany thanks - I just mentioned this as a mere reminder ;-)
Comment #10
peterpoe CreditAttribution: peterpoe commentedPostponing like all 5.x-1.x-dev issues already fixed in v6.
Comment #11
peterpoe CreditAttribution: peterpoe commentedClosing all 5.x issues.