• Resolved killerdog

    (@killerdog)


    I love the feature to display captcha AFTER a failed login. So I’m really anxious to test this plugin. Although, after installing this plugin v1.0 on WP v3.9.1 and theme Twenty Fourteen v1.1 with no other plugins activated, I get SQL errors on the plugin settings page, on both tabs like:

    query($sql); } ?>
    set_data_source($table_prefix . 'user_login_history'); $grid->add_select_field('Status'); $grid->set_order('ID desc'); $grid->pagination->set_rows(15); $grid->set_table_attr('width','100%'); $grid->set_col_attr(1,'align','center'); //$grid->set_col_attr(3,'width','100'); $grid->add_html_col("",'Status'); $grid->add_data_col('Username','Username'); $grid->add_data_col('Name','Name'); $grid->add_data_col('Usertype','User type'); $grid->add_data_col('Sinon_time','Date & Time'); $grid->add_data_col('logged_out_time','Logged out'); $grid->add_data_col('Country','Country'); $grid->add_data_col('IP','IP'); $grid->add_data_col('OS','OS'); $grid->add_data_col('Browser','Browser'); $grid->run(); ?>

    and

    = 3) { $newoptions['login_max_trials']= intval($_POST['login_max_trials']); }else { $newoptions['login_max_trials']=$options['login_max_trials']; $saved_options = $saved_options . "
    Note that 'Login Blocker Trials' does not changed because it must be 3 or greater!"; } if( intval($_POST['login_block_time']) >= 3) { $newoptions['login_block_time']= intval($_POST['login_block_time']); }else { $newoptions['login_block_time']=$options['login_block_time']; $saved_options = $saved_options . "
    Note that 'Login Blocker Time' does not changed because it must be 3 or greater!"; } WPS_update_my_options($newoptions); WPS_option_msg($saved_options); } $options= WPS_my_options(); ?>

    Any ideas how to fix?

    https://wordpress.org/plugins/wp-login-security-and-history/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter killerdog

    (@killerdog)

    I found the source of these errors. Our web server has short_open_tag=Off in php.ini. Your plugin often uses (not everywhere though) short PHP tag “<?” instead of long PHP tag “<?php”. I would recommend changing this in your next update, else you might end up needing to support other admins as well. Thanks.

    I can’t view Login History. Please help me.
    thanks

    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\wp-content\plugins\wp-login-security-and-history\controls\pagination.class.php on line 76

    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\wp-content\plugins\wp-login-security-and-history\controls\datagrid.class.php on line 355

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SQL errors’ is closed to new replies.