10-20-2011, 01:33 PM
(10-20-2011, 01:39 AM)simonbaev Wrote:(10-19-2011, 02:55 PM)steinm Wrote: I could reproduce the bug and actually don't know why it has once worked, but it did.
Try the following fix...
I tried the fix but it didn't help. I'm still having the following
in php.logCode:[19-Oct-2011 14:54:23] PHP Fatal error: Call to a member function getPath() on a non-object in /var/www/letoDMS-3.2.0/inc/inc.Utils.php on line 256
Also, when I'm clicking the link to the uploaded file (which was supposed to bring me to a correct location on DMS server) I'm getting 404 error and below is the message from apache2/error.log:
Code:[Wed Oct 19 14:54:31 2011] [error] [client 168.18.223.123] File does not exist: /var/www/letoDMS-3.2.0/uploaded, referer: https://www.gswdms.info/out/out.AddMultiDocument.php?folderid=1&showtree=1
I tried to open JavaConsole in Chrome to see if any errors occurred but nothing bad has shown up.
I suppose the folderid is not propperly passed when the applet uploads the file. Try the following:
Open the upload page in your browser and look at the html source code of that page. There should be a line like
Code:
attr = attrSet.createStringAttribute( 'folderid', 1 );
Depending on your folder id the number is different. It could be, that the folder id must be put into quotes. Open the file inc/inc.ClassUI.php and search for 'createStringAttribute'.
Put the second argument of that function call into quotes
Code:
attr = attrSet.createStringAttribute( '<?= $name ?>', '<?= $value ?>' );
Check again.
Uwe