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.
Hello,
when I try to add content, ie upload a document, I get the following error messages :
* Notice: Undefined property: stdClass::$document_url in theme_document_info() (line 477 of C:\Program Files\xampp\htdocs\EBN\sites\all\modules\document\document.module).
* Notice: Undefined property: stdClass::$document_type in theme_document_info() (line 480 of C:\Program Files\xampp\htdocs\EBN\sites\all\modules\document\document.module).
Thank you
Comment | File | Size | Author |
---|---|---|---|
#2 | document_7.x-1.x.patch | 5.47 KB | b1101 |
Comments
Comment #1
pyrelav CreditAttribution: pyrelav commentedI have done another attempt, and I get the following message :
* Notice: Undefined index: fr in _document_get_node_terms() (line 633 of C:\Program Files\xampp\htdocs\EBN\sites\all\modules\document\document.module).
* Warning: move_uploaded_file(public://C:\Users\V___\Documents\2 Loisirs\9 F_\E____\Uploads EBN/______.doc) [function.move-uploaded-file]: failed to open stream: "DrupalPublicStreamWrapper::stream_open" call failed in file_save_upload() (line 1524 of C:\Program Files\xampp\htdocs\EBN\includes\file.inc).
* Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Program Files\xampp\tmp\php9151.tmp' to 'public://C:\Users\V___\Documents\2 Loisirs\9 F_\E____\Uploads EBN/_____.doc' in file_save_upload() (line 1524 of C:\Program Files\xampp\htdocs\EBN\includes\file.inc).
* File upload error. Could not move uploaded file.
* Please select a document to upload.
* SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'url' cannot be null
* Notice: Undefined property: stdClass::$document_url in theme_document_info() (line 477 of C:\Program Files\xampp\htdocs\EBN\sites\all\modules\document\document.module).
* Notice: Undefined property: stdClass::$document_type in theme_document_info() (line 480 of C:\Program Files\xampp\htdocs\EBN\sites\all\modules\document\document.module).
Thank you,
Comment #2
b1101 CreditAttribution: b1101 commentedComment #3
r_honey CreditAttribution: r_honey commentedHi pyrelav, many fixes for D7 version of this module have recently been committed.
Can you please test against the latest dev version of the module and see if your issue is resolved (I was unable to reproduce it anyhow).
Comment #4
r_honey CreditAttribution: r_honey commentedWith no response from OP, and unable to reproduce myself, I am marking this as fixed.