Mailing List Archive

Create new users, impossible...
Hi everyone,
I installed DAViCal on archlinux.
I can access to the web administration site but I can't create a new user.
At the page : http://localhost:5232/admin.php?action=edit&t=principal
it show me :

Exception [0] array_flip(): Argument #1 ($array) must be of type
array, null given
At line 243 of /usr/share/webapps/davical/inc/ui/principal-edit.php
================= Stack Trace ===================
/usr/share/webapps/davical/htdocs/admin.php[28] include_once()
/usr/share/webapps/davical/inc/ui/principal-edit.php[1157] principal_editor()
/usr/share/webapps/davical/inc/ui/principal-edit.php[243] array_flip()

Someone can hel me?

Thank you!
Re: Create new users, impossible... [ In reply to ]
> *[Davical-general] Create new users, impossible...
> <https://sourceforge.net/p/davical/mailman/message/37332002/>*
> From: Laurent Hoareau <laurent.waro@gm...> - 2021-08-07 02:55:10
> Hi everyone,
> I installed DAViCal on archlinux.
> I can access to the web administration site but I can't create a new user.
> At the page : http://localhost:5232/admin.php?action=edit&t=principal <http://localhost:5232/admin.php?action=edit&t=principal>
> it show me :
>
> Exception [0] array_flip(): Argument #1 ($array) must be of type
> array, null given
> At line 243 of /usr/share/webapps/davical/inc/ui/principal-edit.php
> ================= Stack Trace ===================
> /usr/share/webapps/davical/htdocs/admin.php[28] include_once()
> /usr/share/webapps/davical/inc/ui/principal-edit.php[1157] principal_editor()
> /usr/share/webapps/davical/inc/ui/principal-edit.php[243] array_flip()
>
> Someone can hel me?
>
> Thank you!

The variable $privilige_names is missing in the global list:

function principal_editor() {
  global $c, $id, $can_write_principal, $session*, $privilege_names*;
  $editor = new Editor(translate('Principal'), 'dav_principal');

--- Jos
Re: Create new users, impossible... [ In reply to ]
Hi,
thank you very much Jos, i applied your suggestion and it works!
Will this bug be submit to the developpers of the project?
Must i transfer your response to the maintainers of the package to
archlinux (the linux distirbution I use).

thenks again!

--- Laurent

Le mer. 11 août 2021 à 01:52, Jos Alsters <Jos.Alsters@itsal.nl> a écrit :

> *[Davical-general] Create new users, impossible...
> <https://sourceforge.net/p/davical/mailman/message/37332002/>*
> From: Laurent Hoareau <laurent.waro@gm...> <laurent.waro@gm...> -
> 2021-08-07 02:55:10
>
> Hi everyone,
> I installed DAViCal on archlinux.
> I can access to the web administration site but I can't create a new user.
> At the page : http://localhost:5232/admin.php?action=edit&t=principal
> it show me :
>
> Exception [0] array_flip(): Argument #1 ($array) must be of type
> array, null given
> At line 243 of /usr/share/webapps/davical/inc/ui/principal-edit.php
> ================= Stack Trace ===================
> /usr/share/webapps/davical/htdocs/admin.php[28] include_once()
> /usr/share/webapps/davical/inc/ui/principal-edit.php[1157] principal_editor()
> /usr/share/webapps/davical/inc/ui/principal-edit.php[243] array_flip()
>
> Someone can hel me?
>
> Thank you!
>
> The variable $privilige_names is missing in the global list:
>
> function principal_editor() {
> global $c, $id, $can_write_principal, $session*, $privilege_names*;
> $editor = new Editor(translate('Principal'), 'dav_principal');
>
> --- Jos
> _______________________________________________
> Davical-general mailing list
> Davical-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/davical-general
>