info@ektanjali.com +91 99276-99286

CakePHP 4.x User Management Premium Plugin Version 4.1.x

Plugin Bug Fixes & Migration

Version 4.1.0 Release Date: 1-Nov-2021

Bug Fixes and Improvement Table

From Version To Version Changes Date Links
4.1.0 4.0.1 30-Dec-2019

 View

 

 Plugin Version- 4.1.0 to 4.1.1

Date: 3-Apr-2022

Please keep backup of your code before replacing the files. Either you can replace existing files or do changes in existing code as per new changes.

You can download the old version 4.1.0 and make a difference with your application code using Kdiff3 software http://kdiff3.sourceforge.net/ and record your changes done in plugin files.

we have done few changes in 4.1.1 version. You need to migrate user management plugin version from 4.1.0 to 4.1.1 in following steps...

1. Open plugins\Usermgmt\src\Controller\Component\UserAuthComponent.php

Go to isAllowedLogin function

Replace this code

$last_action = time() - (abs(LOGIN_IDLE_TIME) * 60);

with this code

$last_action = time() - (abs((float)LOGIN_IDLE_TIME) * 60);

 

Go to deleteCache function

Replace this code

$congig = $default + $congig;

with this code

$congig = array_merge($default, $congig);

 

2. Open plugins\Usermgmt\src\Controller\Component\SearchComponent.php

Go to beforeRender function

Replace this code

if(!strlen((string)$options['value']) && strlen((string)$options['default'])) {

with this code

if(empty($this->formdata) && !strlen((string)$options['value']) && strlen((string)$options['default'])) {

 

3. Open plugins\Usermgmt\src\Model\Behavior\SearchingBehavior.php

Go to getTransformText function

Replace this function code from version 4.1.1 file or replace whole file

 

4. Open plugins\Usermgmt\templates\UserGroups\all_user_groups.php

Replace this code

nl2br($row['description'])

with this code

nl2br($row['description'] ?? '')

 

5. Open plugins\Usermgmt\templates\UserSettings\all_user_settings.php

Replace this code

ucwords(strtolower($row['setting_category']))

with this code

ucwords(strtolower($row['setting_category'] ?? ''))

Replace this code

nl2br($row['setting_description'])

with this code

nl2br($row['setting_description'] ?? '')

Replace this code

nl2br($row['setting_value'])

with this code

nl2br($row['setting_value'] ?? '')

 

6. Open plugins\Usermgmt\templates\Users\myprofile.php

Replace this code

ucwords($user['gender'])

with this code

ucwords($user['gender'] ?? '')

 

7. Open plugins\Usermgmt\templates\Users\view_user.php

Replace this code

ucwords($user['gender'])

with this code

ucwords($user['gender'] ?? '')

 

8. Replace plugins\Usermgmt\vendor\facebook

9. Replace plugins\Usermgmt\vendor\google

10. Replace plugins\Usermgmt\vendor\twitter