Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File upload Problems
#31
It was my fault...
I had uploaded the file already.... Cool
Reply
#32
(08-12-2010, 03:26 PM)alekseyn Wrote: so, below is my suggested replacement for this function in inc.FileUtils.php:

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

    
$mkfolder $path1;
    
    
$path preg_split"/[\\\\\/]/" $path2 );
        
    for(  
$i=; 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).
Reply
#33
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
Reply
#34
(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...21#pid1021

and post the result here

thanks

LetoDMS team.
Reply
#35
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
Reply
#36
Hi

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

thanks
doudoux
Reply
#37
Hi,

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

Thanks
Reply


Forum Jump:


Users browsing this thread: