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:
- edit php.ini , set error_reporting
e_compile_error|e_recoverable_error|e_error|e_core_error
- 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
Post a Comment