hg / teampass-to-bitwarden

quick and dirty script to export data from teampass to bitwarden
The Unlicense
1 stars 1 forks source link

Problem with running the script via webpage #1

Open borriellogiulio opened 5 days ago

borriellogiulio commented 5 days ago

Hi, I was trying your code on my Teampass Server, but when I access /teampass/sources/export.php on my URL it only shows a white screen and on my logs it outputs the following error:

[Fri Nov 22 15:24:40.855405 2024] [php7:warn] [pid 1376] [client 192.168.122.1:42214] PHP Warning: require_once(sessions.php): failed to open stream: No such file or directory in /var/www/html/teampass/sources/export.php on line 3, referer: http://192.168.122.167/teampass/sources/ [Fri Nov 22 15:24:40.855550 2024] [php7:error] [pid 1376] [client 192.168.122.1:42214] PHP Fatal error: require_once(): Failed opening required 'sessions.php' (include_path='.:/usr/share/php') in /var/www/html/teampass/sources/export.php on line 3, referer: http://192.168.122.167/teampass/sources/ [Fri Nov 22 15:25:01.828405 2024] [php7:warn] [pid 1377] [client 192.168.122.1:55942] PHP Warning: require_once(sessions.php): failed to open stream: No such file or directory in /var/www/html/teampass/sources/export.php on line 3, referer: http://192.168.122.167/teampass/sources/ [Fri Nov 22 15:25:01.828489 2024] [php7:error] [pid 1377] [client 192.168.122.1:55942] PHP Fatal error: require_once(): Failed opening required 'sessions.php' (include_path='.:/usr/share/php') in /var/www/html/teampass/sources/export.php on line 3, referer: http://192.168.122.167/teampass/sources/

Is there maybe a file that I'm missing? Such as a certain "sessions.php"?

hg commented 5 days ago

Hello. You're probably on a different version of Teampass. I don't remember what version we were using, and whatever remained of it has been fully expunged by now, so I can't check it.

As you can see, the "project" (if one can call it that) was written in an hour to quickly migrate from a dying server, and wasn't really tested well. It worked fine with whatever version we were on.

Which Teampass do you have? I can maybe look at fixing this incompatibility over the weekend.

Pietro395 commented 2 days ago

Hello. You're probably on a different version of Teampass. I don't remember what version we were using, and whatever remained of it has been fully expunged by now, so I can't check it.

As you can see, the "project" (if one can call it that) was written in an hour to quickly migrate from a dying server, and wasn't really tested well. It worked fine with whatever version we were on.

Which Teampass do you have? I can maybe look at fixing this incompatibility over the weekend.

Thank you, working with @borriellogiulio we managed to make it work in our version (2.1.27.36). We still want to investigate the export part and then possibly make a pull request.

Thank you

https://github.com/Pietro395/teampass-to-bitwarden