statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Statamic v2.11.21 breaks resources on Windows #2536

Open lukeagsmith opened 3 years ago

lukeagsmith commented 3 years ago

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):

lwoschke commented 3 years ago

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)) {

Boolian commented 3 years ago

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