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

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

1.5 beta error on comment submission in function qa_get_logged_in_points

+1 vote

For some reason I couldn't post comments on my wordpress integrated site when wrapping the WP theme around the q2a theme.  I get:

PHP Fatal error:  Call to undefined function qa_db_select_with_pending() in /home/noah/ask/qa-include/qa-app-users.php on line 108

Adding a require_once solves the problem, as follows:

                        if (!isset($qa_cached_logged_in_points)) {
                                require_once QA_INCLUDE_DIR.'qa-db-selects.php';
                                $qa_cached_logged_in_points=qa_db_select_with_pending(
                                    qa_db_user_points_selectspec(
                                        qa_get_logged_in_userid(),
                                        true
                                    )
                                );
                        }

 

Not sure why this happens?
 

Q2A version: 1.5b1
asked Dec 19, 2011 in Q2A Core by NoahY
edited Dec 21, 2011 by NoahY

1 Answer

+1 vote
 
Best answer
Thanks - will fix it in beta 2.
answered Dec 21, 2011 by gidgreen
selected Dec 21, 2011 by NoahY