WordPress.org

Ready to get started?Download WordPress

Forums

Mailing List
Fatal error on line 187 (2 posts)

  1. marianoj
    Member
    Posted 3 years ago #

    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);

    }

  2. erikpbogaerts
    Member
    Plugin Author

    Posted 3 years ago #

    Please try with version 1.2.3

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic