Hi, my new install of contemplate 7.x-1.0-alpha1 won't allow me to edit the template at all... I get this error. This is a new install of Drupal 7.0 release.
Warning: Parameter 1 to contemplate_edit_type_form() expected to be a reference, value given in drupal_retrieve_form() (line 771 of [..path to htdocs]/includes/form.inc).
Since I installed the module, I also get this error on visiting the homepage.
Warning: Parameter 1 to contemplate_node_view() expected to be a reference, value given in module_invoke_all() (line 817 of [...path to htdocs]/includes/module.inc).
I couldn't find anything in the issue queue already, can anyone help?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 1033908.patch | 616 bytes | tuongaz |
Comments
Comment #1
linuxamartillazos commentedi have the same error. using drupal 7 when i try to edit a template:
Warning: Parameter 1 to contemplate_edit_type_form() expected to be a reference, value given en drupal_retrieve_form() (línea 771 de /var/www/raton/includes/form.inc).
Comment #2
commanderflash commentedHaving the same issue here too. Could not find a solution.
Comment #3
21cdb commentedSame problem for me on Drupal 7.0. Are there any plans in future development? Coming from a WordPress background i thought CCK (Fields) and the possibilities for custom page templates were the strongth of Drupal 7. I'm pretty much surprised that there is no #D7AX on this module.
Comment #4
ther commentedSame problem
Comment #5
ther commentedIf you remove reference signs (&) in line 142, as:
function contemplate_node_view($node, $build_mode) {
and line 242:
function contemplate_edit_type_form($form, &$form_state, $type = NULL) {
the warnings go away and the forms expected do appear. This seems like a hotfix, I don't know how this effects the functionality of the module, but it might as well just be a PHP security option I just got around.
Hope others will find this helpful.
Comment #6
linuxamartillazos commentedI've tried removing that & signs. Warnings disapear, but still can't load the templates. :-(
Comment #7
mynameispj commented#5 worked for me. Templates load, warnings go away. Seems like a bizarre step to have to take, though.
Comment #8
tuongaz commentedJust need to remove the reference & on the line 242 , so $form instead of &$form.
Comment #9
scottlozier commentedThis patch works with PHP 5.2 but not 5.3. Removes Error, but does not load Contemplate. Anyone get this to work in PHP 5.3?
Comment #10
xog commentedI have the same error:
Warning: Parameter 1 to contemplate_node_view() expected to be a reference, value given en module_invoke_all() (línea 817 de /..../includes/module.inc).
the php version is PHP 5.3.3-7
This errors appears when I migrate the web and now I have the latest version of php.
Comment #11
stmi commentedtry to modify the module.inc
there seems to be an issue with passing by reference in call_user_func_array()
see: http://www.php.net/manual/en/function.call-user-func-array.php#91503
I just took the "hack" from this comment and put it in the module_invoke_all() function
replace the function module_invoke_all() with this:
Comment #12
Draven_Caine commentedFix #5 worked for me.
Comment #13
Edward Barend commented#11 working great so far
Comment #14
dragonfighter commented#11 worked for me too
Comment #15
dgtlmoon commentedAppears to be fixed in current dev
8b14cb05 (James R Glasgow 2010-09-14 12:52:59 +0000 241) function contemplate_edit_type_form($form, &$form_state, $type = NULL) {Comment #16
aftab470 commentedi am upgrading statspro module for drupal 7 and i have the following error kindly help me out ......
Warning: Parameter 1 to statspro_overview_settings_form() expected to be a reference, value given in drupal_retrieve_form() (line 798 of E:\xampp\htdocs\drupal7\includes\form.inc).