Report any technical problems you discover and discuss solutions.

table_prefix not being set properly in UoN_LTI.php

  • UsernameNumber
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
12 jaren 6 dagen geleden #2093 door UsernameNumber
table_prefix not being set properly in UoN_LTI.php werd gestart door UsernameNumber
After seeing this post , I started messing around with the LTI settings in xerte, and found that I get an error when I try to list the LTI keys:
Code:
Error No: 1146 - 0MySQL error Table 'xerte.lti_keys' doesn't exist Query: #0 /www/training.nocc/html/xerte/website_code/php/management/site.php(220): UoN_LTI->get_lti_keys() #1 {main}

That function runs this query:
Code:
$this->db->prepare("SELECT * FROM " . $this->parm['table_prefix'] . "lti_keys $extra")

But instead of taking table_prefix from databases.php, as far as I can tell it's initialized to an empty string at the top of the file and never updated after that. I've had the same prefix since installation, so even if the installer should have hard-set this value, it looks like that didn't happen.

To confirm, I added a line to get_lti_keys to make it print its query to Apache's error log, and sure enough, no prefix is used.

I manually set table_prefix on line 21 of LTI/ims-lti/UoN_LTI.php, and so far things seem to be working now.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 6 dagen geleden #2096 door tom
Thank you for the heads up. I'll log it as a bug.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.152 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo