# Complete Upload Package — everything, all sessions

**`wbmcz_COMPLETE_update.zip` — 45 PHP files.** This one package replaces every
earlier zip. Upload it once and nothing can be missing.

---

## The fastest, safest way

1. **cPanel → File Manager** → go to your site root (the folder containing `index.php` and `config.php`)
2. **Upload** → `wbmcz_COMPLETE_update.zip`
3. Right-click the zip → **Extract** → choose **Overwrite / Replace all**
4. Delete the zip
5. Open `https://wbmcz.online/servercheck.php` → clear OPcache if it offers → everything should be green
6. Hard-refresh: `Ctrl + Shift + R`

The zip carries the correct folder structure, so `includes/`, `admin/`, `seller/`
and the root files all land exactly where they belong. No manual folder hunting.

---

## What's inside — 45 PHP files

### Root — 10

```
add_money.php          category.php         earning_report.php ★
newmigration.php ★     newproductmigration.php ★
profile.php            servercheck.php ★    subscription.php
wallet.php             wallettomigration.php ★
```

### `includes/` — 8   ← **the folder people miss**

```
includes/bank.php ★          withdrawal engine
includes/bank_view.php ★     Wallet to Bank + Wallet History UI
includes/credentials.php ★   ID card + certificate
includes/earning_view.php ★  earning report
includes/wallet.php ★        dual wallet engine
includes/functions.php       referral → virtual wallet
includes/shares.php          share engine + purchase gates
includes/theme.php           ALL sidebar menus
```

If these 8 are missing, **nothing** works — menus vanish, pages 404 or throw
"Call to undefined function".

### `seller/` — 6

```
seller/earning_report.php ★   ← this is the one that 404'd
seller/wallet.php             Virtual Wallet, Wallet History, Wallet to Bank tabs
seller/profile.php            ID card + certificate tabs
seller/services.php           rejection reason
seller/index.php              deposits through the ledger
seller/orders.php             payouts through the ledger
```

### `admin/` — 21

```
admin/wallet_history.php ★    per-user wallet history
admin/withdrawals.php ★       Bank Requests / Transaction Update / Settings
admin/pending_services.php    request details, Edit, Reject with reason
admin/product_management.php  auto company share, Customer Data Recruitment
admin/sellers.php             issues certificate on approval
admin/wallet.php  admin/orders.php  admin/user_list.php   ledger routing
```

Plus 13 more admin pages that changed only to carry the new sidebar links:
`commissions, index, profile, refer, reports, roles, services, settings, staff,
tickets, transactions, upgrade_requests, users`

★ = brand-new file (13 of them)

### Also created by the zip

```
uploads/bank/         needs permission 755 — passbook / cheque uploads
uploads/services/     service images
```

---

## Run the three migrations, in this order

```
1.  https://wbmcz.online/newproductmigration.php     product shares + Customer Data Recruitment
2.  https://wbmcz.online/newmigration.php            virtual wallet + certificates + earning report
3.  https://wbmcz.online/wallettomigration.php       bank accounts + withdrawals
```

Each prints green ticks and a verification table. **Delete all three afterwards.**
Re-running them is safe — they skip anything that already exists.

---

## Then verify

```
https://wbmcz.online/servercheck.php
```

It checks all 30+ files, every database table and column, the withdrawal settings,
the `uploads/bank/` folder, and your PHP cache. Anything red tells you exactly what
to fix. **Delete it when everything is green.**

---

## Quick 404 / error decoder

| Symptom | Cause | Fix |
|---|---|---|
| **404** on a page | That file wasn't uploaded | Upload it to the right folder |
| Menu item missing | `includes/theme.php` is old | Re-upload it |
| "Call to undefined function `bank_...`" | `includes/bank.php` missing | Upload `includes/` |
| "Call to undefined function `earning_render`" | `includes/earning_view.php` missing | Upload `includes/` |
| "Call to undefined function `cred_...`" | `includes/credentials.php` missing | Upload `includes/` |
| "Call to undefined function `wallet_...`" | `includes/wallet.php` missing | Upload `includes/` |
| "Table doesn't exist" | A migration wasn't run | Run all three, in order |
| Page loads but shows old content | OPcache | `servercheck.php` → clear OPcache |
| Upload done but still old | FTP "skip if same size" | Re-upload with **Overwrite** |

---

## What should be live once it's all in

| Where | What |
|---|---|
| Member sidebar | Profile → My ID Card, Certificate · Wallet → Main / Virtual / **Wallet History** / **Wallet to Bank** · **Earning Report** |
| Seller sidebar | Same, plus Profile → Certificate |
| Admin → Wallet Management | **Wallet History**, **Bank Request Pending**, **Transaction Update** |
| Admin → Services | Pending Services with Edit / Approve / Reject · Product Management with auto company share |
| Subscription page | **Pay from Wallet** button |
| Government Portals | Premium cards with the gold hover ring |
