Report any technical problems you discover and discuss solutions.

Admin screens not saving after upgrade to 3.13.2

  • james.pearce.bath.ac.uk
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 1 an 7 mois #9368 par james.pearce.bath.ac.uk
Admin screens not saving after upgrade to 3.13.2 a été créé par james.pearce.bath.ac.uk
We recently upgraded our test site to 3.13.2 for testing before release to our production server.

We had some issues with the site details admin screen and the user roles configuration screens not saving the updates to the database, although the message back was saying the save was successful. I did some investigation and it looked like some of the database queries were not having the table prefix applied so the dtabase data was not updating correctly.

I found the following (the line numbers may be off slightly as I had to add debug code to identify the issues) -
* in website_code/php/management/modify_roles.php at line #24 I changed to
$query = "select distinct roleid from {$xerte_toolkits_site->database_table_prefix}role where name in ({$questionMarks})";
* in website_code/php/management/modify_roles.php at line #34 I changed to
$query = "select distinct roleid from {$xerte_toolkits_site->database_table_prefix}logindetailsrole where userid=?";
* in website_code/php/management/modify_roles.php at line #81 I changed to
$query = "delete from {$xerte_toolkits_site->database_table_prefix}logindetailsrole where userid=? and roleid in ({$questionMarks})";
* in website_code/php/management/modify_roles.php at line #81 I changed to
$query = "insert into {$xerte_toolkits_site->database_table_prefix}logindetailsrole (userid, roleid) values " . $questionMarks;
* in website_code/php/user_library.php at line #373 I changed to
$query = "select name from {$prefix}role join {$prefix}logindetailsrole on {$prefix}role.roleid={$prefix}logindetailsrole.roleid where {$prefix}logindetailsrole.userid=?;";

I hope this helps anyone who has similar issues.

PS I like the new feature to give admin roles to more users.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 7 mois #9371 par tom
Thank you very much for providing fixes as well! We'll make sure this ends up in an update a.s.a.p.

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.167 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo