Hi everyone,
I’m new to aaPanel and I’m trying to restore my old WordPress website using WP Toolkit. My previous VPS was wiped, but I still have a backup file (a .zip that includes all WordPress files + a .sql.gz database dump) downloaded from my old server where WP Toolkit was working fine.
When I try to import the backup using WP Toolkit on my new VPS, the file upload works — but the database import fails with this error message:
"Import the database
Database import failed: list indices must be integers or slices, not str"

I’ve checked that:
The .sql.gz file contains a valid .sql dump (I can import it manually via phpMyAdmin without errors)
The new server has a clean WordPress installation
The config.php and wp-config.php are different since it’s a new setup
Has anyone faced this issue before? Is it a bug with WP Toolkit’s import feature, or did I miss a step in preparing the backup?
Any guidance would really help — I’ve been stuck on this for a while. 🙏