Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: Delavegaxxx on December 02, 2026, 12:25:15 PM

Title: CWP 2.0.61 LTS – List Accounts Empty – JavaScript Syntax Error
Post by: Delavegaxxx on December 02, 2026, 12:25:15 PM
Hello CWP Team,

After updating to CWP 2.0.61 LTS, the List Accounts table is completely empty, although all 23 hosting accounts are present in the database.

**Server environment:**
- AlmaLinux 8.10
- CWP Pro 2.0.61 LTS
- PHP 8.3.37
- ionCube Loader 15.5.1

**Browser console error:**

Uncaught SyntaxError: Unexpected token 'else'

index.php?module=list_accounts:1454

**Root cause identified:**

The JavaScript function deleteAccount(form, username) contains an orphaned else block following the new Reseller A7 implementation.

Incorrect code:

```javascript
return true;
}else{
    return false;
}
}
```

Proposed correction:

```javascript
return true;
}
}
```

The new reseller safety checks and confirmation logic should remain unchanged.

**Diagnostics performed:**
- All 23 hosting accounts are present in root_cwp.user.
- Database table integrity check returns OK.
- CWP services are running normally.
- The List Accounts page returns HTTP 200.
- DataTables assets are present.
- No account-list AJAX request is initiated.
- Server reboot did not resolve the issue.

The affected module is:

/usr/local/cwpsrv/htdocs/resources/admin/modules/list_accounts.php

Since the module is ionCube-encoded, we cannot apply the correction directly. The proposed JavaScript correction has not yet been tested.

Please investigate and release an official hotfix.

Thank you!