Getting PHP Notice: Undefined index: password_clear in joomla when using plugin other then joomla login -


i getting php notice: undefined index: password_clear when use plugin other joomla's login plugin log-in user. in joomla database, not storing user's data. have got custom plugin, check user's credentials through web service call.

the credentials checked good, , joomla show user has logged in, , rest of things working fine. logs filled above notices!

any 1 faced such problem or hints or directions me?

thanks in advance, tanmay

you can 2 things:

  1. edit php.ini , set error_reporting e_compile_error|e_recoverable_error|e_error|e_core_error
  2. edit plugin code , test presence of password_clear before using it.

here's example how testing part:

$clear = $_post['password_clear']; /* old */ $clear = empty($_post['password_clear']) ? '' : $_post['password_clear']; /* fixed */ 

or:

if ($_post['password_clear'] == 'x') {...} /* old */ if (! empty($_post['password_clear']) && $_post['password_clear'] == 'x') {...} /* fixed */ 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -