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

Foreign key refers to a non-existent annotations table. #128

Open
gigadep opened this issue Jan 7, 2025 · 0 comments
Open

Foreign key refers to a non-existent annotations table. #128

gigadep opened this issue Jan 7, 2025 · 0 comments

Comments

@gigadep
Copy link

gigadep commented Jan 7, 2025

Moodle Version in use
Moodle 4.5.1

** Plugin Version **
PDF Annotator v1.5 release 7 (2024121200) (and older)

Describe the bug
When we check the foreign keys in Site Administration > Development > XMLDB Editor, we obtain the following messages:

  • The foreign key annotationid on the pdfannotator_comments table refers to a non-existent annotations table.
  • The foreign key annotationid on the pdfannotator_subscriptions table refers to a non-existent annotationsneu table.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Administration > Development > XMLDB Editor'
  2. Click on 'check the foreign keys'
  3. See error in 'Search results'

Expected behavior
No message.

Problem
The problem is due to two errors in the pdfannotator/db/install.xml file (thanks to Christian BOCQUET who found the source of the problem on the French forum)

Solution :

  • Edit the pdfannotator/db/install.xml file like this:
  • replace on line 55, REFTABLE="annotations" with REFTABLE="pdfannotator_annotations"
  • replace on line 128, REFTABLE="annotationsneu" with REFTABLE="pdfannotator_annotations"
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

1 participant