WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => Modules => Topic started by: mikejd on October 12, 2021, 07:52:19 PM

Title: Teams module
Post by: mikejd on October 12, 2021, 07:52:19 PM
Going out on a bit of a limb here, not really expecting anyone to be able to help:
I have a site I set up with WB some years ago, currently version 2.12.2 r379. I have the Teams module installed, v1.4.1. It is working OK until I try to change it. I am unable to open existing entries to modify or new entries to add.

I'm guessing probably too old for anyone to know much about it, but just asking anyway.
Title: Re: Teams module
Post by: dbs on October 12, 2021, 08:03:31 PM
Hi, is the name really Teams or is it maybe Team?
I have a Team version 1.5.0 from 2020.
But i think it is a PHP version problem.
Title: Re: Teams module
Post by: mikejd on October 13, 2021, 10:27:20 AM
Hi @Feb, thanks for the suggestion. I tried to find an update for the Team module but haven't so far. I thought it might be something like this. Would you be able to provide a link to where I can get the 1.5.0 or later version?
Title: Re: Teams module
Post by: dbs on October 13, 2021, 12:49:20 PM
1.5.0 attached.
Hope it helps.

Have a look at the X-button in the top menu for errors.
Post the errors.

Alternatively: modules like "OFA" or "itemz" do the same i guess.

edit: attachement removed. see next postings.
Title: Re: Teams module
Post by: mikejd on October 13, 2021, 01:23:33 PM
Thanks for the file. Can I just upgrade this by overwriting the files on the server?

No error messages from X-button
Title: Re: Teams module
Post by: dbs on October 13, 2021, 01:33:48 PM
I would install like other modules.
Make a backup before.
Title: Re: Teams module
Post by: mikejd on October 13, 2021, 01:46:58 PM
Thanks, module upgraded and now working correctly.
Title: Re: Teams module
Post by: hgs on October 14, 2021, 07:27:30 AM
Errors after installation and in the BE the options opened and saved. (php7.4)

Code: [Select]
Thu, 14 Oct 2021 05:24:36 +0000 [E_NOTICE] /modules/team/save_settings.php:[34]  from /modules/team/save_settings.php:[34] bin\Exceptions\ErrorHandler::handler "Undefined index: theader"
Thu, 14 Oct 2021 05:24:36 +0000 [E_NOTICE] /modules/team/save_settings.php:[37]  from /modules/team/save_settings.php:[37] bin\Exceptions\ErrorHandler::handler "Undefined index: bheader"
Thu, 14 Oct 2021 05:24:36 +0000 [E_NOTICE] /modules/team/save_settings.php:[39]  from /modules/team/save_settings.php:[39] bin\Exceptions\ErrorHandler::handler "Undefined index: bfooter""
Errors after calling the help in the BE
Code: [Select]
Thu, 14 Oct 2021 05:29:21 +0000 [E_NOTICE] /modules/team/languages/help-DE.php:[36] from /modules/team/help.php:[69] include "Undefined index: BMLOOP""Create group and member works without error message
Title: Re: Teams module
Post by: dbs on October 14, 2021, 10:37:33 AM
Thanks for testing.
For me it was not possible to add a team member. group was no problem.
Hope now with v 1.5.1 all messages are gone.

edit: attachment removed, see next post.
Title: Re: Teams module
Post by: hgs on October 14, 2021, 12:55:39 PM
Thanks for fix it

This message came up during the upgrade
Code: [Select]
Thu, 14 Oct 2021 10:51:17 +0000 [E_WARNING] /modules/team/upgrade.php:[24]  from /modules/team/upgrade.php:[24] header "Cannot modify header information - headers already sent by (output started at /xxx/xxxxxxxx/xxxx/xxxxx/xxxxxx/include/phplib/Template.php:703)""The other messages are gone
 (Y)
A new installation with php8 also has no messages

What I do not like, the mailadrsee is not encrypted in the source code, as is now common with WB and many modules.
Title: Re: Teams module
Post by: dbs on October 14, 2021, 05:53:07 PM
Good tested, thanks.  (Y)
Little modification for upgrade.php should fix the error.
1.5.2 attached.

