Support » Plugin: Email Subscribers & Newsletters » Fatal error on subscriber export

  • Resolved xxxLesy

    (@xxxlesy)


    When trying to export subscribers (Subscribers \ Export) I get the following error. I believe this worked before the latest update (3.4.5).

    Fatal error: Call to a member function get_var() on a non-object in /home/****/public_html/nagrade/wp-content/plugins/email-subscribers/subscribers/view-subscriber-export.php on line 24

    **Update: I managed to fix the issue by commenting out the following lines:

    // WordPress Registered Users
    //$cnt_users = 0;
    //$cnt_users = $wpdb->get_var( “SELECT count(DISTINCT user_email) FROM “. $wpdb->prefix . “users” );

    // Users who comments on blog posts
    //$cnt_comment_author = 0;
    //$cnt_comment_author = $wpdb->get_var( “SELECT count(DISTINCT comment_author_email) FROM “. $wpdb->prefix . “comments WHERE comment_author_email != ”” );

    • This topic was modified 1 year, 9 months ago by  xxxLesy.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error on subscriber export’ is closed to new replies.