Skip to content

Can't import texts #33

Closed
Closed

Description

@rc-ops

Extracted from #31

  1. If I try to import a long text (doesn't matter if I paste or select a txt file), when I select NEXT STEP: Check the texts I get an error message and as you can see, it doesn't seem to process the text, it returns Length: 0 Bytes, and two of the buttons here don't work (Cancel and Go Back), only the Create 1 text, which returns us to the UI problem.

Notice: Undefined index: TextTags in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\lwt\long_text_import.php on line 30
Warning: Invalid argument supplied for foreach() in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\lwt\long_text_import.php on line 67

2

1.1 After selecting Create 1 text, since it's null, I get

Fatal Error in SQL Query: insert into texts (TxLgID, TxTitle, TxText, TxAnnotatedText, TxAudioURI, TxSourceURI) values( 1, 'Mondaiji 2', NULL, '', NULL, NULL)
Error Code & Message: [1048] Column 'TxText' cannot be null

Backtrace:

#0  do_mysqli_query(insert into texts (TxLgID, TxTitle, TxText, TxAnnotatedText, TxAudioURI, TxSourceURI) values( 1, 'Mondaiji 2', NULL, '', NULL, NULL)) called at [C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\lwt\inc\database_connect.php:60]
#1  runsql(insert into texts (TxLgID, TxTitle, TxText, TxAnnotatedText, TxAudioURI, TxSourceURI) values( 1, 'Mondaiji 2', NULL, '', NULL, NULL), ) called at [C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\lwt\long_text_import.php:160]
  • The only way I can import a text is if paste it in New Text, it can't be through Long Text. Note that here the Check button more or less... works? However it graphically represents the line breaks and the line numbers. Is that intended?

3

  • I can also see that it returns a word list and non-word list which is cool and would that mean MeCab is working... ?
  • But since it doesn't parse, nor can I select it to parse manually, it doesn't save any new terms.

Desktop (please complete the following information):

  • Same setup as last time, except this time Chromium has another version
  • OS: Windows 11 21H2 and Windows 10 20H2
  • Browser: Chromium 101.0.4951.64
  • EasyPHPDevserver-17 PHP 7.1.3

Activity

  1. HugoFara commented on Jun 4, 2022

    @HugoFara
    Owner

    Hello!

    I have been trying to solve the long_text_import this issue today, without much success for Japanese. For other languages, I managed to fix problems introduced in 2.4.0, but for Japanese I'm still facing a formatting issue.

    That being said, the main problem is that the code is a mess, so it's always difficult to sort out who does what...

    For the normal text import, the data displayed when clicking Check are what was needed, so it it means MeCab is working fine. I'm not sure why you are still unable to save the text.

    I hope to release the bug fix version on Monday, I will give you more information there.

  2. added a commit that references this issue on Jun 6, 2022
    b3aa0c3
  3. added a commit that references this issue on Jun 9, 2022
    f826c4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions