I have a thing, that when I create a new field I get a 404 error.
The field is actually created, and when I go back I see it, so this part is just a little annoyance.
However, if I want to remove the field again. I cannot, because I get a 404 error again.
When I go back to the field list this time, it is not removed.
I use a fresh Drupal 8.1 install without any modules.
And I am running that on a PHP 7 interpreter.
For clarity I made a little video of this, so that you can see for yourself.
Drupal 8 weird behaviour
Comments
Comment #2
cilefen commentedWhat (if anything) is being logged by watchdog or PHP when you add the fields and click around?
Comment #3
Noe_ commentedWatchdog isn't logging anything.
I cleared the Watchdog logs, hit the delete button a couple of times.
See the following if the PHP log:
[Tue Jun 7 07:43:02 2016] ::1:54486 [404]: /admin/structure/types/manage/article/fields/node.article.field_demo_text/storage - No such file or directory
But the watchdog stays empty.
There is also nothing in the PHP error log.
Comment #4
dawehnerThe weird aspect of your screenshots is that the 404 is NOT controlled by the PHP application but rather seems to be a webserver level thing. Which webserver are you using here?
Maybe switching to normal apache configuration helps a bit.
Comment #5
Noe_ commentedCrap!
I build a small Docker setup with a LAMP stack and that works perfectly.
It is just that I don't want a full LAMP stack on my development machine, so I just run the PHP webserver with the -S option.
But I guess that this isn't something for Drupal but instead maybe for PHP.
Comment #6
Noe_ commentedAnd closing the issue, I guess.
Comment #7
cilefen commentedMaybe related: #1543858: Add a startup configuration for the built-in PHP server that supports clean URLs
Comment #8
halthFor those landing here while facing the same problem, try running the PHP server with this command:
php -S localhost:8888 .ht.router.php.An in depth explanation can be found on the comments of the
.ht.router.phpfile.