Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Notice: Undefined index: user in /home/mathhome/public_html/qa-include/qa-app-limits.php on line 70

+2 votes
2,067 views
asked Jul 11, 2013 in Q2A Core by mshelton
getting undefined index error when clicking login button from home page.

 

Notice: Undefined index: user in /home/mathhome/public_html/qa-include/qa-app-limits.php on line 70

 

Any ideas?
Q2A version: 1.6.1

1 Answer

0 votes
answered Jul 14, 2013 by gidgreen
selected Jul 18, 2013 by mshelton
 
Best answer

Yes, I think this is a bug. This function is no longer used by the core but was included for backwards compatibility, so presumably some plugin is still access it. You can fix it as follows:

return qa_limits_calc_remaining($action, $dblimits['user'], $dblimits['ip']);

... to ...

return qa_limits_calc_remaining($action, @$dblimits['user'], @$dblimits['ip']);

commented Jul 18, 2013 by mshelton
worked perfectly, thanks.
...