New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

CWP 2.0.61 LTS – List Accounts Empty – JavaScript Syntax Error

Started by Delavegaxxx, Today at 12:25:15 PM

Previous topic - Next topic

Delavegaxxx

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!