• Resolved svaughn

    (@svaughn)


    I am trying to update the NADI plugin form 2.1.11 to 3.0.5. on 2.1.11, the ‘Sync to WordPress’ works, but when I upgrade to 3.0.5 I get:


    Fatal error: Uncaught Error: Call to a member function getFormatted() on null in /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/shared/Ldap/Connection.php:737 Stack trace: #0 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/shared/Ldap/Connection.php(706): Dreitier\Ldap\Connection->filterDomainMembers() #1 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/WordPressSynchronizationService.php(225): Dreitier\Ldap\Connection->findAllMembersOfGroups() #2 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/WordPressSynchronizationService.php(124): Dreitier\Nadi\Synchronization\WordPressSynchronizationService->findSynchronizableUsers() #3 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/Ui/SyncToWordPressPage.php(119): Dreitier\Nadi\Synchronization\WordPressSynchronizationService->synchronize() #4 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/Ui/SyncToWordPressPage.php(74): Dreitier\Nadi\Synchronization\Ui\SyncToWordPressPage->processData() #5 /var/www/reslifedashboard/wp-includes/class-wp-hook.php(308): Dreitier\Nadi\Synchronization\Ui\SyncToWordPressPage->renderAdmin() #6 /var/www/reslifedashboard/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #7 /var/www/reslifedashboard/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /var/www/reslifedashboard/wp-admin/admin.php(259): do_action() #9 {main} thrown in?/var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/shared/Ldap/Connection.php?on line?737

    below is ‘Site Health’ ‘Info’

    wp-core
    
    version: 6.2
    site_language: en_US
    user_language: en_US
    timezone: America/New_York
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 0
    default_comment_status: closed
    environment_type: production
    user_count: 5056
    dotorg_communication: true wp-paths-sizes wordpress_path: /var/www/reslifedashboard
    wordpress_size: 390.46 MB (409427462 bytes)
    uploads_path: /var/www/reslifedashboard/wp-content/uploads
    uploads_size: 4.18 GB (4490937624 bytes)
    themes_path: /var/www/reslifedashboard/wp-content/themes
    themes_size: 40.20 MB (42149692 bytes)
    plugins_path: /var/www/reslifedashboard/wp-content/plugins
    plugins_size: 170.55 MB (178835445 bytes)
    database_size: 349.50 MB (366481584 bytes)
    total_size: 5.11 GB (5487831807 bytes) wp-active-theme name: Divi Child Theme (Divi-Child)
    version: 1.0.1
    author: Maryann Reissig
    author_website: https://reslifedashboard.sjfc.edu
    parent_theme: Divi (Divi)
    theme_features: core-block-patterns, widgets-block-editor, custom-background, automatic-feed-links, post-thumbnails, menus, title-tag, post-formats, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, customize-selective-refresh-widgets, editor-style, widgets
    theme_path: /var/www/reslifedashboard/wp-content/themes/Divi-Child
    auto_update: Disabled wp-parent-theme name: Divi (Divi)
    version: 3.25.4 (latest version: 4.20.4)
    author: Elegant Themes
    author_website: https://www.elegantthemes.com
    theme_path: /var/www/reslifedashboard/wp-content/themes/Divi
    auto_update: Disabled wp-themes-inactive (6) Twenty Nineteen: version: 1.9, author: the WordPress team (latest version: 2.5), Auto-updates disabled
    Twenty Sixteen: version: 2.3, author: the WordPress team (latest version: 2.9), Auto-updates disabled
    Twenty Twenty: version: 1.6, author: the WordPress team (latest version: 2.2), Auto-updates disabled
    Twenty Twenty-One: version: 1.5, author: the WordPress team (latest version: 1.8), Auto-updates disabled
    Twenty Twenty-Three: version: 1.1, author: the WordPress team, Auto-updates disabled
    Twenty Twenty-Two: version: 1.1, author: the WordPress team (latest version: 1.4), Auto-updates disabled wp-mu-plugins (1) ET Support Center :: Must-Use Plugins Autoloader: author: Elegant Themes, version: (undefined) wp-plugins-active (33) Admin Bar Disabler: version: 1.4.2, author: Scott Kingsley Clark, Auto-updates disabled
    Akismet Anti-Spam: Spam Protection: version: 5.1, author: Automattic - Anti Spam Team, Auto-updates disabled
    BackupBuddy: version: 8.7.5, author: iThemes, Auto-updates disabled
    Better Font Awesome: version: 2.0.4, author: Mickey Kay, Auto-updates disabled
    Check & Log Email: version: 1.0.7, author: WPChill, Auto-updates disabled
    Classic Editor: version: 1.6.3, author: WordPress Contributors, Auto-updates disabled
    Defender Pro: version: 2.8.3, author: WPMU DEV (latest version: 3.10.1), Auto-updates disabled
    Enable Media Replace: version: 4.1.1, author: ShortPixel, Auto-updates disabled
    gAppointments: version: 1.9.5.2, author: WpCrunch, Auto-updates disabled
    Gravity Flow: version: 2.9.2, author: Gravity Flow, Auto-updates disabled
    Gravity Forms: version: 2.7.4, author: Gravity Forms, Auto-updates enabled
    Gravity Forms Data Persistence Add-On Reloaded: version: 3.3.1, author: Robert Iseley, Auto-updates disabled
    Gravity Forms Zapier Add-On: version: 4.2, author: Gravity Forms, Auto-updates disabled
    GravityMath: version: 2.3.2, author: GravityKit, Auto-updates disabled
    GravityView: version: 2.17.5, author: GravityKit, Auto-updates disabled
    GravityView - Advanced Filter Extension: version: 2.2, author: GravityKit, Auto-updates disabled
    GravityView - DataTables Extension: version: 2.6, author: The GravityView Team, Auto-updates disabled
    Groups Assigner: version: 1.0.0, author: M Reissig, Auto-updates disabled
    ICS Calendar: version: 10.11.0, author: Room 34 Creative Services, LLC, Auto-updates disabled
    LoginPress - Customizing the WordPress Login Screen.: version: 1.7.1, author: WPBrigade, Auto-updates disabled
    LoginWP (Formerly Peter's Login Redirect): version: 3.0.7.0, author: LoginWP Team, Auto-updates disabled
    Members: version: 3.2.4, author: MemberPress, Auto-updates disabled
    Memphis Documents Library: version: 3.10.10, author: Ian Howatson, Auto-updates disabled
    My Private Site: version: 3.0.13, author: David Gewirtz, Auto-updates disabled
    Nav Menu Roles: version: 2.1.2, author: Kathy Darling, Auto-updates disabled
    Next Active Directory Integration: version: 3.0.5, author: active-directory-wp.com, Auto-updates disabled
    Really Simple SSL: version: 6.2.4, author: Really Simple Plugins, Auto-updates disabled
    Snapshot Pro: version: 3.3.2, author: WPMU DEV, Auto-updates disabled
    Surbma | Divi Remove Project CPT: version: 2.0, author: Surbma, Auto-updates disabled
    User Switching: version: 1.7.0, author: John Blackbourn & contributors, Auto-updates disabled
    WPMU DEV Dashboard: version: 4.11.12, author: WPMU DEV (latest version: 4.11.18), Auto-updates disabled
    WP Rollback: version: 1.7.3, author: GiveWP.com, Auto-updates disabled
    Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast, Auto-updates disabled wp-plugins-inactive (1) maintenance_mode: version: 1.0, author: Steve Vaughn, Auto-updates disabled wp-media image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    imagick_version: Not available
    file_uploads: File uploads is turned off
    post_max_size: 128M
    upload_max_filesize: 128M
    max_effective_size: 128 MB
    max_file_uploads: 20
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: not available wp-server server_architecture: Linux 4.18.0-425.19.2.el8_7.x86_64 x86_64
    httpd_software: Apache/2.4.37 (Red Hat Enterprise Linux) OpenSSL/1.1.1k
    php_version: 8.0.28 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 250
    memory_limit: 512M
    max_input_time: 60
    upload_max_filesize: 128M
    php_post_max_size: 128M
    curl_version: 7.61.1 OpenSSL/1.1.1k
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true wp-database extension: mysqli
    server_version: 10.3.35-MariaDB
    client_version: mysqlnd 8.0.28
    max_allowed_packet: 16777216
    max_connections: 151 wp-constants WP_HOME: https://reslifedashboard-pprd.sjf.edu
    WP_SITEURL: https://reslifedashboard-pprd.sjf.edu
    WP_CONTENT_DIR: /var/www/reslifedashboard/wp-content
    WP_PLUGIN_DIR: /var/www/reslifedashboard/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 512M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: /var/www/reslifedashboard/wp-content/debug.log
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined wp-filesystem wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author schakko

    (@schakko)

    Please check out the latest version of https://github.com/NeosIT/active-directory-integration2/blob/develop/src/shared/Ldap/Connection.php – that one should fix the issue.

    For reference: I am tracking this issue in https://github.com/NeosIT/active-directory-integration2/issues/186

    Thread Starter svaughn

    (@svaughn)

    Thank you for responding.

    I replace Connection.php distributed with the plugin with the one from github.

    It generates a different error now:

    Fatal error: Uncaught TypeError: automatic_group_membership(): Argument #1 ($adiUser) must be of type NextADInt_Adi_User, Dreitier\Nadi\User\User given, called in /var/www/reslifedashboard/wp-includes/class-wp-hook.php on line 310 and defined in /var/www/reslifedashboard/wp-content/plugins/groups-assigner/groupsassigner.php:29 Stack trace: #0 /var/www/reslifedashboard/wp-includes/class-wp-hook.php(310): automatic_group_membership() #1 /var/www/reslifedashboard/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #2 /var/www/reslifedashboard/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/User/Manager.php(327): do_action() #4 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/WordPressSynchronizationService.php(502): Dreitier\Nadi\User\Manager->update() #5 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/WordPressSynchronizationService.php(466): Dreitier\Nadi\Synchronization\WordPressSynchronizationService->createOrUpdateUser() #6 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/WordPressSynchronizationService.php(143): Dreitier\Nadi\Synchronization\WordPressSynchronizationService->synchronizeUser() #7 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/Ui/SyncToWordPressPage.php(119): Dreitier\Nadi\Synchronization\WordPressSynchronizationService->synchronize() #8 /var/www/reslifedashboard/wp-content/plugins/next-active-directory-integration/src/plug-in/Synchronization/Ui/SyncToWordPressPage.php(74): Dreitier\Nadi\Synchronization\Ui\SyncToWordPressPage->processData() #9 /var/www/reslifedashboard/wp-includes/class-wp-hook.php(308): Dreitier\Nadi\Synchronization\Ui\SyncToWordPressPage->renderAdmin() #10 /var/www/reslifedashboard/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #11 /var/www/reslifedashboard/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /var/www/reslifedashboard/wp-admin/admin.php(259): do_action() #13 {main} thrown in?/var/www/reslifedashboard/wp-content/plugins/groups-assigner/groupsassigner.php?on line?29

    Plugin Author schakko

    (@schakko)

    groupsassigner.php seems to be a plug-in you have developed. You have to change the argument types from NextADInt_Adi_User to Dreitier\Nadi\User\User.

    Thread Starter svaughn

    (@svaughn)

    Thank you very much!!!

    I disabled the groupsassigner.php and the nadi sync is now working perfectly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Uncaught TypeError: ldap_get_entries():…’ is closed to new replies.