You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @prbt2016, thanks for flagging this — the upgrade guide was indeed out of date (it still described the old pre-3.0 flow). I've opened a PR to rewrite it: #4750. In the meantime, here is the current, correct way to go from 3.4.1 to 3.4.2:
Yes — you can upload the new 3.4.2 files on top of your existing install. Your data is not stored in the code, so an upgrade is simply: back up → replace the code → restore your files → log in.
Files to safeguard first:
Your database — the most important one. Do a full backup (e.g. mysqldump). All your business data lives here, not in the code.
Your .env file (project root) — it holds your database password and your encryption.key. ⚠️ Release downloads include a fresh, default .env (pointing at localhost with the default ospos credentials). If you let it replace yours, you lose your DB password and encryption.key. So copy your current .env out of the way before overwriting, and put it back after.
Your public/uploads/ folder — your product images and other uploaded files.
Steps:
Back up your database, your .env file, and your current code folder.
Replace the code with the 3.4.2 files (overwriting in place is fine).
Put your original .env and public/uploads/ back in place.
Log in. The first login takes a little longer because OSPOS updates the database schema automatically — you do not need to run any SQL scripts manually.
One thing to check (production): since 3.4.2, app.allowedHostnames is required in production, otherwise the application will not start. If it is not already in your .env, add it:
Activity
jekkos commentedon Oct 13, 2026
Hi @prbt2016, thanks for flagging this — the upgrade guide was indeed out of date (it still described the old pre-3.0 flow). I've opened a PR to rewrite it: #4750. In the meantime, here is the current, correct way to go from 3.4.1 to 3.4.2:
Yes — you can upload the new 3.4.2 files on top of your existing install. Your data is not stored in the code, so an upgrade is simply: back up → replace the code → restore your files → log in.
Files to safeguard first:
mysqldump). All your business data lives here, not in the code..envfile (project root) — it holds your database password and yourencryption.key..env(pointing atlocalhostwith the defaultosposcredentials). If you let it replace yours, you lose your DB password andencryption.key. So copy your current.envout of the way before overwriting, and put it back after.public/uploads/folder — your product images and other uploaded files.Steps:
.envfile, and your current code folder..envandpublic/uploads/back in place.One thing to check (production): since 3.4.2,
app.allowedHostnamesis required in production, otherwise the application will not start. If it is not already in your.env, add it:That should get you upgraded cleanly. If anything fails, temporarily enable PHP
display_errorsand share the exact error here and we can take a look.docs: rewrite upgrade guide for the current CI4 install model (#4750)