Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
2.9k views
in Q2A Core by
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
by
selected by
 
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']);

by
worked perfectly, thanks.
...