Why i set featured then page blank

6.43K viewsThemes
1

Hi,

When i set featured then page blank, do not show question on Home page. Pls fix error.

0

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

0

And this problem, User follow of mine do not same as Demo AnswerBox. You guide me fix. All version 2 and v3. thanks

 

commented on answer

Pls help me do this sameple demo here. thnks

Don’t mix several questions for different problems under one post pls. Hard to follow.

Sory @Cagliostro, i don’t know. thks

1

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 to use near ‘ 27535) DESC, wp_postmeta.meta_value DESC LIMIT 0, 10’ at line 7 for query SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )  INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) WHERE 1=1  AND (
wp_postmeta.meta_key = ‘_ap_updated’
AND
(
mt1.meta_key = ‘_ap_updated’
)
) 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’)) GROUP BY wp_posts.ID ORDER BY  wp_posts.ID IN (, 27535) DESC, wp_postmeta.meta_value DESC LIMIT 0, 10 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/justwrite/page.php’), get_template_part, locate_template, load_template, require(‘/themes/justwrite/page-templates/template-page.php’), the_content, apply_filters(‘the_content’), do_shortcode, preg_replace_callback, do_shortcode_tag, AnsPress_BasePage_Shortcode->anspress_sc, ap_page, AnsPress_Common_Pages::base_page, ap_get_questions, Question_Query->__construct, WP_Query->__construct, WP_Query->query, WP_Query->get_posts

commented on answer

I made a commit. Please check if your issue solved.

@Kumar : fixed a bug, thnks

0

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)

commented on answer

I use Anspress v3, localhost do not problem. i try more but error. tks