HugoFara / lwt

Learn languages by reading! A language learning app stemmed from Learning with Texts (LWT).
https://hugofara.github.io/lwt/
The Unlicense
168 stars 19 forks source link

Export terms to Anki return 0 bytes file #93

Closed makeProjectGreatAgain closed 1 year ago

makeProjectGreatAgain commented 1 year ago

Describe the bug Export terms to Anki return 0 bytes file

To Reproduce Steps to reproduce the behavior:

Desktop (please complete the following information):

Additional context Minor bug. It's possible to use Export ALL/MARKED Terms (TSV) instead.

docker logs lwt

[Sat Feb 18 17:56:23.745899 2023] [php:warn] [pid 30] [client 172.21.0.1:37956] PHP Warning:  file_get_contents(UNLICENSE.md): Failed to open stream: No such file or directory in /var/www/html/inc/session_utility.php on line 4932, referer: http://localhost:8010/edit_words.php
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "POST /edit_words.php HTTP/1.1" 200 5315 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /css/jquery.tagit.css HTTP/1.1" 200 693 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /css/styles.css HTTP/1.1" 200 1889 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /css/feed_wizard.css HTTP/1.1" 200 825 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /css/jquery-ui.css HTTP/1.1" 200 12313 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /js/jquery.scrollTo.min.js HTTP/1.1" 200 1648 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /js/jquery.js HTTP/1.1" 200 34113 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /js/jquery.jeditable.mini.js HTTP/1.1" 200 2544 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /js/tag-it.js HTTP/1.1" 200 3294 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /js/overlib/overlib_mini.js HTTP/1.1" 200 10794 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /js/jquery-ui.min.js HTTP/1.1" 200 64240 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:23 +0000] "GET /js/pgm.js HTTP/1.1" 200 22076 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /img/lwt_icon.png HTTP/1.1" 304 181 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/plus-button.png HTTP/1.1" 200 867 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/funnel.png HTTP/1.1" 200 827 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/placeholder.png HTTP/1.1" 200 425 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/lightning.png HTTP/1.1" 200 915 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/waiting2.gif HTTP/1.1" 200 1131 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/sticky-note--pencil.png HTTP/1.1" 200 922 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/minus-button.png HTTP/1.1" 200 735 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/status-busy.png HTTP/1.1" 304 180 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:24 +0000] "GET /icn/status.png HTTP/1.1" 200 685 "http://localhost:8010/edit_words.php" "Mozilla"
 172.21.0.1 - - [18/Feb/2023:17:56:33 +0000] "POST /edit_words.php HTTP/1.1" 200 423 "http://localhost:8010/edit_words.php" "Mozilla"
HugoFara commented 1 year ago

I may investigate this issue in two week, as I don't have access to my usual hardware, I am currently not able to solve Docker issues.

For now I can say the following:

I have no clue what may be the cause of the problem, but as TSV is still working, it may be relatively easy to fix :thinking:

Anyway thank for the bug report, fixing as soon as I can!

HugoFara commented 1 year ago

Hi! I have been unable to reproduce this bug, everything seems fine on my side. Can you give me more details about the language your are studying?