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

CommentFileSizeAuthor
#2 document_7.x-1.x.patch5.47 KBb1101
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pyrelav’s picture

I 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,

b1101’s picture

Status: Active » Fixed
FileSize
5.47 KB
r_honey’s picture

Status: Fixed » Needs review

Hi 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).

r_honey’s picture

Assigned: Unassigned » r_honey
Status: Needs review » Fixed

With no response from OP, and unable to reproduce myself, I am marking this as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.