Error

Call to undefined method class@anonymous::get()

/home/limesurvey.shnoulle.net/www/application/core/plugins/AuthLDAP/AuthLDAP.php(297)

285             $oEvent->set('errorMessageTitle', gT("Failed to add user"));
286             $oEvent->set('errorMessageBody', gT("The email address is not valid."));
287             return null;
288         }
289         $new_pass = createPassword();
290         // If user is being auto created we set parent ID to 1 (admin user)
291         if (isset(Yii::app()->session['loginID'])) {
292             $parentID = Yii::app()->session['loginID'];
293         } else {
294             $parentID = 1;
295         }
296         $status = true;
297         $preCollectedUserArray = $oEvent->get('preCollectedUserArray', []);
298         if (!empty($preCollectedUserArray)) {
299             if (!empty($preCollectedUserArray['status'])) {
300                 $status = $preCollectedUserArray['status'];
301             }
302         }
303         $iNewUID = User::insertUser($new_user, $new_pass, $new_full_name, $parentID, $new_email, null, $status);
304         if (!$iNewUID) {
305             $oEvent->set('errorCode', self::ERROR_ALREADY_EXISTING_USER);
306             $oEvent->set('errorMessageTitle', '');
307             $oEvent->set('errorMessageBody', gT("Failed to add user"));
308             return null;
309         }

Stack Trace

#0
+
 /home/limesurvey.shnoulle.net/www/application/core/plugins/AuthLDAP/AuthLDAP.php(579): AuthLDAP->_createNewUser()
574                 }
575                 public function __toString() {
576                     return json_encode($this->warnings);
577                 }
578             };
579             if (($iNewUID = $this->_createNewUser($dummyEvent, $username, $password)) && $this->get('automaticsurveycreation', null, null, false)) {
580                 Permission::model()->setGlobalPermission($iNewUID, 'surveys', array('create_p'));
581             }
582             $user = $this->api->getUserByName($username);
583             if ($user === null) {
584                 $this->setAuthFailure(self::ERROR_USERNAME_INVALID, gT('Credentials are valid but we failed to create a user'));
#2
+
 /home/limesurvey.shnoulle.net/www/application/libraries/PluginManager/PluginManager.php(269): call_user_func()
264                 if (
265                     !$event->isStopped()
266                     && (empty($target) || in_array(get_class($subscription[0]), $target))
267                 ) {
268                     $subscription[0]->setEvent($event);
269                     call_user_func($subscription);
270                 }
271             }
272         }
273 
274         return $event;
#3
+
 /home/limesurvey.shnoulle.net/www/application/core/LSUserIdentity.php(78): LimeSurvey\PluginManager\PluginManager->dispatchEvent()
73                     throw new CHttpException(403, gT("You do not have permission to access this page."));
74                 }
75                 // Delegate actual authentication to plugin
76                 $authEvent = new PluginEvent('newUserSession', $this); // TODO: rename the plugin function authenticate()
77                 $authEvent->set('identity', $this);
78                 App()->getPluginManager()->dispatchEvent($authEvent);
79                 $pluginResult = $authEvent->get('result');
80                 if ($pluginResult instanceof LSAuthResult) {
81                     $result = $pluginResult;
82                 } else {
83                     $result->setError(self::ERROR_UNKNOWN_IDENTITY);
2024-01-23 16:59:48 nginx/1.22.1 Yii Framework/1.1.28