[PROBLEM] with adding a new currencies......Localhost, ver16.0.4!

im having this problem and i couldnt fix it because it requires knowledge of php code which i dont have :slight_smile:.
When i fill the spaces and press add button it show a white screen with this message:

Fatal error : Uncaught TypeError: Unsupported operand types: string + int in C:\xampp\htdocs\dolibarr\htdocs\admin\dict.php:860 Stack trace: #0 {main} thrown in C:\xampp\htdocs\dolibarr\htdocs\admin\dict.php on line 860

i also tried to open dic.php file with notepad++ and the code was like this:

// If check ok and action add, add the line
if ($ok && GETPOST(‘actionadd’)) {
if ($tabrowid[$id]) {
// Get free id for insert
$newid = 0;
$sql = “SELECT MAX(”.$tabrowid[$id].") as newid FROM ".MAIN_DB_PREFIX.$tablename;
$result = $db->query($sql);
if ($result) {
$obj = $db->fetch_object($result);
$newid = ($obj->newid + 1);
} else {
dol_print_error($db);
}
}

The line 860 is this: $newid = ($obj->newid + 1);

Im using :

Localhost
Version 16.0.4
OS: Windows 10
PHP v8.0.28

Can anyone tell me what exactly should i do to fix this ?

Try to upgrade to V16.0.5 or 17.0.1