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.
Sometimes I've got following errors:
* Warning: Parameter 2 to date_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to date_timezone_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to fivestar_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to flag_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to og_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to wysiwyg_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to collection_plus_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to file_asset_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to privatemsg_plus_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to node_export_post_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to og_plus_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to tagfields_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to taxonomy_plus_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to taxonomy_xml_plus_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to lib_core_hooks_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to og_access_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to og_forum_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to content_profile_registration_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to tac_lite_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to nodewords_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to formfilter_ui_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to rules_forms_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to notifications_content_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
* Warning: Parameter 2 to late_form_alter_form_alter() expected to be a reference, value given in drupal_alter() (line 2880 of /home/kenorb/websites/doc/trunk/src/includes/common.inc).
in Pressflow.
Reproducible steps:
1. Press 'Cancel' on Authentication Required popup.
You should see those errors.
Or I have something wrong.
Doesn't happen when already logged-in, so I assuming that's related to Securesite module.
Comment | File | Size | Author |
---|---|---|---|
#6 | 930992-securesite.patch | 943 bytes | solotandem |
Comments
Comment #1
janton CreditAttribution: janton commentedyes i have the same after update php to 5.3.3
Comment #2
plopescHello!
me too with PHP 5.3.3
Comment #3
basvredelingSubscribing
Comment #4
DigitalForce CreditAttribution: DigitalForce commentedFound the solution here;
http://drupal.org/node/710892#comment-2665248
Comment #5
janton CreditAttribution: janton commentedYes perfect Solution DigitalForce!
I solved almost all.. only i can´t find the date_timezone_form_alter()
In which module is this used... ? Do you have any idee?
Ok Just found it..stuppid.. i was looking on my local machine for this file.. but i did not have module date on my localmachine :)
So of course this function is in the module "date"
Comment #6
solotandem CreditAttribution: solotandem commentedRespectfully, deleting the ampersands on those called functions is not the solution. This module is invoking hook_form_alter() but is not passing $form_state by reference, as expected by those functions. Take a look at drupal_prepare_form() in form.inc.
This module needs to do the same with its two calls to drupal_alter('form',...) in securesite_user_login() and securesite_user_pass(). The current code is like: drupal_alter('form', $form, $form_state, 'user_pass'). Simply do what core does above as in the attached patch.
Comment #7
solotandem CreditAttribution: solotandem commentedA better title.
Comment #8
voxpelli CreditAttribution: voxpelli commentedThis seems to fix it for me.
Comment #9
basvredelingthe patch form #6 works for me too.
Comment #10
Darren OhFixed in commit bb4af38. Thanks to voxpelli and basvredeling for reviewing this patch.
Comment #12
memcinto CreditAttribution: memcinto commentedI'm having trouble figuring out what is calling drupal_alter incorrectly. According to a backtrace on wysiwyg_form_alter, the module calling drupal_alter is includes/form.inc, and it is calling drupal_alter correctly (complete with a double call). It would be great if someone could slip me a hint as to what module or file is actually messing up.
Comment #13
Hanno CreditAttribution: Hanno commented@Darren Oh Is it possible to have this patch included in the latest stable version 6.2.4 ?
Comment #15
Francewhoa+1 to make a new stable release with this patch. Last Drupal 6 stable release was in 2009.