• Resolved vasilis4sar

    (@vasilis4sar)


    Hello,

    Suddenly, I have this error when i try to login via CAS.

    Could you help me?

    Fatal error: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, array given in /home/ctluom/public_html/wp-content/plugins/authorizer/src/authorizer/class-authentication.php:874 Stack trace: #0 /home/ctluom/public_html/wp-content/plugins/authorizer/src/authorizer/class-authentication.php(874): strlen(Array) #1 /home/ctluom/public_html/wp-content/plugins/authorizer/src/authorizer/class-authentication.php(184): Authorizer\Authentication->custom_authenticate_cas(Array) #2 /home/ctluom/public_html/wp-includes/class-wp-hook.php(308): Authorizer\Authentication->custom_authenticate(NULL, '', '') #3 /home/ctluom/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) #4 /home/ctluom/public_html/wp-includes/pluggable.php(614): apply_filters('authenticate', NULL, '', '') #5 /home/ctluom/public_html/wp-includes/user.php(95): wp_authenticate('', '') #6 /home/ctluom/public_html/wp-login.php(1231): wp_signon(Array, true) #7 {main} thrown in /home/ctluom/public_html/wp-content/plugins/authorizer/src/authorizer/class-authentication.php on line 874

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Paul Ryan

    (@figureone)

    Looks like your CAS server is now returning an array for the “CAS attribute containing first name”

    A quick fix for now is to remove that value in Authorizer Settings (probably remove “CAS attribute containing last name” also, to be safe). We can work on handling arrays instead of just strings.

    Are you able to inspect the attributes coming from your CAS server? I’m curious what that array might look like.

    Plugin Author Paul Ryan

    (@figureone)

    The fix below will be included in the next release so Authorizer can handle array attributes coming from the CAS server for first/last name attributes:

    https://github.com/uhm-coe/authorizer/commit/fb97bddaaa13c31601a7ad310b6b87062d83a371

    Thread Starter vasilis4sar

    (@vasilis4sar)

    Dear Ryan,

    Thank you very much for your promptness and optimal handling of my issue.

    I preferred to remove the “Last Name” field and it worked.

    In the next version of the plugin I will enable it again.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CAS – Login’ is closed to new replies.