![]() |
Call to undefined function removeDir when deleting a document - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10) +--- Thread: Call to undefined function removeDir when deleting a document (/showthread.php?tid=416) |
Call to undefined function removeDir when deleting a document - Daniel - 12-19-2011 I tried to delete a document and get the following message: Fatal error: Call to undefined function removeDir() in /volume1/web/docu/LetoDMS_Core/Core/inc.FileUtils.php on line 113 The entry for the document goes in fact away but after the deletion the folder view shows the following error: Fatal error: Call to a member function getVersion() on a non-object in /volume1/web/docu/out/out.ViewFolder.php on line 118 I can remove the above error when i going to delete the entry for the document within the database table tblDocuments. Other functions of LetoDMS are not affected. I'm using LetoDMS 3.2.2. Any idea? RE: Call to undefined function removeDir when deleting a document - steinm - 12-20-2011 (12-19-2011, 11:10 PM)Daniel Wrote: I tried to delete a document and get the following message: The error itself is clear by looking at the source code. removeDir() isn't called propperly, but I wonder why it was called in the first place. removeDir() in line 113 is only called if the directory of the document contains a directory. I don't see when that could be the case. Did you create it manually? Uwe RE: Call to undefined function removeDir when deleting a document - Daniel - 12-21-2011 (12-20-2011, 01:55 PM)steinm Wrote:(12-19-2011, 11:10 PM)Daniel Wrote: I tried to delete a document and get the following message: Hi Uwe, No, everything is created automatically trough the upload function of LetoDMS. I copied the whole instanced to a 2nd one and tried there, the same message is coming up. I tried to delete different documents and the error is always the same. The document entry is deleted out of the table tblDocumentContent but still remains in tblDocuments. Daniel RE: Call to undefined function removeDir when deleting a document - steinm - 12-21-2011 (12-21-2011, 01:39 AM)Daniel Wrote:That inconsistency in the database is consequence of the error. Something that needs to be fixed in one of the next releases.(12-20-2011, 01:55 PM)steinm Wrote:(12-19-2011, 11:10 PM)Daniel Wrote: I tried to delete a document and get the following message: But what about the document directory on your harddisk? There should be a directory named by the doc id in your content directory. What does it contain. Uwe RE: Call to undefined function removeDir when deleting a document - Daniel - 12-22-2011 (12-21-2011, 05:01 PM)steinm Wrote:(12-21-2011, 01:39 AM)Daniel Wrote:That inconsistency in the database is consequence of the error. Something that needs to be fixed in one of the next releases.(12-20-2011, 01:55 PM)steinm Wrote:(12-19-2011, 11:10 PM)Daniel Wrote: I tried to delete a document and get the following message: The document itself is deleted, the directory is still there, just empty. RE: Call to undefined function removeDir when deleting a document - steinm - 12-22-2011 (12-22-2011, 12:32 AM)Daniel Wrote: The document itself is deleted, the directory is still there, just empty. Very strange, but at least I found an error. Just to make sure. This doesn't happen which each document, does it? Uwe RE: Call to undefined function removeDir when deleting a document - Daniel - 12-22-2011 (12-22-2011, 12:54 AM)steinm Wrote:(12-22-2011, 12:32 AM)Daniel Wrote: The document itself is deleted, the directory is still there, just empty. I tested with 4 documents from different folders within my document tree, always the same error. Will just try it on 3.3.0 and let you know. UPDATE: 3.3.0-pre1 works fine at all. Directory gets removed, database entries are cleaned out completely. RE: Call to undefined function removeDir when deleting a document - steinm - 12-22-2011 (12-22-2011, 12:58 AM)Daniel Wrote:(12-22-2011, 12:54 AM)steinm Wrote:(12-22-2011, 12:32 AM)Daniel Wrote: The document itself is deleted, the directory is still there, just empty. Thanks for the feedback. I will also release a fixed version 3.2.3. But probably not before next year. Uwe |