Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3.3.2 backup broken ?
#4
(03-23-2012, 02:33 PM)thorsten Wrote: maxDirID="31998"

And the data-root looks like:

dataroot
+ 1025987
L + 1
L + 2
L + 3
L + ....
+ temp
- *.log
- ...

I just realized, that updating a document with a new file, the newly uploaded file will not show the "download" and "view online" links
Ok, I think I know what you are suggesting, so I moved all folders now to a sub-folder called "1".

All data lies now under:
dataroot->1025987->1->"number-folders"

The backup works fine, now as well as the content overview !

But the links "download" and "view online" are missing on all documents.
Probably a change in the database needed ???

I guess I have to explain the meaning of maxDirID. Since version 3.3.0 LetoDMS knows a second format for the content directory which used to have a directory per document. This limits the number of documents to the number of subdirs in a folder. For ext3 this is 31998 subdirs. To overcome this limitation another level of directories is created if maxDirId != 0. All documents with id 1-maxDirID will be put in the subdir 1, those with id masDirID+1-2*masDirID are put in a subdir 2 and so on.

In your case all documents are likely to be in one subdir named '1'.

The reason for the missing download link lies probably in

LetoDMS_Core/Core/inc.ClassDocument.php line 1711

Try to change

PHP Code:
function getPath() { return $this->_document->getID() .'/'$this->_version $this->_fileType; } 

into

PHP Code:
function getPath() { return $this->_document->getDir() . $this->_version $this->_fileType; } 

Uwe
Reply


Messages In This Thread
3.3.2 backup broken ? - by thorsten - 03-23-2012, 03:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)