phpDivingLog multiuser problem

3rd party extensions (phpDivingLog, dive computer downloader,...)
Post Reply
SpaceDeep
Posts: 7
Joined: Mon May 10, 2010 10:46

phpDivingLog multiuser problem

Post by SpaceDeep »

Can anyone help me with this isue. I can not create multiuser diving log. In single mode everything works nice but when i try to enable multi user mode i receive this errors in apache error log:

Code: Select all

[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Notice:  Undefined index:  user_prefix in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 674
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Warning:  array_keys(): The first argument should be an array in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 674
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Warning:  in_array(): Wrong datatype for second argument in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 675
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Notice:  Undefined index:  user_prefix in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 637
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Warning:  array_keys(): The first argument should be an array in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 637
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Notice:  Undefined index:  user_prefix in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 650
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Warning:  array_keys(): The first argument should be an array in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 650
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Warning:  Invalid argument supplied for foreach() in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 686
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Warning:  Invalid argument supplied for foreach() in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 694
[Mon May 02 23:19:00 2011] [error] [client 192.168.3.1] PHP Warning:  Invalid argument supplied for foreach() in /srv/www/www.potapljaj.se/divelog/classes.inc.php on line 701
config.inc.php

Code: Select all

$_config['Albin'][1] = 'AP_';
$_config['Matej'][2] = 'MB_';
$_config['Boris'][3] = 'BO_';
Regards
SpaceDeep
Posts: 7
Joined: Mon May 10, 2010 10:46

Re: phpDivingLog multiuser problem

Post by SpaceDeep »

Ok another info. This error apears in phpDivinglog-2.2-beta8 version. If i use phpDivinglog-2.1.2 multiuser mode work OK
SpaceDeep
Posts: 7
Joined: Mon May 10, 2010 10:46

Re: phpDivingLog multiuser problem

Post by SpaceDeep »

Anyone??? come on..
Web site http://www.potapljaj.se/divelog
SpaceDeep
Posts: 7
Joined: Mon May 10, 2010 10:46

Re: phpDivingLog multiuser problem

Post by SpaceDeep »

OK, i found my mistake in code

Code: Select all

$_config['Albin'][1] = 'AP_';
$_config['Matej'][2] = 'MB_';
$_config['Boris'][3] = 'BO_';
It should be

Code: Select all

$_config['user_prefix'][1] = 'AP_';
$_config['user_prefix'][2] = 'MB_';
$_config['user_prefix'][3] = 'BO_';
divinglog
Site Admin
Posts: 5777
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: phpDivingLog multiuser problem

Post by divinglog »

I'm glad you got it working! I'm sorry that I couldn't helped you with this, but I am not very familiar with the phpDivingLog source code.

Best regards,
Sven
Post Reply