? ? Pending

User tests: Successful: Unsuccessful:

avatar Quy
Quy
12 Mar 2018

Pull Request for Issue #17827.

Summary of Changes

Fix undefined index: password_clear

@schultz-it-solutions Please test.
@zero-24 Please consider for v3.8.6.

Testing Instructions

Go to Users > Manage.
Under Enabled column, click button to enable/block a user.
See php error log file.

Expected result

No notice.

Actual result

PHP Notice: Undefined index: password_clear in \plugins\system\remember\remember.php on line 119

Documentation Changes Required

none

avatar Quy Quy - open - 12 Mar 2018
avatar Quy Quy - change - 12 Mar 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Mar 2018
Category Front End Plugins
avatar zero-24
zero-24 - comment - 12 Mar 2018

Up to @mbabker to decide if he want to merge this into 3.8.6

avatar sandewt
sandewt - comment - 12 Mar 2018

See php error log file.

I have tested.

File C:\xampp\apache\logs\error.log
Before patch: PHP Notice: Undefined index: password_clear
After patch: no Notice

Which 'php error log file' do you exactly mean? @Quy


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19892.
avatar Quy
Quy - comment - 12 Mar 2018

You have the right file C:\xampp\php\logs\php_error_log.

avatar sandewt
sandewt - comment - 12 Mar 2018

I have tested this item successfully on ce6920e

See comment.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19892.

avatar sandewt sandewt - test_item - 12 Mar 2018 - Tested successfully
avatar alikon
alikon - comment - 12 Mar 2018

I have tested this item successfully on ce6920e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19892.

avatar Quy Quy - change - 12 Mar 2018
Status Pending Ready to Commit
avatar alikon alikon - test_item - 12 Mar 2018 - Tested successfully
avatar Quy
Quy - comment - 12 Mar 2018

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19892.

avatar sandewt
sandewt - comment - 12 Mar 2018

You have the right file C:\xampp\php\logs\php_error_log.

Note @Quy (to avoid misunderstanding)
In the meantime I have found out that one xampp is not the further one. Where I have tested has not an php_error_log file.
So I did an alternative test to be sure.
Before patch:

if ($data['password_clear'] == '')
{
die('test');
return true;
}

Result: Notice = NOK
AND WITH patch

if (empty($data['password_clear']))
{
die('test');
return true;
}

Result: No notice = OK
So I have tested (again) succesfully.
RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19892.
[EDIT] You can create a new php log file: php error log missing in XAMPP

avatar schultz-it-solutions
schultz-it-solutions - comment - 12 Mar 2018

I have tested this item successfully on ce6920e
@Quy : Thanks for spotting this...

avatar mbabker mbabker - change - 12 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-12 22:24:52
Closed_By mbabker
Labels Added: ? ?
avatar mbabker mbabker - close - 12 Mar 2018
avatar mbabker mbabker - merge - 12 Mar 2018

Add a Comment

Login with GitHub to post a comment