WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: BackWPup] Doesn't save all tables (3 posts)

  1. tommix
    Member
    Posted 4 years ago #

    Hi thanks for plugin. I have in my wp database added 2 tables bymyself manually. When i'm creating new task plugin shows those tables ine xclude list, i uncheck them, but when i edit my task-it always shows as checked so tables are not backedup.

    and my tables do not have wp prefix..maybe this causes problems?

    http://wordpress.org/extend/plugins/backwpup/

  2. tommix
    Member
    Posted 4 years ago #

    I've opened the options-jobs.php

    and deleted this

    `<tr valign="top">
    <th scope="row"><label for="dbexclude"><?PHP _e('Exclude Database Tables:','backwpup'); ?></label></th><td>
    <?php
    $tables=$wpdb->get_col('SHOW TABLES FROM '.DB_NAME.'');
    if (!isset($jobs[$jobid]['dbexclude'])) { //def.
    foreach ($tables as $table) {
    if (substr($table,0,strlen($wpdb->prefix))!=$wpdb->prefix)
    $jobs[$jobid]['dbexclude'][]=$table;
    }
    }
    foreach ($tables as $table) {
    if ($wpdb->backwpup_logs<>$table)
    echo ' <input class="checkbox" type="checkbox"'.checked(in_array($table,(array)$jobs[$jobid]['dbexclude']),true,false).' name="dbexclude[]" value="'.$table.'"/> '.$table.'';
    }

    ?>
    </td></tr>`

    as i see it adds all tables that has no wp preffix. i also deleted

    options-save.php

    if (isset($_POST['dbexclude']))
    		$jobs[$jobid]['dbexclude']=array_unique((array)$_POST['dbexclude']);
  3. Daniel Hüsken
    Member
    Posted 4 years ago #

    I have Fiexed it in the dev. version.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags