WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. karlgonzales614
    Member
    Posted 1 year 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 );

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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