Updates & Backups
Keep Votlie up to date and protect your data with backups. Regular updates give you new features and security fixes.
System Information
The Updates page displays key system information at a glance:
| Info | Description |
|---|---|
| Current Votlie version | The version currently installed on your server |
| PHP version | The PHP version your server is running |
| Database type and version | Your database engine (e.g., MySQL 8.0, SQLite) and its version |
| Server info | Web server software and environment details |
This information helps you verify compatibility before applying an update.
Checking for Updates
When a new version is available:
- You'll receive an email from CodeCanyon (if subscribed)
- Download the update from your CodeCanyon purchases
Before You Update
Always:
- Read the changelog to see what's new
- Make sure you have a recent backup
- Update during low-traffic times
How to Update
- Go to CodeCanyon, find Votlie in your purchases, and download the latest version (ZIP file)
- Go to Admin > Settings, click the Updates tab
- Click Upload Update and select the ZIP file
- Wait for the upload to complete, then proceed through the Update Wizard
Update Wizard
The update process follows a 4-step wizard:
Step 1: Preview
Review what will change before committing:
- Current version vs new version - Side-by-side comparison
- File changes - List of files that will be added, modified, or removed
- Pending migrations - Any database schema changes that will be applied
- Changelog - Summary of new features, fixes, and improvements
Review all changes carefully before proceeding.
Step 2: Backup
An automatic backup is created before any changes are applied. This backup includes your files and database, ensuring you can roll back if anything goes wrong.
Step 3: Apply
The system applies the update:
- Maintenance mode is activated (visitors see an "updating" message)
- New files are copied to your installation
- Protected files are not overwritten (see Protected Files below)
- Database migrations are run to update the schema
- Caches are cleared to ensure fresh data
Keep your browser open during this step. Do not close the tab or navigate away until the process completes.
Step 4: Complete
Once the update finishes:
- A health check runs automatically to verify everything works
- The system exits maintenance mode and your site is back online
Verify the dashboard loads correctly, test key features (login, voting, comments), and check for any error messages.
Protected Files
During an update, the following files and directories are never overwritten to preserve your configuration and data:
.env.htaccessstorage/app/storage/logs/storage/installedstorage/framework/sessions/storage/framework/cache/data/database/database.sqlitepublic/storage/
These files contain your environment settings, uploaded data, session data, and other installation-specific information that must not be replaced.
Automatic Backups
Before every update, Votlie creates a backup that includes:
- All application files
- Database export
- Uploaded images and attachments
Backups are stored on your server.
Managing Backups
View Backups
- Go to Admin > Settings > Updates
- Scroll to Backups section
- See list of available backups with dates
Download a Backup
- Find the backup you want
- Click Download
- Save the ZIP file to your computer
Delete a Backup
- Find the backup
- Click Delete
- Confirm
Keep at least one recent backup. Download important backups to your computer.
Rolling Back
If something goes wrong after an update:
Automatic Rollback
If the update fails during the process, Votlie automatically detects the failure and restores your installation from the backup created in Step 2. No manual action is required.
Manual Rollback
You can also roll back a completed update from the Update History:
- Go to Admin > Settings > Updates
- Scroll to Update History
- Find the update you want to undo
- Click Rollback
- Confirm the action
- Wait for restoration to complete
This restores files and database to the pre-update state.
Update History
Track all past updates:
- Go to Admin > Settings > Updates
- Scroll to Update History
Each entry shows:
| Column | Description |
|---|---|
| Version | The version transition (from → to) |
| Date | When the update was applied |
| Status | Success or Failed |
| Rollback | Option to revert to the previous version |
Recovering Stuck Update
If an update gets stuck and the site remains in maintenance mode:
- Go to Admin > Settings > Updates
- Click the Recover button
- The system will attempt to fix the issue and exit maintenance mode
If you cannot access the admin panel:
- Via FTP: Delete the file
storage/framework/downto manually exit maintenance mode - Via cron: The cron job automatically detects stuck updates and attempts recovery
A properly configured cron job can auto-detect and recover from stuck updates. See Cron Jobs for setup instructions.
System Health Check
Check your system status at any time:
- Go to Admin > Settings > Updates
- Find the System Health section
The health check verifies the following:
| Check | What It Verifies |
|---|---|
| PHP version and extensions | Correct PHP version and all required extensions are installed |
| Database connection | Database is reachable and responding |
| Directory permissions | Required directories are writable |
| Disk space | Sufficient free disk space for updates and backups |
| Memory limit | PHP memory limit meets minimum requirements |
Each check displays a status indicator: Green means everything is good, Red means the item needs attention before updating.
Manual Backup
In addition to automatic backups, make your own:
Backup Files
- Connect to your server via FTP
- Download the entire Votlie folder
- Save it to your computer
Backup Database
- Go to phpMyAdmin (in cPanel)
- Select your Votlie database
- Click Export
- Choose Quick export
- Click Go
- Save the SQL file
Tips
| Tip | Why |
|---|---|
| Update regularly | Get security fixes and new features |
| Read changelogs | Know what's changing |
| Test after updating | Catch problems early |
| Keep backups | Safety net if something breaks |
| Update in off-hours | Minimize impact on users |
Troubleshooting
| Problem | Solution |
|---|---|
| Upload fails | Check file size limits in PHP settings |
| Update stuck | Use the "Recover" button, then try again |
| Error after update | Rollback and contact support |
| Can't access admin | Restore from backup via FTP/phpMyAdmin |
| "Maintenance mode" stuck | Delete storage/framework/down file |
Next Steps
- Troubleshooting - Fix common problems
- Requirements - Check your server setup