Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call to undefined function removeDir when deleting a document
#5
(12-21-2011, 05:01 PM)steinm Wrote:
(12-21-2011, 01:39 AM)Daniel Wrote:
(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:

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?

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

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.
That inconsistency in the database is consequence of the error. Something that needs to be fixed in one of the next releases.

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

The document itself is deleted, the directory is still there, just empty.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: