File form Drop folder is not inserted into form.
Open Source Document Management System
Brought to you by:
steinm
Hi Uwe,
when clicking the fitles available in the drop folder to create a new document, the page for new document is opened but the field for the file remains empty, although url seems to be ok: ......./dms/out/out.AddDocument.php?folderid=1&dropfolderfileform1=testfile.png
In your DEMO-installation it works fine. So, what's wrong?
It's also working in my local copy. If you have some basic php knowledge, you could check if the filename is passed to the view in views/bootstrap/class.AddDocument.php. Search for $dropfolderfile and echo it. You may as well check in out/out.AddDocument.php if the filename is passed to the view.
Hi Uwe,
Thank you for pointing at least to the right file to search for.
in $this->printDropFolderChooserHtml("form1", $dropfolderfile); the value for $dropfolderfile is not set. I am not expert enough to find out at which point you are reading $GET[....] or to precise: whehere is the point where $this->params['dropfolderfile']; is set from the url?
printDropFolderChooserHtml("form1",$GET['dropfolderfileform1']);?>Replacing the line in the form by
did it for me, but I am not happy with this on the long run.
That helps. If
$_GET['dropfolderfileform1']is set, then it should be basically working. Go into out/out.AddDocument.php and place aprint_r($_REQUEST)right before the line$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));You will see a couple of lines further down, that$_REQUEST['dropfolderfileform1']is passed as a parameter to the view. Within the view views/bootstrap/class.AddDocument.php this parameter is read again, saved into$dropfolderfileand finally passed to$this->printDropFolderChooserHtml(). Looks like this fails somewhere on the way.$_REQUESTshould contain your filename in the elementdropfolderfileform1.Just to make sure we are talking about the same process. Are you using the list of drop folder files in the menu?
Hi Uwe,
SOLVED!
after seeing that adding print_r to out.AddDocument.php has no visible output , I found out that somehow it is using some of the files from old version. I don't know if there is some cache for php files or whatever in the webserver.... I was very suprised!
However,
So basically I changed noting but renamed the folder with the old version. Thanks to your comments I was able to find out what's wrong. I think you can close the ticket.