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 nodeaccess_nodereference.module 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 nodeaccess_nodereference.module 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:
https://www.drupal.org/node/2343963

So be careful :)

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

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.

Weitere Informationen über Formatierungsoptionen