edit: attachment removed. see next postings.
Title: Re: Teams module
Post by: hgs on October 15, 2021, 12:36:44 PM
Thank you, this leaves the error logger empty
php7.4 + php8
Title: Re: Teams module
Post by: crnogorac081 on October 18, 2021, 02:35:31 PM
Good tested, thanks.  (Y)
Little modification for upgrade.php should fix the error.
1.5.2 attached.

I wanted to test this 1.5.2 , and to report that clean install doesnt work , some tables are not created
Title: Re: Teams module
Post by: dbs on October 18, 2021, 04:50:08 PM
And i can report deleting of the section is not possible, because the delete.php is not complete.
Starts without <?php and it seems there is some code missing.
Damn. If someone have a original 1.5.0 please attach it.
Title: Re: Teams module
Post by: crnogorac081 on October 18, 2021, 05:26:47 PM
1.5.0 attached.
Hope it helps.

Have a look at the X-button in the top menu for errors.
Post the errors.

Alternatively: modules like "OFA" or "itemz" do the same i guess.

Where did you find this version ? This is 1.5.0
Title: Re: Teams module
Post by: dbs on October 18, 2021, 05:35:58 PM
This is from my PC. I had accidentally deleted folders with many ZIPs.
The restoration was probably faulty.
Title: Re: Teams module
Post by: crnogorac081 on October 18, 2021, 10:52:58 PM
I ve tried to manually execute db install, probably sql is nit strict so tables are not created
Title: Re: Teams module
Post by: hgs on October 19, 2021, 09:17:59 AM
I did a fresh install with php 8 without any problems.

However, in the FE still warnings are issued in the ErrorLogger
Code: [Select]
Tue, 19 Oct 2021 07:09:07 +0000 [E_WARNING] /modules/team/view.php:[199] from /framework/frontend.functions.php:[273] require "Undefined variable $gname"
Tue, 19 Oct 2021 07:09:07 +0000 [E_WARNING] /modules/team/view.php:[201]  from /framework/frontend.functions.php:[273] require "Undefined variable $gname"


Title: Re: Teams module
Post by: crnogorac081 on October 19, 2021, 10:35:26 AM
Can you check if tables _members and _groups are installed ?
Title: Re: Teams module
Post by: dbs on October 19, 2021, 11:20:44 AM
Again tested install with PHP8 und Maria-DB 10 and WB 2.13.
Works.

The messages from hgs now should also gone with 1.5.3 (was a typo in $gname).
Title: Re: Teams module
Post by: crnogorac081 on October 19, 2021, 12:19:54 PM
Again tested install with PHP8 und Maria-DB 10 and WB 2.13.
Works.

The messages from hgs now should also gone with 1.5.3 (was a typo in $gname).

I am testing under latest wb portable, and there was an error in install file so _modules and _groups are not created in DB.
Here is updated file.
Title: Re: Teams module
Post by: hgs on October 21, 2021, 08:36:13 AM
Can you check if tables _members and _groups are installed ?

In my installation on the server at all-inkl.com all tables have been created.
Title: Re: Teams module
Post by: hgs on October 21, 2021, 08:54:54 AM
Thanks for the fix!! (Y)
Version 1.5.3 tested through.Upgrade from 1.5.2 = ok
deinstall = ok
install (1.5.3) = ok
Create group and change position = ok
Create member and change the position = ok
Delete member = ok
Delete group = ok

wish: mask email address in source code
Title: Re: Teams module
Post by: dbs on October 21, 2021, 11:16:50 AM
Emailadress is possible if in Team settings is "Hide Email":  No.
Then the WB handling is like other masked emailadresses.
Title: Re: Teams module
Post by: hgs on October 22, 2021, 08:56:33 AM
 (Y) Thanks for the explanation, That's confusing though, that it works "correctly" for "no". :-[
Title: Re: Teams module
Post by: dbs on October 22, 2021, 09:18:58 AM
Please hit the Chio bee  ;D