• Resolved ibarina

    (@ibarina)


    This is just a bug report. CYAN backup does not work with PHP version 8. It is unable to remove *.log files needed for backup. Also removing old backups does not work.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Greg Ross

    (@gregross)

    Is it only with PHP 8 or did you try it with 7?

    Thread Starter ibarina

    (@ibarina)

    It is only with PHP 8. There is some error report:

    Error Details
    =============
    An error of type E_ERROR was caused in line 1168 of the file /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/cyan-backup.php. Error message: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/cyan-backup.php:1168
    Stack trace:
    #0 /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/includes/page-backups.php(15): CYANBackup->get_real_post_data()
    #1 /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/cyan-backup.php(1144): include_once('...')
    #2 /var/www/localhost/htdocs/wp-includes/class-wp-hook.php(307): CYANBackup->site_backup()
    #3 /var/www/localhost/htdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #4 /var/www/localhost/htdocs/wp-includes/plugin.php(474): WP_Hook->do_action()
    #5 /var/www/localhost/htdocs/wp-admin/admin.php(259): do_action()
    #6 {main}
      thrown
    Plugin Author Greg Ross

    (@gregross)

    Yep, looks like the function has been removed, I’ll take a look and see how hard/easy it is to fix.

    Plugin Author Greg Ross

    (@gregross)

    I’ve found the issue, can you try the fix by replacing your copy of wp-content/plugins/cyan-backup/cyan-backup.php with this one: https://raw.githubusercontent.com/toolstack/cyan-backup/master/cyan-backup.php

    Thread Starter ibarina

    (@ibarina)

    With the provided file, I can now remove old backups. However, the backup still doest not work. It freezes with “Archiving files…” While the .log file ends with

    [2022-03-01 08:18:46] Archiving files...
    [2022-03-01 08:18:46] Using zip (ZipArchive).
    [2022-03-01 08:18:46] Creating /var/backups/www/fitoptivis.20220301.081843.zip.
    • This reply was modified 2 years, 8 months ago by ibarina.
    Thread Starter ibarina

    (@ibarina)

    There also plenty of errors in Apache log:

    [Wed Mar 02 18:17:16.108602 2022] [php:warn] [pid 23773:tid 140415357412928] [client 95.82.139.58:59840] PHP Warning:  Undefined array key "lowiomode" in /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/includes/class-cyan-wp-backuper.php on line 798, referer: https://fitoptivis.eu/wp-admin/admin.php?page=cyan-backup
    [Wed Mar 02 18:17:16.108803 2022] [php:error] [pid 23773:tid 140415357412928] [client 95.82.139.58:59840] PHP Fatal error:  Uncaught ArgumentCountError: ZipArchive::addEmptyDir() expects at least 1 argument, 0 given in /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/includes/class-cyan-wp-backuper.php:629\nStack trace:\n#0 /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/includes/class-cyan-wp-backuper.php(629): ZipArchive->addEmptyDir()\n#1 /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/includes/class-cyan-wp-backuper.php(815): CYAN_WP_Backuper->OpenArchiveFile()\n#2 /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/includes/class-cyan-wp-backuper.php(415): CYAN_WP_Backuper->files_archive()\n#3 /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/cyan-backup.php(603): CYAN_WP_Backuper->wp_backup()\n#4 /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/cyan-backup.php(537): CYANBackup->json_backup()\n#5 /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/includes/class-addrewriterules.php(50): CYANBackup->json_request()\n#6 /var/www/localhost/htdocs/wp-includes/class-wp-hook.php(307): WP_AddRewriteRules->wp()\n#7 /var/www/localhost/htdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()\n#8 /var/www/localhost/htdocs/wp-includes/plugin.php(522): WP_Hook->do_action()\n#9 /var/www/localhost/htdocs/wp-includes/class-wp.php(771): do_action_ref_array()\n#10 /var/www/localhost/htdocs/wp-includes/functions.php(1310): WP->main()\n#11 /var/www/localhost/htdocs/wp-blog-header.php(16): wp()\n#12 /var/www/localhost/htdocs/index.php(17): require('...')\n#13 {main}\n  thrown in /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/includes/class-cyan-wp-backuper.php on line 629, referer: https://fitoptivis.eu/wp-admin/admin.php?page=cyan-backup
    [Wed Mar 02 18:17:16.795865 2022] [php:warn] [pid 16244:tid 140415248307776] [client 95.82.139.58:59842] PHP Warning:  Undefined array key 5 in /var/www/localhost/htdocs/wp-content/plugins/cyan-backup/cyan-backup.php on line 561, referer: https://fitoptivis.eu/wp-admin/admin.php?page=cyan-backup
    
    Plugin Author Greg Ross

    (@gregross)

    Looks like the zip archive library is broken, I’ll see if I can track down an update.

    Plugin Author Greg Ross

    (@gregross)

    Ok, I think I’ve solved the issue, can you try version from github?

    https://github.com/toolstack/cyan-backup/archive/refs/heads/master.zip

    Thread Starter ibarina

    (@ibarina)

    Wow, now it works! It completed with: Backup complete! Thank you!

    • This reply was modified 2 years, 8 months ago by ibarina.
    Plugin Author Greg Ross

    (@gregross)

    Np, I’ll push out a release this weekend.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘CYAN backup does not work with PHP 8’ is closed to new replies.