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

Noe_ created an issue. See original summary.

cilefen’s picture

What (if anything) is being logged by watchdog or PHP when you add the fields and click around?

Noe_’s picture

Watchdog 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.

dawehner’s picture

The 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.

Noe_’s picture

Crap!

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.

Noe_’s picture

Status: Active » Closed (won't fix)

And closing the issue, I guess.

halth’s picture

For 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.php file.