Title: Restore: Common thrown error due to backup path · Issue #17 · BookStackApp/system-cli · GitHub
Open Graph Title: Restore: Common thrown error due to backup path · Issue #17 · BookStackApp/system-cli
X Title: Restore: Common thrown error due to backup path · Issue #17 · BookStackApp/system-cli
Description: Getting a few reports of scenarios like the one here: https://www.reddit.com/r/BookStack/comments/1de66kq/using_the_bookstack_system_cli_restore_command/ PHP Fatal error: Uncaught TypeError: Cli\Services\BackupZip::__construct(): Argumen...
Open Graph Description: Getting a few reports of scenarios like the one here: https://www.reddit.com/r/BookStack/comments/1de66kq/using_the_bookstack_system_cli_restore_command/ PHP Fatal error: Uncaught TypeError: Cli\Se...
X Description: Getting a few reports of scenarios like the one here: https://www.reddit.com/r/BookStack/comments/1de66kq/using_the_bookstack_system_cli_restore_command/ PHP Fatal error: Uncaught TypeError: Cli\Se...
Opengraph URL: https://github.com/BookStackApp/system-cli/issues/17
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Restore: Common thrown error due to backup path","articleBody":"Getting a few reports of scenarios like the one here: https://www.reddit.com/r/BookStack/comments/1de66kq/using_the_bookstack_system_cli_restore_command/\r\n\r\n```\r\n PHP Fatal error: Uncaught TypeError: Cli\\Services\\BackupZip::__construct(): Argument #1 ($filePath) must be of type string, bool given, called in phar:///var/www/bookstac k/bookstack-system-cli/src/Commands/RestoreCommand.php on line 52 and defined in phar:///var/www/bookstack/bookstack-system-cli/src/Services/BackupZip.php:10\r\n0 phar:///var/www/bookstack/bookstack-system-cli/src/Commands/RestoreCommand.php(52): Cli\\Services\\BackupZip->__construct()\r\n```\r\n\r\nBut also got reports of it working with a valid path.\r\nMight be an issue in path resolution, especially if relative?\r\nEither way, looks like better validation of backup path is needed.","author":{"url":"https://github.com/ssddanbrown","@type":"Person","name":"ssddanbrown"},"datePublished":"2024-06-20T16:57:23Z","url":"https://github.com/BookStackApp/system-cli/issues/17"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7b7e1916-48b0-6bff-182b-d0c5e5ffdc47 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D4E:2E24C3:24E0B16:335A5A2:6AFD3CF1 |
| html-safe-nonce | 51649ad2e4e033872ec09d71cc76f5a4c6859f65aa44e60d66d1f090b04e1449 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDRFOjJFMjRDMzoyNEUwQjE2OjMzNUE1QTI6NkFGRDNDRjEiLCJ2aXNpdG9yX2lkIjoiNjE2MDE1ODUyMDg0Mzc3OTMxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a68c444ad0d8973117d166d7d9e417e88ab43bd04e266bc74d1ffbf18ae180ba |
| hovercard-subject-tag | issue:2364878307 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/BookStackApp/system-cli/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c0427627f875a0c165e2ea560239dd60881fb973f93b8f4377dfa4a8cd1257bd/BookStackApp/system-cli/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c0427627f875a0c165e2ea560239dd60881fb973f93b8f4377dfa4a8cd1257bd/BookStackApp/system-cli/issues/17 |
| og:image:alt | Getting a few reports of scenarios like the one here: https://www.reddit.com/r/BookStack/comments/1de66kq/using_the_bookstack_system_cli_restore_command/ PHP Fatal error: Uncaught TypeError: Cli\Se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ssddanbrown |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/BookStackApp/system-cli git https://github.com/BookStackApp/system-cli.git |
| octolytics-dimension-user_id | 20912696 |
| octolytics-dimension-user_login | BookStackApp |
| octolytics-dimension-repository_id | 611825433 |
| octolytics-dimension-repository_nwo | BookStackApp/system-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 611825433 |
| octolytics-dimension-repository_network_root_nwo | BookStackApp/system-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width