WordPress.org

Ready to get started?Download WordPress

Forums

WP-DBManager
Undefined Variable warning (5 posts)

  1. heather.m
    Member
    Posted 3 years ago #

    I'm getting the following error messages on he database information page in wp admin:

    Notice: Undefined variable: no in /mnt/stor1-wc1-dfw1/371199/387128/wptest.ctsed.com/web/content/wp-content/plugins/wp-dbmanager/database-manager.php on line 97

    Notice: Undefined variable: no in /mnt/stor1-wc1-dfw1/371199/387128/wptest.ctsed.com/web/content/wp-content/plugins/wp-dbmanager/database-manager.php on line 102

    Notice: Undefined variable: row_usage in /mnt/stor1-wc1-dfw1/371199/387128/wptest.ctsed.com/web/content/wp-content/plugins/wp-dbmanager/database-manager.php on line 110

    Notice: Undefined variable: data_usage in /mnt/stor1-wc1-dfw1/371199/387128/wptest.ctsed.com/web/content/wp-content/plugins/wp-dbmanager/database-manager.php on line 111

    Notice: Undefined variable: index_usage in /mnt/stor1-wc1-dfw1/371199/387128/wptest.ctsed.com/web/content/wp-content/plugins/wp-dbmanager/database-manager.php on line 112

    Notice: Undefined variable: overhead_usage in /mnt/stor1-wc1-dfw1/371199/387128/wptest.ctsed.com/web/content/wp-content/plugins/wp-dbmanager/database-manager.php on line 113

    Similar messages appear on every other page of the database admin panel. Any suggestions?

    http://wordpress.org/extend/plugins/wp-dbmanager/

  2. heather.m
    Member
    Posted 3 years ago #

    Never mind. I discovered that debug mode got turned on somehow. Turning it back off hides the error messages.

  3. Ken
    Member
    Posted 3 years ago #

    Running in WP_DEBUG is intended to help catch this sort of error and in my test environment I always run with it on.

    The cause of these messages should be corrected in the plugin.

    I was about to post a message about this when I saw there was already one here.

  4. Ken
    Member
    Posted 3 years ago #

    I'm seeing other warnings as well. WP_DEBUG should be turned on in the plugin development environment so these errors can be cleaned up.

    [Fri May 06 08:36:31 2011] [error] [client ::1] PHP Notice:  Undefined index: do in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/database-backup.php on line 39, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/database-manager.php
    [Fri May 06 08:36:54 2011] [error] [client ::1] PHP Notice:  Undefined index: do in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/database-backup.php on line 39, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/database-manager.php
    [Fri May 06 08:37:20 2011] [error] [client ::1] PHP Notice:  Undefined index: Submit in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/wp-dbmanager.php on line 385, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/database-backup.php
    [Fri May 06 08:40:05 2011] [error] [client ::1] PHP Notice:  Undefined variable: folder_content in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/wp-dbmanager.php on line 280
    sh: /usr/local/mysql/bin: is a directory
    [Fri May 06 08:40:05 2011] [error] [client ::1] PHP Warning:  fread(): Length parameter must be greater than 0 in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/wp-dbmanager.php on line 102
    [Fri May 06 08:40:12 2011] [error] [client ::1] PHP Notice:  Undefined index: do in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/database-backup.php on line 39, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/wp-dbmanager.php
    [Fri May 06 08:40:31 2011] [error] [client ::1] PHP Notice:  Undefined index: do in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/database-manage.php on line 39, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/database-backup.php
    [Fri May 06 08:40:31 2011] [error] [client ::1] PHP Notice:  Undefined variable: folder_content in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/wp-dbmanager.php on line 280, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/database-backup.php
    [Fri May 06 08:40:31 2011] [error] [client ::1] PHP Notice:  Undefined variable: no in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/database-manage.php on line 171, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/database-backup.php
    [Fri May 06 08:40:31 2011] [error] [client ::1] PHP Notice:  Undefined variable: no in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/database-manage.php on line 176, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/database-backup.php
    [Fri May 06 08:40:31 2011] [error] [client ::1] PHP Notice:  Undefined variable: totalsize in /Users/ken/Sites/wordpress/wp-content/plugins/wp-dbmanager/database-manage.php on line 186, referer: http://localhost/~ken/wordpress/wp-admin/admin.php?page=wp-dbmanager/database-backup.php
  5. gxxaxx
    Member
    Posted 3 years ago #

    I am trying to debug my theme and got tired of seeing debug messages from my wp-dbmanger plugin.

    So inserted the following code:

    function cron_dbmanager_reccurences($schedules) {
    
    if (!isset($backup_options['repair']) || !isset($backup_options['repair_period'])) {
                    $repair = 0;
            } else {
                    $repair = intval($backup_options['repair'])*intval($backup_options['repair_period']);
            }

    No clue why repair and repair_period is missing from $backup_options. So this is not a fix per se. Just a way to shut up the debug.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic