Report any technical problems you discover and discuss solutions.

Admin screens not saving after upgrade to 3.13.2

  • james.pearce.bath.ac.uk
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
1 jaar 7 maanden geleden #9368 door james.pearce.bath.ac.uk
Admin screens not saving after upgrade to 3.13.2 werd gestart door 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.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
1 jaar 7 maanden geleden #9371 door tom
Thank you very much for providing fixes as well! We'll make sure this ends up in an update a.s.a.p.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

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