• PLUGIN FATAL ERROR
    WP Version 3.7.3
    —————————————————————
    wp-admin/plugins.php
    Warning: array_search(): Wrong datatype for second argument in /mnt/weba/e1/38/51959638/htdocs/www2/wp-content/plugins/all-in-one-event-calendar/all-in-one-event-calendar.php on line 160 Fatal error: Cannot use object of type stdClass as array in /mnt/weba/e1/38/51959638/htdocs/www2/wp-content/plugins/all-in-one-event-calendar/all-in-one-event-calendar.php on line 160
    —————————————————————
    all-in-one-event-calendar.php
    line 145:// new WordPress API is used since 3.7
    $is_json = false;
    if ( version_compare( get_bloginfo( ‘version’ ), ‘3.7’ ) >= 0 ) {
    $is_json = true;
    }
    $plugins = ( $is_json )
    ? json_decode( $r[‘body’][‘plugins’] )
    : unserialize( $r[‘body’][‘plugins’] );
    $basename = plugin_basename( __FILE__ );
    if ( $is_json ) { // object-access
    unset( $plugins->plugins->{$basename} );
    } else { // array-access
    unset( $plugins->plugins[$basename] );
    }
    // numeric is always array
    unset( $plugins->active[ array_search( $basename, $plugins->active ) ] );
    $r[‘body’][‘plugins’] = ( $is_json )
    ? json_encode( $plugins )
    : serialize( $plugins );

    return $r;

    https://www.ads-software.com/plugins/all-in-one-event-calendar/

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