How to fix the Magento 2.2.x image URLs bug in Windows?

image
bug
windows
bug-fix
url
magento22
magento224

(Dmitry Fedyuk) #1

Replace the line:

with the following one:

return implode('/', [$this->context->getBaseUrl(), $this->getModule(), $this->getMiscPath(), $this->getFilePath()]);

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

See also: