How to fix the «Unable to write file into directory: Access forbidden» bug in Windows?

image
bug
filesystem
windows
bug-fix

(Dmitry Fedyuk) #1

Find the method:

Replace it with the following one:

public function getPath()
{
	// 2016-12-16
	// https://mage2.pro/t/2389
	$result = $this->context->getPath();
	$result = $this->join($result, $this->getModule());
	$result = $this->join($result, $this->getMiscPath());
	return $this->join($result, $this->getFilePath());
}

How to fix the «Unable to write file into directory: Access forbidden» issue on Windows 7?
How to fix the Magento 2.2.x image URLs bug in Windows?
How to fix the «failed to open stream: Invalid argument in vendor/magento/framework/Image/Adapter/Gd2.php» Magento 2.2 bug in Windows?
(Dmitry Fedyuk) #2

It has been fixed in the core on 2017-02-14:


(Dmitry Fedyuk) #3

See also: