v2-hub icon indicating copy to clipboard operation
v2-hub copied to clipboard

Statamic v2.11.21 breaks resources on Windows

Open lukeagsmith opened this issue 3 years ago • 2 comments

Describe the bug The change to statamic/core/Http/ResourceServer/Server.php line 178 stops resources from loading on Windows.

To Reproduce Steps to reproduce the behavior:

  1. Update to v2.11.21
  2. Go to control panel login
  3. See 404s in browser inspector

Environment details (please complete the following information):

  • Statamic Version 2.11.21
  • Fresh Install or Upgrade: happens on both
  • OS: Windows 10
  • Browser: all
  • Web Server: Apache
  • PHP Version: 7.3 and 7.4

lukeagsmith avatar Mar 05 '21 16:03 lukeagsmith

Same problem here. The control panel becomes inoperable when updating to 2.11.21. (OS:Windows 10, Browser: Google Chrome, Web Server: Apache 2.4.35, PHP: 7.4.14)

The workaround that is not nice but seems to work anyway:

locate: statamic/core/Http/ResourceServer/Server.php

change line 178 to: if (! $this->filesystem->exists($this->path) || $this->filesystem->isDirectory($this->path)) {

lwoschke avatar Mar 10 '21 11:03 lwoschke

Is this ever going to be fixed? It's been over 3 months :(

Boolian avatar Jun 23 '21 06:06 Boolian