The issue is the file with the user_logout function isn't loaded at the time the function is called.

This problem only occurs when using contrib modules like CAS to log in.

Comments

geekygnr’s picture

Status: Active » Needs review
StatusFileSize
new573 bytes

A simple fix. I found the solution here: https://api.drupal.org/comment/45158#comment-45158

geekygnr’s picture

Something I noticed today, this problem only happens when using a different authentication method like CASL which my use case requires.

geekygnr’s picture

Issue summary: View changes
klausi’s picture

Status: Needs review » Reviewed & tested by the community

Yes, also fixes the problem when using hybridauth.

fortis’s picture

thanks, works for me.
same for drupal 6.x https://www.drupal.org/node/2571567

  • realityloop committed ddde9ab on 7.x-1.x
    Issue #2303503 by geekygnr: fix 500 error when unallowed user tries to...

  • realityloop committed 1eae921 on 6.x-1.x
    Issue #2303503 by geekygnr: fix 500 error when unallowed user tries to...
baikho’s picture

Status: Reviewed & tested by the community » Fixed
baikho’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.