Skip to content
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

Page Already Exist Problem #263

Open
MiuAnnur opened this issue Jun 5, 2024 · 3 comments
Open

Page Already Exist Problem #263

MiuAnnur opened this issue Jun 5, 2024 · 3 comments

Comments

@MiuAnnur
Copy link

MiuAnnur commented Jun 5, 2024

offlinequiz

Hello,
i've problem with this plugin, error "page already exist", probably because i'm upload same (student id number) file twice
i don't know how to resolve this problem event if i delete offline cron job as admin user and upload again it is not solution. it's also not stundent not receive a grade,

@ndunand
Copy link

ndunand commented Jun 5, 2024

Hi @MiuAnnur ,

We also repeatedly encountered this problem. I can't recollect in what case exactly this case arises, but our only solution has always been to tackle this in the Moodle database directly. We have to find the numerical offline quiz ID and the student ID (one entered by the student to map his/her answer page to the Moodle progile, and go with:

DELETE FROM mdl_offlinequiz_scanned_pages WHERE userkey = ### AND offlinequizid = ###;

Note: this is a suggestion and NOT a recommendation, as it's always risky to alter the database in this way. Only proceed if you know and understand what's going on. Last, I am just another Offline Quiz user, and I do not offer any kind of support if something goes wrong following this "trick".

@MiuAnnur
Copy link
Author

MiuAnnur commented Jun 5, 2024

thank you for your quick response

this is my database:
image

@MiuAnnur
Copy link
Author

MiuAnnur commented Jun 5, 2024

i've deleted database where "ok status"
also delete manually doublepage data
your suggestion just solved my problem thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants