Never mind. I discovered that debug mode got turned on somehow. Turning it back off hides the error messages.
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.
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
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.