# Server e kivabe update korben — step by step

## Problem ta ki (apnar screenshot theke)

Apnar live sidebar e ache:

```
Dashboard · Services · Profile · Wallet · Order History · Helpdesk · My Subscription · Refer & Earn
```

Notun `includes/theme.php` upload hole ekhane thakto:

```
Dashboard · Services · Profile · Wallet · Earning Report ← · Order History · Helpdesk · My Subscription · Refer & Earn
                       └ My Profile / Edit Profile / KYC / My ID Card ← / Certificate ← / Change Password
                                 └ Add Money / Main Wallet / Virtual Wallet ←
```

**Earning Report nei, mane `includes/theme.php` server e purono-i ache.** Menu ta ekhan thekei toiri hoy — tai ID Card, Certificate, Virtual Wallet, Earning Report — kichui dekhabe na.

`profile.php` er ID Card ar Certificate tab kaj korte 3 ta file lagbe ekshathe:

| File | Kaj |
|---|---|
| `includes/theme.php` | Sidebar e link toiri kore |
| `profile.php` | Tab er content |
| `includes/credentials.php` | ID card ar certificate ta ake |

Ekta o missing hole kichu dekhabe na. Tai **`includes/` folder ta-i sob cheye jorui**.

---

## Sob cheye sohoj upload — ZIP diye (recommended)

`wbmcz_update.zip` e 45 ta file thik folder structure soho ache. cPanel diye ekbare hoye jabe:

1. **cPanel → File Manager** khulun
2. Apnar site root e jan — je folder e `index.php` ar `config.php` ache
   (sadharonoto `public_html/`, ba `public_html/neo/`)
3. **Upload** button → `wbmcz_update.zip` select korun
4. Upload sesh hole file ta te **right-click → Extract**
5. "Overwrite existing files" ashle **Yes / Replace** din
6. ZIP file ta delete kore din

Extract howar por `includes/`, `admin/`, `seller/` folder gulo automatic thik jaygay chole jabe — hate kore folder khujte hobe na.

---

## FTP (FileZilla) diye korle

FileZilla e **age `includes/` folder ta drag korun**, tarpor baki gulo:

```
includes/     ← 6 ta file, EI TA AGE
admin/        ← 20 ta file
seller/       ← 6 ta file
root er php file gulo  ← 11 ta
```

Transfer settings e **Overwrite** select korun, "Skip if same size" **noy** — same size hole eta file skip kore dey, ar apni bujhben-o na.

Upload sesh hole FileZilla er niche "Failed transfers" tab ta dekhun — kono file fail korle sekhane dekhabe.

---

## Upload er por — ei 4 ta step obosshoi korun

### 1. Duito migration run korun (order maintain kore)

```
https://wbmcz.online/newproductmigration.php     ← age
https://wbmcz.online/newmigration.php            ← tarpor
```

Sobuj tick dekhle thik ache. **Duito file-i delete kore din** eর por.

### 2. PHP cache clear korun

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

Section 6 e OPcache "ENABLED" dekhale lal link e click korun — ek click e clear hoye jabe.
(cPanel → **Select PHP Version → Options → opcache** off/on koreo hoy.)

### 3. Browser hard refresh

`Ctrl + Shift + R` — ekbar noy, protita page e.

### 4. Miliye nin

`servercheck.php` e sob sobuj hole thik ache. Tarpor **`servercheck.php` delete kore din**.

---

## Upload thik holo kina 10 second e bujhben kivabe

Ei URL ta direct browser e khulun:

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

| Ja dekhben | Mane | Ki korben |
|---|---|---|
| Earning Report page khule gelo | File thik ache, sudhu menu missing | `includes/theme.php` re-upload |
| **404 Not Found** | `earning_report.php` uploadi hoyni | Root e upload korun |
| **500 error** ba sada page | `includes/` er file missing | `includes/` folder ta puro re-upload |
| "Call to undefined function `earning_render`" | `includes/earning_view.php` nei | Oi file ta upload korun |
| "Call to undefined function `wallet_balances`" | `includes/wallet.php` nei | Oi file ta upload korun |
| "Call to undefined function `cred_render_id_card`" | `includes/credentials.php` nei | Oi file ta upload korun |
| "Table 'wallet_ledger' doesn't exist" | Migration run hoyni | `newmigration.php` run korun |

Same vabe `https://wbmcz.online/profile.php#id_card` khulle ID card ta dekhabe — menu link chhara-o.

---

## Sob theke common bhul

1. **Sudhu screenshot e dekha page ta upload kora.** Notun feature gulor asol code `includes/` e — oi folder na dile kichui hobe na.
2. **FTP "skip if same size"** — file size kachakachi hole skip kore dey.
3. **OPcache** — file thik ache, tao purono version chole. Shared hosting e prai-i on thake.
4. **Bhul folder** — `neo/` folder e upload kora jekhane site root asole `public_html/`.
5. **Migration na chalano** — page khule kintu table khali ba error.

---

## ZIP e ki ki ache (45 ta file)

```
includes/  (6)   credentials.php  earning_view.php  functions.php
                 shares.php  theme.php  wallet.php

admin/     (20)  wallet_history.php  pending_services.php  product_management.php
                 sellers.php  wallet.php  orders.php  user_list.php
                 + 13 ta sidebar link er jonno

seller/    (6)   earning_report.php  profile.php  services.php
                 wallet.php  index.php  orders.php

root/      (11)  earning_report.php  profile.php  wallet.php  subscription.php
                 category.php  add_money.php
                 newmigration.php  newproductmigration.php  servercheck.php
```
