Array to string conversion
-
Calling the defaut page of the plugin (tools.php?page=wp-database-backup) I get the following PHP-notice:
Notice: Array to string conversion in /home/.../wp-content/plugins/wp-database-backup/includes/admin/admin_header_notification.php on line 19
Maybe just change in
admin_header_notification.php
(line 19ss):if (strpos((string) $notifier_data, '<notifier>') === false) { $notifier_data = '<?xml version="1.0" encoding="UTF-8"?><notifier><latest>1.0</latest><changelog></changelog>'; }
to:
if ( !in_array('<notifier>', $notifier_data) ) { $notifier_data[] = '<?xml version="1.0" encoding="UTF-8"?><notifier><latest>1.0</latest><changelog></changelog>'; }
or
$notifier_data = '<?xml ...'
WP Database Backup Version: 5.5.1
WP-Version: 5.4.1
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Array to string conversion’ is closed to new replies.