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 installation of document, I click configure for the module configuration and the following error appears:
Warning: Parameter 1 to document_search_form() expected to be a reference, value given in drupal_retrieve_form()
The same error occurs when clicking Document from the home link
Comments
Comment #1
tim.hidalgo CreditAttribution: tim.hidalgo commentedHere is the error with file path
Warning: Parameter 1 to document_search_form() expected to be a reference, value given in drupal_retrieve_form() (line 770 of /Applications/MAMP/htdocs/drupal-7.2/includes/form.inc).
Comment #2
r_honey CreditAttribution: r_honey commentedHmmm... I could not produce this issue in my testing, but I have committed a fix.
Can you please update from git or wait for 12 hours for the dev release to be re-build and then try again??
Comment #3
tim.hidalgo CreditAttribution: tim.hidalgo commentedUpdated code, still throwing the error:
Error message
Warning: Parameter 1 to document_settings_form() expected to be a reference, value given in drupal_retrieve_form() (line 770 of /Applications/MAMP/htdocs/drupal-7.2/includes/form.inc).
Comment #4
tim.hidalgo CreditAttribution: tim.hidalgo commentedI also receive the following message when following: home->add content->document
Error message
Notice: Undefined property: stdClass::$nid in document_form() (line 171 of /Applications/MAMP/htdocs/drupal-7.2/sites/all/modules/document/document.module).
Comment #5
r_honey CreditAttribution: r_honey commentedHi tim, both of your issues should be fixed now. Either clone from git or wait 12 hours for the dev release to re-build.
Comment #6
slimandslam CreditAttribution: slimandslam commentedI just cloned git (11:45pm CST, June 29th) and I still get this error:
"Warning: Parameter 1 to document_moderate_form() expected to be a reference, value given in drupal_retrieve_form() (line 772 of /funsite/includes/form.inc)."
Drupal 7.4
-J
Comment #7
r_honey CreditAttribution: r_honey commentedHi, this is a confusing, if you check line 131 here:
http://drupalcode.org/project/document.git/blob/refs/heads/7.x-1.x:/docu...
you will see that the first parameter to document_moderate_form is a reference, can you please try downloading the latest dev release snapshot and try against it (clear your caches after updating the code).
Comment #8
Argus CreditAttribution: Argus commentedDownloaded latest dev, after installing going to http://testsite/admin/structure/document I get:
Comment #9
Christopher Riley CreditAttribution: Christopher Riley commentedI just installed the module and as soon as I go to the configure screen I get the same error.
Comment #10
Snicers CreditAttribution: Snicers commentedI am getting the exact same error.
Comment #11
x86asm CreditAttribution: x86asm commentedI had the same error. I just changed line 5 of document.admin.inc from:
function document_settings_form(&$form_state) {
to:
function document_settings_form($form_state) {
The parameter isn't even used and no complaints were raised. It seems to be working fine for me now.
Comment #12
x86asm CreditAttribution: x86asm commentedAnd the same change on line 5 of document.search.inc.
Comment #13
tshakah CreditAttribution: tshakah commentedAlso getting the same error, changing the line fixed it.