Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call to undefined function removeDir when deleting a document
#1
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?
Reply
#2
(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
Reply
#3
(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.

Daniel
Reply
#4
(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
Reply
#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
#6
(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
Reply
#7
(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.

Very strange, but at least I found an error. Just to make sure. This doesn't happen which each document, does it?

Uwe

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.
Reply
#8
(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.

Very strange, but at least I found an error. Just to make sure. This doesn't happen which each document, does it?

Uwe

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.

Thanks for the feedback. I will also release a fixed version 3.2.3. But probably not before next year.

Uwe
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)