Error: JFolder::create: Could not create directory

When you get the following error in Joomla:

JFolder::create: Could not create directoryWarning
! Failed to move fileIn

most cases the paths in the configuration.php are not set correctly. Usually, the configuration.php contains the following:
public $log_path = '/logs';
public $tmp_path = '/tmp';


If Joomla is installed in the wwwroot folder, you can change this to:
public $log_path = 'E:wwwroot.';
public $tmp_path = 'E:HostingSpaces.com/tmp';

PLEASE NOTE: so do not copy and paste this line 1 to 1 but do change *controlpanelname* & *domainname.com* to the names that apply to you.

If Joomla is not installed in the wwwroot directory, but in a subdirectory, then you must continue to enter the directory name after wwwroot/ and only after /logs or /tmp