Support » Plugin: WP Database Backup » Error message

  • Resolved grimbot

    (@grimbot)


    Error from your plugin. I’m upto date.

    Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-content/plugins/wp-database-backup/includes/admin/admin_header_notification.php:15 Stack trace: #0 /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php(315): include() #1 /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-includes/class-wp-hook.php(286): WPDB_Admin->wp_db_backup_settings_page(”) #2 /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-admin/admin.php(253): do_action(‘tools_page_wp-d…’) #5 /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-admin/tools.php(10): require_once(‘/srv/disk6/2117…’) #6 {main} thrown in /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-content/plugins/wp-database-backup/includes/admin/admin_header_notification.php on line 15
    The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Prashant Walke

    (@walkeprashant)

    Thanks for informing. We will try to reproduce issue and resolve issue ASAP.

    Plugin Author Prashant Walke

    (@walkeprashant)

    Insted of following code
    (wp-content/plugins/wp-database-backup/includes/admin/admin_header_notification.php:15 )

    if (function_exists(‘curl_init’)) { // if cURL is available, use it…
    $ch = curl_init($notifier_file_url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    $notifier_data = curl_exec($ch);
    curl_close($ch);
    } else {
    @$notifier_data = file_get_contents($notifier_file_url); // …if not, use the common file_get_contents()
    }

    You can change it to

    @$notifier_data = file_get_contents($notifier_file_url);

    Please try this. If still facing issue then let me know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error message’ is closed to new replies.