The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.3.25 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



LetoDMS Community Forum
File upload Problems - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10)
+--- Thread: File upload Problems (/showthread.php?tid=127)

Pages: 1 2 3 4


RE: File upload Problems - spacecop - 08-13-2010

It was my fault...
I had uploaded the file already.... Cool


RE: File upload Problems - glorenz - 03-07-2011

(08-12-2010, 03:26 PM)alekseyn Wrote: so, below is my suggested replacement for this function in inc.FileUtils.php:

PHP Code:
<?php 
function makeDir($path)
{
global
$settings;
$path1 = $settings->_contentDir; //from config
$path2 = substr_replace ($path, "/", 0, strlen($path1));

$mkfolder = $path1;

$path = preg_split( "/[\\\\\/]/" , $path2 );

for(
$i=0 ; isset( $path[$i] ) ; $i++ )
{
if(!
strlen(trim($path[$i])))continue;
$mkfolder .= $path[$i];
//echo $mkfolder." -> ";

if( !is_dir( $mkfolder ) ){
$res= @mkdir( "$mkfolder" , 0777);
if (!
$res) return false;
}
$mkfolder .= DIRECTORY_SEPARATOR;
}

return
true;
}

I am also attaching the modified file. PLEASE ALWAYS BACKUP YOUR FILES BEFORE ANY FILE REPLACEMENT OR MODIFICATION.

try is spacecop - use the attached file (replace yours in /inc/ folder) and let us know...
Matteo... please check my logic....

The current RC candidate on SF holds the old version of the code as well as the corrected patch (inc.FileUtils.php).


RE: File upload Problems - Daniel - 03-25-2011

I installed LetoDMS 3.0 RC3 and get the following error when i try to upload a file:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var) is not within the allowed path(s):

All folders have 777 set, so they should be accessible. I can add /var to the openbasedir settings, then it goes trough but i'm not happy with that.

Any suggestions?

Thanks
Daniel


RE: File upload Problems - administrator - 03-25-2011

(03-25-2011, 01:46 AM)Daniel Wrote: I installed LetoDMS 3.0 RC3 and get the following error when i try to upload a file:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var) is not within the allowed path(s):

All folders have 777 set, so they should be accessible. I can add /var to the openbasedir settings, then it goes trough but i'm not happy with that.

Any suggestions?

Thanks
Daniel

hey Daniel

thanks for using LetoDMS

please run this

http://forums.letodms.com/showthread.php?tid=244&pid=1021#pid1021

and post the result here

thanks

LetoDMS team.


RE: File upload Problems - Daniel - 03-26-2011

Hi,

Got the newest version of check.php, removed the custom setting in open_basedir and tried again, error is still here. Attached the output of check.php.

Thanks
Daniel


RE: File upload Problems - Doudoux - 03-26-2011

Hi

can you test the new version 3.00-06 of check.php file ?
with the command check.php?debug

thanks
doudoux


RE: File upload Problems - Daniel - 03-27-2011

Hi,

Attached the result. No errors, even after removing my custom setting.

Thanks