[BlueOnyx:20906] PHP error when trying to delete a user as site admin

Andreas Ebertus lists.aeb at cbxnet.de
Wed Apr 12 12:28:28 -05 2017


Hi,

when I try to delete a user as site admin on a fully patched 5209R I
get this error:

> A PHP Error was encountered
> Severity: Notice
> Message: Undefined variable: user
> Filename: controllers/userDel.php
> Line Number: 129

To fix it I
edited /usr/sausalito/ui/chorizo/ci/application/modules/base/user/controllers/userDel.php
like so:


--- /usr/sausalito/ui/chorizo/ci/application/modules/base/user/controllers/userDel.php.orig 2017-04-12 18:52:39.661150141 +0200
+++ /usr/sausalito/ui/chorizo/ci/application/modules/base/user/controllers/userDel.php  2017-04-12 18:58:00.822899107 +0200
@@ -29,6 +29,7 @@
         $CI->serverScriptHelper = new ServerScriptHelper($CI->BX_SESSION['sessionId'], $CI->BX_SESSION['loginName']);
         $CI->cceClient = $CI->serverScriptHelper->getCceClient();

+        $user = $CI->BX_SESSION['loginUser'];
         $i18n = new I18n("base-user", $CI->BX_SESSION['loginUser']['localePreference']);

         // Initialize Capabilities so that we can poll the access rights as well:


Deleting a user is working now, but I don't know if that's the
"correct" way to fix this issue.


All the best,
Andreas



More information about the Blueonyx mailing list