Move from Weblizar School Management

Move a whole school into èLyn from Weblizar School Management Pro (the WordPress plugin whose tables start with wlsm_). Students and parents, staff, classes, fees, invoices and payments, exams and results, attendance and more come across in one go. If the school later moved its reports to parent and child WordPress pages with report tables, a second stage brings those in too, as the newer data.

  • Where System → Imports → Move from Weblizar School Management
  • Who can use it Site administrators only (it brings in a whole school).
  • Set up first Nothing, in most cases. èLyn finds Weblizar data on this site or this server by itself; if the old site was somewhere else, you upload its database backup.

Where the Weblizar data can be

Step 1 of the card offers three ways in. Pick the one that fits; the rest of the import is the same for all three.

ChooseWhenWhat happens
Found on this serverYou installed èLyn on the same WordPress site where Weblizar ran (the most common case), or the old site’s database is on this same database server.èLyn looks through the databases this site can read, this site’s own first, and lists each place with Weblizar data, its table prefix and how many student records it holds. Pick one. Nobody has to type a database name.
Upload a backupThe old site was on another server or hosting account (usual on shared hosting).Export the old site’s database as a .sql or .sql.gz file (phpMyAdmin → Export, your host’s backup, or a backup plugin) and upload it. Big files are sent in small parts and read a few seconds at a time, so hosting limits are not a problem. If the file is already on the server, open The file is already on the server and type its path instead.
Enter manuallyYou know the old database’s name and prefix and the finder did not list it.Type the database name and table prefix (look at the old site’s wp-config.php, line $table_prefix).

What happens to an uploaded backup

  • The file is saved in a private folder (outside the website where the host allows it, otherwise a folder that refuses web access).
  • Only the tables the import reads are taken from it: the Weblizar tables (wlsm_…), users, posts and their meta, the report tables (wpDataTables) and report forms (Forminator), and the site’s name and address. Everything else in the backup is skipped.
  • Those tables go into temporary tables in this site’s database. Old MyISAM tables become InnoDB, and long text keys are shortened, so the “key was too long” error of some hosts cannot happen.
  • Nothing in the file is run as it is written. Only table structures and plain rows of data are taken; any other command in the file (deleting or changing tables, users, permissions, settings) is refused and counted, and the card shows the count.
  • The uploaded file is deleted as soon as it has been read. The temporary tables are removed when you click Remove uploaded copy after the check, or by themselves a day later.
  • Importing a newer backup of the same old site later updates the same èLyn records instead of copying them.

Run the import

  1. 1. Choose where the Weblizar data is (see above). Tick Also bring in the later report pages if the school stopped using Weblizar and published reports on pages instead; èLyn ticks it for you when it sees report tables.
  2. 2. Dry run. Nothing is written. A table shows, for each kind of record, how many the old site has and how many èLyn would create or update, followed by the money totals and lists of problems, disagreements and things that have no place in èLyn.
  3. 3. Run import. Read the lists first. When you are happy, click Run import and confirm. It works in short steps with a progress bar; keep the page open until it says Import finished.
  4. 4. Check. Click Check the result to compare the old data with èLyn. For an uploaded backup, then click Remove uploaded copy.

Tip: the highlighted button is always the next thing to do. Run import only unlocks after a dry run of the same source and tick box.

What comes across

WeblizarIn èLyn
School detailsSchool Setup (name, phones, email, address, currency, motto)
SessionsAcademic years and terms (a session deleted in Weblizar but still used by students becomes a term named “Weblizar session N” for you to confirm)
Classes and sectionsClasses; the class teacher from each staff member’s section
Subjects (one per class)One subject per name, linked to each class
StaffStaff, with position and teaching/non-teaching
Student records (one per session)One student per child, with father and mother as parents, date of birth, religion, current class and status. Records are joined into one child through Weblizar’s promotions, the admission number and the name.
PromotionsThe child’s class history, saved in Users → Activity log
FeesFee types and class fees
Invoices and paymentsInvoices with their lines, and receipts. Totals, amounts paid and balances match Weblizar to the pesewa.
ExpensesExpenses
Exams, admit cards, resultsExam periods, candidates (roll number as index number) and subject results with remarks
AttendanceOne mark per child per day (present, absent; Weblizar “h” becomes excused)
Hostels and roomsHostel and rooms
InquiriesAdmissions enquiries

Anything with no place in èLyn (exam paper timetables, SMS gateway keys, the per-student fee plan, the activity log, and so on) is counted and listed under Not imported; nothing is dropped silently.

Stage 2: report pages

Some schools left Weblizar and published each family’s reports on WordPress pages, one report table (wpDataTables) per child per term. Stage 2 reads every report table, including ones no page shows any more, and:

  • works out each table’s child, class and term from its title (and the page around it when the title is short);
  • matches every child to their Weblizar student, allowing for spelling slips and shorter or longer names. A child is never created twice: a name that fits two students, or a new child, is listed for you to confirm;
  • imports class score, exam score, total, grade and remark for each subject, plus conduct, interest, the class and head teacher’s remarks and the promotion decision;
  • takes the pages as the newer data: where a page and Weblizar disagree (class, status, fees), the page wins and the disagreement is listed;
  • uses the newest fee schedule found on the family pages for the class fees;
  • links brothers and sisters on the same family page to the same parents.

The report forms teachers filled in (Forminator entries on the class pages) are only compared with the tables: the tables are what parents saw. Entries whose marks are not in any table are listed.

Check the result

Check the result compares, side by side: the number of children, staff, classes, invoices, payments, results and attendance days; the money (invoiced, paid, outstanding, expenses); and five students picked at random (always including one who paid and one with exam results, plus one child found only on the pages), end to end: class history, invoices, payments, balance, results and attendance totals.

Running it again

The import remembers which old record became which èLyn record. Running it again updates those records instead of making copies, so you can fix something in the old site and import again. Changes you make in èLyn to imported records are overwritten by a new run, so finish importing before the school starts working in èLyn.

For technical staff: WP-CLI

The same import runs from the command line:

wp elyn import-wlsm --detect
wp elyn import-wlsm --db=OLD_DATABASE --prefix=wp_ --dry-run --pages
wp elyn import-wlsm --db=OLD_DATABASE --prefix=wp_ --pages
wp elyn import-wlsm --db=OLD_DATABASE --prefix=wp_ --pages --verify
wp elyn import-wlsm --file=/path/old-site.sql.gz --dry-run --pages
wp elyn import-wlsm --file=/path/old-site.sql.gz --pages --keep-staging
wp elyn import-wlsm --staged --pages --verify

--detect lists the Weblizar data this site can read. --db may be this site’s own database. --file reads a backup the same way as an upload (the file itself is left alone) and drops the temporary tables at the end, unless you add --keep-staging; --staged then reads the copy already loaded (also one uploaded on the admin screen), for example to run --verify. When a backup holds two WordPress installs, choose one with --prefix=OLD_PREFIX.

Options: --school=ID (target school), --skip-wlsm (pages stage only), --photos-dir=/path/to/old/wp-content/uploads (bring in student photos), --show-names (print names in the lists; by default only IDs are printed). The full report, with names, is saved in the site’s private migrations folder.

Good to know

  • The old database is only read, never changed, even when it is this site’s own database.
  • Logins are not copied: invite staff and families from Users and Portals when you are ready.
  • Student photos come across by themselves when Weblizar ran on this same site. Otherwise they stay on the old site unless you give the old uploads folder (see WP-CLI above).
  • Imported invoices, payments and expenses are records and balances only; nothing is posted to Journal & Ledger, so your books start clean.
  • “Promoted to …” on the newest reports is listed, not applied: move children up with Promotion when the new year starts.