-
Notifications
You must be signed in to change notification settings - Fork 3
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
update stopword.php #1
Conversation
Warning: include(../stemmer/stemmer.php): failed to open stream: No such file or directory
Is the original |
Yes, it throwing error, and i found en.php also throwing error.
What moodle version this plugin compatible with? I'm testing it on moodle
4.1
…On Tue, 31 Jan 2023, 5:43 pm Thoriq Adillah, ***@***.***> wrote:
Is the original include('./../stemmer.php'); in stemmer/en/en.php and
include('../stemmer/stemmer.php'); in stopword/stopword.php throwing
error?
Is the include('./../stemmer.php'); in stemmer/id/id.php throwing error
too?
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKUNJYLUN2MSIKZPCK4JNLWVDNEFANCNFSM6AAAAAAUMBXBNE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
4.1 should be fine. This plugin developed on v4.0 Can you try on your machine to change the include both on stopword and stemmer with the following code? global $CFG;
require_once($CFG->dirroot.'/question/type/essaysimilarity/nlp/preprocessing/stemmer/stemmer.php'); If that's working, I might change the |
I made the change to the code, and there are no longer any warning errors.
I try to preview the question this warning error came out
Warning: Undefined array key "format" in
/question/type/essaysimilarity/question.php on line 136
…On Tue, 31 Jan 2023 at 18:36, Thoriq Adillah ***@***.***> wrote:
4.1 should be fine. This plugin developed on v4.0
It's pretty weird because i have no problem with the include. I even try
it without using include whatsoever and the stopword and stemmer is still
working.
What OS are you using? I'm using linux
Can you try on your machine to change the include both on stopword and
stemmer with the following code?
global $CFG;require_once($CFG->dirroot.'/question/type/essaysimilarity/nlp/preprocessing/stemmer/stemmer.php');
If that's working, I might change the include to require_once with
absolute path instead of relative path
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKUNJ2M7J4EZ4PIKICXXHDWVDTJBANCNFSM6AAAAAAUMBXBNE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Can you give me the steps to reproduce the error? |
hi, I have updated the code with the correct variable, in question.php it
should use answerformat
also in renderer.php line 186, there is another missing variable $plagiarism
Now all the warnings and the plugin seem to be working accordingly. I will
do some more tests on the plugins.
the step to reproduce the error :
You just need to create the question, preview it and then try to submit the
answer. once submit the warning error will show. (need to enable moodle
debug mode)
…On Wed, 1 Feb 2023 at 11:48, Thoriq Adillah ***@***.***> wrote:
Can you give me the steps to reproduce the error?
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKUNJ224HD46QTSMHE6SD3WVHMKBANCNFSM6AAAAAAUMBXBNE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Woops, a typo for sure. I thought it was |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Warning: include(../stemmer/stemmer.php): failed to open stream: No such file or directory