While the fix works, there is a Warning: [30-Jun-2016 06:41:48 UTC] PHP Warning: array_unique() expects parameter 1 to be array, boolean given in /home/wp-content/plugins/anspress-question-answer/includes/query_filter.php on line 155
And this problem, User follow of mine do not same as Demo AnswerBox. You guide me fix. All version 2 and v3. thanks
We have tested this function with socketIO and works very well. There are few tutorials on google which shows how to use socketIO with WordPress.
As for #6, how can I achieve client side real time updates with the plugin? I know you’d mentioned you needed to have node and push notifications enabled, but I’m curious how to go about doing so.
You are 100% right. There is an error also in v3. Pitty. It seems that v3 is as v2, full of bugs. [29-Jun-2016 15:26:04 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ 27535) DESC, wp_posts.post_date DESC LIMIT 0, 5’ at line 1 for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = ‘question’ AND ((wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘closed’ OR wp_posts.post_status = ‘moderate’ OR wp_posts.post_status = ‘private_post’)) ORDER BY wp_posts.ID IN (, 27535) DESC, wp_posts.post_date DESC LIMIT 0, 5 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/justwrite/index.php’), get_footer, locate_template, load_template, require_once(‘/themes/justwrite/footer.php’), dynamic_sidebar, WP_Widget->display_callback, AP_Questions_Widget->widget, ap_get_questions, Question_Query->__construct, WP_Query->__construct, WP_Query->query, WP_Query->get_posts [29-Jun-2016 15:26:05 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ 27535) DESC, wp_posts.post_date DESC LIMIT 0, 5’ at line 1 for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = ‘question’ AND ((wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘closed’ OR wp_posts.post_status = ‘moderate’ OR wp_posts.post_status = ‘private_post’)) ORDER BY wp_posts.ID IN (, 27535) DESC, wp_posts.post_date DESC LIMIT 0, 5 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/justwrite/index.php’), get_footer, locate_template, load_template, require_once(‘/themes/justwrite/footer.php’), dynamic_sidebar, WP_Widget->display_callback, AP_Questions_Widget->widget, ap_get_questions, Question_Query->__construct, WP_Query->__construct, WP_Query->query, WP_Query->get_posts [29-Jun-2016 15:26:08 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax […]
Fix error in what ? Please post your version of Anspress. Also try to SAVE your permalinks in WP Dashboard once and try again. (i see localhost, so not sure this is an Anspress problem)
Also make sure you have given proper user capabilities to current user role. check AnsPress Options -> roles