Skip to content
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

Backup script "script.backup.php" and backups from team pass portal isnt working #1937

Closed
sasiharshav opened this issue Sep 27, 2017 · 1 comment
Labels

Comments

@sasiharshav
Copy link

Hi,

Not sure if this is already reported but i am experiencing issues in taking database backup via "script.backup.php" and also from teampass web portal. Experiencing below errors:

  1. When executing "script.backup.php", getting error

root@testnode:/var/www/html/teampass/backups# php -f script.backup.php
PHP Fatal error: Uncaught Error: Call to undefined function defuse_return_decrypted() in /var/www/html/teampass/backups/script.backup.php:22
Stack trace:
#0 {main}
thrown in /var/www/html/teampass/backups/script.backup.php on line 22

  1. When trying to take backup from teampass web portal using default options in " Settings for optional backup script" i get "File not found: /var/www/html/teampass/backups/.sql" error.

Steps to reproduce

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:
Ubuntu 16.04

Web server:

2.4.18-2ubuntu3.5

Database:

5.7.19

PHP version:
PHP 7.0.22-0ubuntu0.16.04.1

Teampass version:
2.1.27

Teampass configuration file:

/var/www/html/teampass/backups/script.backup.php

Updated from an older Teampass or fresh install:
freshinstall

PLEASE attach to this message the file /includes/config/tp.config.php.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

Log from the web-browser developer console (CTRL + SHIFT + i)

Insert the log here and especially the answer of the query that failed.
@nilsteampassnet
Copy link
Owner

Bug is confirmed when using this file in standalone.

I will provide a fix tonight.

nilsteampassnet added a commit that referenced this issue Sep 28, 2017
Fix for #1937
nilsteampassnet added a commit that referenced this issue Sep 28, 2017
Fix for #1937, #1939
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants