View Full Version : Uploading files
risraeli
11-05-06, 12:34 AM
Hi,
I'm having problems with uploading files.
After clicking the submit button I get this message:
Warning: shell_exec(): Unable to execute '/usr/bin/strings c:\inetpub\wwwroot\dotproject/files/0/113994462854b31279' in c:\inetpub\wwwroot\dotproject\modules\files\files. class.php on line 160
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\dotproject\modules\files\files. class.php:160) in c:\inetpub\wwwroot\dotproject\classes\ui.class.php on line 515
When I checked it, the file was uploaded but I couldn't open it.
Thanks in advance for your help
Roy.
Michal_Fapso
11-05-06, 06:20 AM
Hi risraeli,
dotProject is able to index uploaded files and then to search through them. It works like this:
1. extract all readable strings (words) from an uploaded file
2. store these words into the "files_index" table in the dotProject database
3. searching for any word in uploaded files is done by searching for the specified word in the "files_index" table
To extract strings from files, dotProject uses by default a linux program "strings" which is in linux filesystem located in /usr/bin/strings. You can change this setting in dotProject's "System Admin" -> "System Configuration". You can change there:
Default File Indexing Parser
MS Word Indexing Parser
Html File Indexing Parser
PDF Indexing Parser
You should specify there a program which is able to extract strings from files. As a windows variant for linux "strings" you can use cygwin's (http://www.cygwin.com) "strings" which should work as well.
But of course you don't need to use this "searching in files" feature. If so, just disable it by setting "Maximum File Size for Indexing" in the dotProject's System Configuration to "0". You should do this also if you do not have permissions to run external system programs directly from a php script
Good luck!
Miso
risraeli
14-05-06, 06:00 PM
Hi Miso,
First of all I would like to thank you for your help,it solved something.
I have set "Maximum File Size for Indexing" in the dotProject's System Configuration to "0".
Now I don't see the previous message and after clicking "submit" the files seem to be uploaded fine, but when I try to click on the file name from the dotproject, I get the next message:
Notice: Only variable references should be returned by reference in c:\inetpub\wwwroot\dotproject\lib\adodb\adodb.inc. php on line 2657
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\dotproject\lib\adodb\adodb.inc. php:2657) in c:\inetpub\wwwroot\dotproject\fileviewer.php on line 168
Then it seems that the file was opened but all I see is the following miss understood collection:
ࡱ> -, \pIndustrial Engineering 2 Ba==-L,$8X@"1Arial1Arial1A rial1Arial1 Verdana1 Arial1 Arial1$Arial1
....and so on
Thank you for your help,
Roy
Michal_Fapso
15-05-06, 01:24 AM
Hi Roy,
it seems to be a problem of the code in c:\inetpub\wwwroot\dotproject\lib\adodb\adodb.inc. php on line 2657. On this line there is a return statement returning a constant (false) within a function which returns reference. You can repair the code there or if you have access to your server's php.ini (which should be located somewhere in c:\windows or in your php directory), just change the line
error_reporting = E_ALL
to this one:
error_reporting = E_ALL & ~E_NOTICE
I have found this solution here: http://www.dotproject.net/vbulletin/archive/index.php/t-3110.html
If it will still not work, try this link: http://www.dotproject.net/vbulletin/showthread.php?t=4966
Never give up!
Miso
risraeli
15-05-06, 02:49 AM
Hi Miso,
Thanks,I appreciate your help.
Anyway I have installed the latest version (2.0.2) instead of 2.0.1 and after few problems during the installation it seems to work fine. all the files can be uploaded and opened.
Thanks again.
Roy
Michal_Fapso
17-05-06, 05:01 AM
You're welcome :)
Miso
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.