-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ncp-web backups.php crashes #1729
Comments
Ping... Any suggestions? The problem continues and the solution to remove the backup file from the configured folder still works. However, that's not the same as having it work properly. |
Ping... This bug continues in NextcloudPi version v1.51.1 update. |
I see the same problem in v1.52.0. Cleaning up the backup folder solves the problem till a new backup is made. |
Thanks for reporting! I'm currently very short on time but will try to look into this issue on the weekend. |
The bug continues in NCP v1.52.1 |
The bug continues in NCP v1.52.2 |
in NCP v1.51.4 a similar issue occurs when the system has a corrupted Looking at the code, it seems like adding a check to ensure that Thanks for your hard work on a great project! |
Solved the problem for me. Thank you, @Halloran !! |
NextCloud v25.0.3
NextCloudPi v1.51.0
Debian 11.6
PHP 8.1-fpm
Problem:
Nextcloudpi web UI (System Info screen) crashes when one or more backup files with proper name syntax (nextcloud-bkp_yyyymmdd_dddddddddd.tar.gz) are present in the configured nc-backup.cfg DESTDIR directory.
Result:
Initial System Info screen collects information (spinning mouse icon). It then shows status information but immediately goes blank with the message: "Something went wrong. Try refreshing the page"
I can navigate left menu to other apps, but returning to System Info screen is always blank. After hard browser refresh (ctrl-shift-R with Firefox), the screen collects information and then goes blank with message again.
Error message in error.log:
[Sun Feb 05 20:03:17.301164 2023] [proxy_fcgi:error] [pid 4438] [client 192.168.50.1:52012] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/ncp-web/backups.php:76\nStack trace:\n#0 /var/www/ncp-web/ncp-launcher.php(146): include()\n#1 {main}\n thrown in /var/www/ncp-web/backups.php on line 76'
Note: removing the backup files from the configured directory, followed by hard browser refresh clears the error and displays system information.
The text was updated successfully, but these errors were encountered: