Skip to content

User Sync Issue (PHP 8.2+) #2848

@JHorvath-MaxetaTech

Description

@JHorvath-MaxetaTech

Looks like since PHP 8.2, creation of dynamic properties has been deprecated.

This is causing an issue when attempting to load the Sync Settings page to configure Entra ID / Moodle User account synchronization.

/home/site/wwwroot/local/o365/classes/adminsetting/usersynccreationrestriction.php

Whoops\Exception\ErrorException thrown with message "Creation of dynamic property local_o365\adminsetting\usersynccreationrestriction::$remotefields is deprecated"

Stacktrace:
#6 Whoops\Exception\ErrorException in /home/site/wwwroot/local/o365/classes/adminsetting/usersynccreationrestriction.php:50
#5 default_error_handler in /home/site/wwwroot/local/o365/classes/adminsetting/usersynccreationrestriction.php:50
#4 local_o365\adminsetting\usersynccreationrestriction:__construct in /home/site/wwwroot/local/o365/settings.php:174
#3 include in /home/site/wwwroot/lib/classes/plugininfo/local.php:67
#2 core\plugininfo\local:load_settings in /home/site/wwwroot/admin/settings/plugins.php:894
#1 require in /home/site/wwwroot/lib/adminlib.php:8847
#0 admin_get_root in /home/site/wwwroot/admin/settings.php:19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions