Drupal 7 + Node access node reference + magic = Premature end of script headers // Internal Server Error (500) // Segmentation fault!

Hello Drupal developers, yesterday I had a lot of trouble with a magical

Internal Server Error (500)
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.16 (Debian) Server

on my development environment.

The Drupal website simply did not load for anonymous users while it worked for me as logged in user (admin).

Having a look at the logs didn't help a lot:

  • Apache Error log said:
    Premature end of script headers
  • PHP error log said nothing.
  • Other logs also said nothing

Finally I remembered that I had enabled the ‎Node access node reference‎ some days ago and disabled it.
WHAO! HIT! The site started working again, no more errors!

So if you should have the same problem with your Drupal 7 installation and you have ‎Node access node reference‎ enabled, you may have the same problem!

I'm currently debugging the problem more deeply and I think an infinite loop might be the reason, but I'm not sure yet.
Of course I've created an issue in DO:

So be careful :)

Please leave a comment if my post helped you or if you can provide any other information to solve the problem.


Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt. Wenn Sie ein zulässiges Avatar mit Ihrer E-Mail-Adresse verknüpft haben, wird dieses als Avatar verwendet.

Weitere Informationen über Formatierungsoptionen

Aktualisieren Geben Sie die Zeichen ein, die Sie im Bild sehen. Geben Sie die im Bild dargestellten Zeichen ein; wenn Sie diese nicht lesen können, senden Sie das Formular ohne Eingabe ab, um ein neues Bild zu generieren. Groß-/Kleinschreibung wird nicht beachtet.  Switch to audio verification.