Forum Replies Created

Viewing 1 replies (of 1 total)
  • I had the same problem.
    To fix it you must create a folder titled “eshop_downloads” within your “wp-content” folder. (If you don’t want to modify the code. Make sure you set correct permissions on all folders.

    You can look at the code which gives the problem right here:

    $eshop_goto=$upload_dir.'/../eshop_downloads';
    $eshop_from=$plugin_dir.'/eshop/downloads';
    if(!file_exists($eshop_goto.'/.htaccess')){
    	wp_mkdir_p( $upload_dir );
    	wp_mkdir_p( $eshop_goto );
    	if ($handle = opendir($eshop_from)) {
    		/* This is the correct way to loop over the directory. */
    		while (false !== ($file = readdir($handle))) {
    			if($file!='' && $file!='.' && $file!='..'){
    				copy($eshop_from.'/'.$file,$eshop_goto.'/'.$file);
    				chmod($eshop_goto.'/'.$file,0666);
    			}
    		}
    		closedir($handle);
    	}
    }

    Seems like this problem might be limited to windows IIS users, as the directory is never created. Possibly a permissions error. Anyhow just manually create the folder to be error free.

Viewing 1 replies (of 1 total)