• Resolved beka47

    (@beka47)


    WP 5.7; PHP: 8.0.3; WP Database Backup: 5.7.1
    Changing from PHP 7.4+ to 8+ resulting in a Fatal Error if the plugin ‘WP Database Backup’ is activated. No errors, from WP or other plugins, if ‘WP Database Backup’ is deacitvated.

    Do you have any timetable for PHP-8 full compatibility?
    ThanX for yr plugin.

    Below the Error Message:

    Fatal error: 
    Uncaught TypeError: Illegal offset type in 
    
    /home/.../wp-admin/includes/template.php:1583 Stack trace: 
    #0 /home/.../wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php(324): add_settings_section('wp_db_backup_ma...', '', 'wp_db_backup_se...', Array) 
    #1 /home/.../wp-includes/class-wp-hook.php(292): WPDB_Admin->wp_db_backup_admin_init('') 
    #2 /home/.../wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) 
    #3 /home/.../wp-includes/plugin.php(484): WP_Hook->do_action(Array) 
    #4 /home/.../wp-admin/admin.php(175): do_action('admin_init') 
    #5 /home/.../wp-admin/edit.php(10): require_once('/home/httpd/vho...') 
    #6 {main} thrown in /home.../wp-admin/includes/template.php on line 1583
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thanks for let us know issue, we will try to reflect issue and if any issue will resolve and update.

    Thanks.

    Hello Prashant,

    thank you for your plug-in. It has been very helpful to us. We too are planning an update to php 8 in Q4 of this year. Our initial conversion did result in an error caused by your plug-in. The error message is shown below. Please let me know if there is anything more you need from us to resolve the problem.

    Fatal error: Uncaught TypeError: Illegal offset type in /home/staging/public_html/woo-test/wp-admin/includes/template.php:1589
    Stack trace: #0 /home/staging/public_html/woo-test/wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php(324): add_settings_section(‘wp_db_backup_ma…’, ”, ‘wp_db_backup_se…’, Array)
    #1 /home/staging/public_html/woo-test/wp-includes/class-wp-hook.php(303): WPDB_Admin->wp_db_backup_admin_init(”)
    #2 /home/staging/public_html/woo-test/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #3 /home/staging/public_html/woo-test/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #4 /home/staging/public_html/woo-test/wp-admin/admin.php(175): do_action(‘admin_init’)
    #5 /home/staging/public_html/woo-test/wp-admin/plugins.php(10): require_once(‘/home/staging/…’)
    #6 {main} thrown in /home/staging/public_html/woo-test/wp-admin/includes/template.php on line 1589`

    Hi,

    We have fixed issue with PHP Version 8.

    Please download latest WP Database Backup plugin and let us know.

    Thanks.

    Thread Starter beka47

    (@beka47)

    Thanx for yr work!
    WP-5.8, PHP-8.0.8, on Linux. Downloaded the last (fixed-php-8) version and made a fresh install of yr plugin. But now I get the following error message after right after clicking on the button “Create Database now”:

    Fatal error: Uncaught TypeError: fclose(): 
    Argument 
    #1 ($stream) must be of type resource, bool given in /home/.../wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php:1855 Stack trace: 
    #0 /home/.../wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php(1855): fclose(false) 
    #1 /home/.../wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php(2003): WPDB_Admin->wp_db_backup_create_archive() 
    #2 /home/.../wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php(175): WPDB_Admin->wp_db_backup_event_process() 
    #3 /home/.../wp-includes/class-wp-hook.php(303): WPDB_Admin->wp_db_backup_admin_init('') 
    #4 /home/.../wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) 
    #5 /home/.../wp-includes/plugin.php(470): WP_Hook->do_action(Array) 
    #6 /home/.../wp-admin/admin.php(175): do_action('admin_init') 
    #7 /home/.../wp-admin/tools.php(40): require_once('/home/...') 
    #8 {main} thrown in /home/.../wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php on line 1855 

    Hi,

    Thanks for detail information.

    We will check issue and fix ASAP.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error with PHP 8+’ is closed to new replies.