• Resolved webmasterhboe

    (@webmasterhboe)


    Our recent upgrade may have caused an issue where users are no longer able to consistently log in to our WordPress website.
    Here are our settings
    Next Active Directory Version 3.0.5
    WordPress: 6.1

    PHP Version: 8.02
    Our Plugin Settings: Link

    Error from PHP Log
    thrown in wp-content\plugins\next-active-directory-integration\src\shared\Ldap\Attribute\Converter.php on line 92

    inetpub\wwwroot\hcsdweb\insider\wp-includes\class-wp-hook.php(308): Dreitier\Nadi\User\LoginSucceededService->updateOrCreateUser()

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter webmasterhboe

    (@webmasterhboe)

    An error of type E_ERROR was caused in line 92 of the file \wp-content\plugins\next-active-directory-integration\src\shared\Ldap\Attribute\Converter.php. Error message: Uncaught TypeError: Unsupported operand types: string / int in \wp-content\plugins\next-active-directory-integration\src\shared\Ldap\Attribute\Converter.php:92
    
    Stack trace:
    
    #0 \wp-content\plugins\next-active-directory-integration\src\shared\Ldap\Attribute\Converter.php(42): Dreitier\Ldap\Attribute\Converter::formatTimestamp()
    
    #1 \wp-content\plugins\next-active-directory-integration\src\plug-in\User\Manager.php(544): Dreitier\Ldap\Attribute\Converter::formatAttributeValue()
    
    #2 \wp-content\plugins\next-active-directory-integration\src\shared\Util\ArrayUtil.php(105): Dreitier\Nadi\User\Manager->Dreitier\Nadi\User\{closure}()
    
    #3 \wp-content\plugins\next-active-directory-integration\src\plug-in\User\Manager.php(555): Dreitier\Util\ArrayUtil::filter()
    
    #4 \wp-content\plugins\next-active-directory-integration\src\plug-in\User\Manager.php(466): Dreitier\Nadi\User\Manager->filterEmptyAttributes()
    
    #5 \wp-content\plugins\next-active-directory-integration\src\plug-in\User\Manager.php(308): Dreitier\Nadi\User\Manager->updateUserMetaDataFromActiveDirectory()
    
    #6 \wp-content\plugins\next-active-directory-integration\src\plug-in\User\LoginSucceededService.php(220): Dreitier\Nadi\User\Manager->update()
    
    #7 \wp-content\plugins\next-active-directory-integration\src\plug-in\User\LoginSucceededService.php(150): Dreitier\Nadi\User\LoginSucceededService->updateUser()
    
    #8 \wp-includes\class-wp-hook.php(308): Dreitier\Nadi\User\LoginSucceededService->updateOrCreateUser()
    
    #9 \wp-includes\plugin.php(205): WP_Hook->apply_filters()
    
    #10 \wp-content\plugins\next-active-directory-integration\src\plug-in\User\LoginSucceededService.php(85): apply_filters()
    
    #11 \wp-includes\class-wp-hook.php(308): Dreitier\Nadi\User\LoginSucceededService->updateOrCreateAfterSuccessfulLogin()
    
    
    Plugin Author schakko

    (@schakko)

    Please check your attribute mapping (https://docs.active-directory-wp.com/Configuration/Attributes/index.html) for a timestamp type field. This could be a misconfiguration, so that this field should be a string.

    We are adding an explicit cast for string to int. You can check out https://github.com/NeosIT/active-directory-integration2/commit/8b55b2af2465585f184bf420cf167616b6da545b

    For reference: We are tracking this issue in https://github.com/NeosIT/active-directory-integration2/issues/184

    Thread Starter webmasterhboe

    (@webmasterhboe)

    Hello,

    I made the adjustment to attributes.
    Image Link

    Not sure if this would solve our problem. We are still getting reports of some users not being able to log in but others can.
    Or did I misunderstand? Do I need to add a new attribute?

    Plugin Author schakko

    (@schakko)

    @webmasterhboe Can you share your screenshot on another image service? Your website times out.

    Have you tried the patch mentioned above?

    Thread Starter webmasterhboe

    (@webmasterhboe)

    Let’s try this
    https://pasteboard.co/E9o1RmqA9aHk.png

    I “think” I tried the fix. Unfortunately, the Developer that created the website is no longer here and I do not have experience setting things up. They worked until Our recent update to PHP 8 a few weeks ago.

    I do have successful logins but there are a few that can’t and WordPress crashes for them. https://pasteboard.co/hPCSMqB65X0k.png

    I haven’t heard any login issues this morning so maybe We are but I would like to make sure there weren’t any known issues.

    Plugin Author schakko

    (@schakko)

    You have to update also the whencreated / user_created_on field and set this one from time to string if the fix does not work.

    If you are still experiencing this issue, I’d like to encourage you to purchase one of our plans.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Intermitant Log in issues for users’ is closed to new replies.