Support » Plugin: FAQ You » Activating FAQ You plugin causes white screen on wordpress admin page

  • I encountered an issue where activating the FAQ You plugin (version 2.0.1) causes the admin page go white screen. And whenever you deactivate it, admin page goes back to normal again.

    Here’s how I solved it.
    1. I found out that this line from /wp-content/plugins/faq-you/faq.php causes the error:

    $questions = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."ot_faq_questions WHERE answer='' ORDER BY id DESC");

    2. I replaced that line with these:

    $query = $wpdb->prepare( "SELECT * FROM %s WHERE answer='' ORDER BY id DESC", "{$wpdb->prefix}ot_faq_questions" );
    $questions = $wpdb->get_results( $query );

    http://wordpress.org/extend/plugins/faq-you/

  • The topic ‘Activating FAQ You plugin causes white screen on wordpress admin page’ is closed to new replies.