-
Notifications
You must be signed in to change notification settings - Fork 445
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
Bug restoring database in 2.4.4 #1651
Comments
are you sure the software has file access to create that file. |
ok, @DawoudIO . Good question. I repeated the test with other installation. I saw that i can restore a database without photos and the same problem occurs when I try restore database with photos. For my hosting service, the default permissions are 755 for folders and 644 for files. I understand that the 755 folder permission gives to software access to write photos. Is it correct? |
I'm having the same issue with the demo data zip... but I don't get the same error as you... |
@saulowulhynek do you have php-phar installed? |
looks like .tar.gz file do not work... i added an else and all code goes to else for me.. |
No, I don't have php-phar installed. My host don't have this module and don't have any way to install it. Sorry, i don't understand you other comment .... |
@crossan007 we may want to add exec back for people who do not have php-phar |
I try restore a database with tar.gz extension and I get the folow error:
ERROR!
Error making API Call to: /churchcrm/api/database/restore
Error text: unable to decompress gzipped phar archive "/......./public_html/churchcrm/tmp_attach/ChurchCRM-20170109-192219.tar.gz" to temporary file
Stack Trace:
[
"#0 /......./public_html/churchcrm/ChurchCRM/Service/SystemService.php(61): PharData->__construct('/......./...')",
"#1 /......./public_html/churchcrm/api/routes/database.php(14): ChurchCRM\Service\SystemService->restoreDatabaseFromBackup(Array)",
"#2 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#3 /......./public_html/churchcrm/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#4 /......./public_html/churchcrm/vendor/slim/slim/Slim/Route.php(325): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#5 /......./public_html/churchcrm/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#6 /......./public_html/churchcrm/vendor/slim/slim/Slim/Route.php(297): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#7 /......./public_html/churchcrm/vendor/slim/slim/Slim/App.php(443): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#8 /......./public_html/churchcrm/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#9 /......./public_html/churchcrm/vendor/slim/slim/Slim/App.php(337): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#10 /......./public_html/churchcrm/vendor/slim/slim/Slim/App.php(298): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#11 /......./public_html/churchcrm/api/index.php(52): Slim\App->run()",
"#12 {main}"
]
The text was updated successfully, but these errors were encountered: