• the plugin “Mailing List” crashes on installation:


    Fatal error: Cannot redeclare zing_mailz_uninstall() in /path/to/wordpress/wp-content/plugins/mailz/mailz.php on line 187

    see line 187:


    function zing_mailz_uninstall() {

    global $wpdb;

    $prefix=$wpdb->prefix.ZING_MAILZ_PREFIX;

    $rows=$wpdb->get_results("show tables like '".$prefix."%'",ARRAY_N);

    if (count($rows) > 0) {

    foreach ($rows as $id => $row) {

    if (strpos($row[0],'_mybb_')===false && strstr($row[0],'_ost_')===false) {

    $query="drop table ".$row[0];

    $wpdb->query($query);

    }

    }

    }

    $ids=get_option("zing_mailz_pages");

    $ida=explode(",",$ids);

    foreach ($ida as $id) {

    wp_delete_post($id);

    }

    delete_option("zing_mailz_version",ZING_VERSION);

    delete_option("zing_mailz_pages",ZING_VERSION);

    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Mailing List] Fatal error on line 187’ is closed to new replies.