danmarsden / moodle-plagiarism_urkund

Ouriginal plagiarism plugin for Moodle (previously called Urkund)
https://ouriginal.com/
12 stars 19 forks source link

Ouriginal plugin - An error is shown when trying to access the settings page #159

Open acquaalta opened 1 year ago

acquaalta commented 1 year ago

Hi, Moodle version: 4.1.2 Ouriginal plugin version: 4.0.2 (2022111900)

After installing the plugin, I tried to reach its settings page via Site Administration->Plagiarism->Ouriginal plagiarism plugin, but the following error is shown:

An unusual error occurred trying to view a page that does not exist:
/settings.php

It seems that the URL is "https://MOODLE_SERVER_BASE_URL/settings.php", a page that does not exist. I checked at another server with the plugin, that doesn't have this issue, and the the actual URL that should be accessed is: "https://MOODLE_SERVER_BASE_URL/plagiarism/urkund/settings.php", a page that I can access successfully.

The plugin link in the main "Site Administration" plugins area, is leading to the wrong URL. Could you please fix this issue?

Thanks

danmarsden commented 1 year ago

Thanks @acquaalta, now that Ourginal is owned by Turnitin, I'm not sure how much funding they will put into further maintenance/development - but feel free to submit a PR if it annoys you enough! :-)

TheBryanOpen228 commented 1 year ago

Hi @acquaalta & @danmarsden , we are also presenting the mentioned error, with all the plagiarism plugin links from the site administration view, possibly the error is coming from Moodle, as far as I could see debugging the site,lib/classes/plugininfo/plagiarism.php#L50 it is not giving the correct path to the URL, I see that the get_dir() function is practically used only here, maybe it is not working correctly. Therefore it passes a wrong URL and produces Error 404 not found. We are using Moodle version 4.1.3 (Build: 20230424) and Ouriginal plugin version: 4.0.2 (2022111900) as well Note: this brokes both Behat tests. see plagiarism/urkund/tests/behat/enable_disable_urkund.feature & plagiarism/urkund/tests/behat/enable_urkund_module.feature

danmarsden commented 1 year ago

Hi Bryan,

I don't maintain this plugin anymore myself - I tried to transfer the github repository to one of the Turnitin development team who is now responsible but they haven't managed to make that happen yet. Please reach out to your Ouriginal support contact if you would like them to address this.

thanks!