Install Drupal 8 without mod_rewrite (or equivalent) enabled. The following error appears in the logs. This may be caused by code using contextual.module, but the error is generated here.
Response:
Error
The website has encountered an error. Please try again later.
The error log shows:
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: No contextual ids specified. in Drupal\contextual\ContextualController->render() (line 38 of /var/www/drupal8/core/modules/contextual/src/ContextualController.php).
OP's original issue
I have installed D8 B1 on a mac and can't send emails within Drupal. Emails sent from a simple php script work fine. Sorry but I have no idea what component this should be assigned to but I'm sure someone with more understanding will correct it.
Comments
Comment #1
drbeaker commentedComment #2
mtiftI believe this should be mail system
Comment #3
13rac1 commentedI get this error during installation (it shouldn't be sending mail there?) and when I directly access /contextual/render.
Comment #4
13rac1 commentedSee issue summary. Sorry about the minor hijack, if this can be generated with the mail system please provide code to reproduce.
Comment #5
wim leersIn that case, it's normal, since you indeed did not specify any contextual IDs. A simple HTTP GET request to that route does not make any sense, just like it doesn't make any sense for
/system/ajaxeither.I can't reproduce this. Please provide exact steps to reproduce.
Comment #6
13rac1 commentedAh ha!
I figured out the cause. I'm on a fresh Linux install and I forgot to enable mod_rewrite. Drupal is supposed to install/work without mod_rewrite. It's completely unusable w/o mod_rewrite right now. One issue is this install error.
Detailed steps to reproduce:
Comment #7
wim leersYou're right, Drupal 8 requires clean URLs.
Hence this is a duplicate of #2094985: Drupal 8 install does not warn if Clean Urls are not supported. There's nothing to fix here.
Comment #8
13rac1 commentedI'm sorry, but this is a valid issue. The point of #2094985: Drupal 8 install does not warn if Clean Urls are not supported is that Drupal 8 does not require clean URLs. #2099311: User login not working if mod_rewrite is not enabled is related, but a separate issue.
Comment #9
13rac1 commentedComment #10
wim leersOh, ok, I didn't realize that was the case.
Can you please copy/paste the exact HTTP request headers + body to
/contextual/render? You can see them if you use Google Chrome, open the developer tools, and go to any page where you should see contextual links. Go to the developer tools' "Network" tab, click on the "XHR" subtab, and click on the row that shows the request to/contextual/render. There's the information I need.Comment #11
13rac1 commentedDisable mod_rewrite (or equivalent) and install Drupal to reproduce.
Request Headers:
Response Headers:
Response:
Copy as cURL:
This is definitely caused by #2099311: User login not working if mod_rewrite is not enabled since forms submissions are broken without mod_rewrite. I'm closing since it's effectively a duplicate. Will re-open if the form submission fix doesn't correct this specific issue.