• Dear Simple Login Log developers,

    after upgrading to WP 4.0 the plugin does not work anymore.
    The page wp-admin/users.php?page=login_log simple shows a white screen instead of a table with the description of the logins.

    With debug mode ON, I see that it generates the following error which was not the case before WP 4.0:

    Fatal error: Call to protected method WP_List_Table::view_switcher() from context ‘SimpleLoginLog’ in /data/wp-content/plugins/simple-login-log/simple-login-log.php on line 574

    I solved the issue by commenting out the call to view-switcher() and replace it with:

    $modes = array('list'    => __( 'List View' ), 'excerpt' => __( 'Excerpt View' ));
    ?>
    <input type="hidden" name="mode" value="<?php echo esc_attr( $current_mode ); ?>" />
    <div class="view-switch">
    <?php
    	foreach ( $modes as $mode => $title )
    	{	$classes = array( 'view-' . $mode );
    		if ( $current_mode == $mode )
    			$classes[] = 'current';
    		printf("<a href='%s' class='%s' id='view-switch-$mode'><span class='screen-reader-text'>%s</span></a>\n", esc_url( add_query_arg( 'mode', $mode ) ), implode( ' ', $classes ), $title);
    	}
    ?>
    </div>

    Which is the content of the function view_switcher().

    Hope there will be an update for the plugin asap that is compatible with WP 4.0.

    Kind regards,
    Ivo Bleylevens
    Maastricht University

    https://wordpress.org/plugins/simple-login-log/

  • The topic ‘Plugin incompatible with WP 4.0 ?’ is closed to new replies.