Activating FAQ You plugin causes white screen on wordpress admin page (1 post)

  1. karlgonzales614
    Posted 3 years ago #

    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 );


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by karlgonzales614
  • This topic is not resolved
  • WordPress version: 3.5.1