Common issues.
Solutions to common problems.
On this page
This guide covers common problems and their solutions.
Start here
Check the affected page and note the error message. If you can sign in as an administrator, open the Health Center for configuration warnings.
A problem can depend on application code, account data, settings, or hosting. You do not need to identify the cause before contacting support.
Error 500 (server error)
A 500 error means something went wrong on the server. To diagnose:
- Check the log file:
storage/logs/laravel.log - Look for the most recent error entry
- The error message often indicates the cause
Common causes
Missing PHP Extension:
Especially ext-intl (Internationalization). Ensure all required extensions are enabled.
File Permissions:
The storage/ and bootstrap/cache/ directories must be writable by the web server.
Ask your host to check ownership and permissions for the PHP process. The correct user and permission settings depend on the server. See Server requirements.
Environment File Missing:
Ensure .env exists and contains valid configuration.
Directory listing instead of app
If you see a folder structure instead of the application:
Missing .htaccess
Some operating systems hide files starting with a dot. On macOS, press Cmd + Shift + . to show hidden files. Ensure .htaccess was uploaded.
mod_rewrite disabled
Apache's mod_rewrite module must be enabled. Contact your hosting provider if unsure.
Image upload problems
If images fail to upload:
- Check that
proc_openandproc_closePHP functions are enabled - Verify the
public/filesdirectory is writable - Check upload size limits in
php.ini
Email configuration issues
Email is required for OTP login, new user verification, and password resets. If email delivery isn't working, OTP sign-in won't work and many users (especially members) won't be able to access the platform.
During installation
The browser installer can send a test email before it finishes, and the server installer sends one at the end. When the test fails, the message includes one of these sentences.
"Cannot connect to the email server"
The host name or the port is wrong, or the server can't reach the internet.
- Copy the SMTP host from your email service's settings. Set up email lists the common services.
- Use the port the service lists: usually 587 or 2525 for TLS, and 465 for SSL.
- Ask your hosting or server provider whether it blocks outgoing email ports. Brevo and SMTP2GO also accept port 2525.
"The connection to the email server timed out"
The server didn't answer on that port. Many server providers block the usual email ports.
- Check the host and the port.
- Try port 2525 if your email service offers it.
- Ask your provider whether it blocks outgoing email ports.
"The email server refused the connection"
The server is reachable, but nothing accepts email on that port. Use the port your email service lists.
"The email service rejected the user name or password"
- Copy the user name and password again, without extra spaces.
- Many services want an SMTP key here, not the password you sign in with. For Gmail, create an App Password: turn on 2-Step Verification, then open Security → App passwords in your Google Account.
"The secure connection failed"
The port and the encryption don't match. Port 465 uses SSL; ports 587 and 2525 use TLS. Choose the pair your email service lists. Don't switch encryption off to get past this message.
"The email server offers no encrypted connection on this port"
TLS was chosen, and the server doesn't offer it on that port, so the installer sent nothing. That keeps your password from travelling unencrypted.
- Use the port your email service lists for TLS, usually 587 or 2525.
- For a mail server on your own hosting that has no encryption, choose None.
"The email service refused this sender"
The sender address isn't verified at your email service.
- Verify the sender address, or its domain, in your email service's dashboard.
- Use that address as the sender.
- If you saved a sender under Settings → Email settings in the dashboard, Reward Loyalty uses that one. Change it there.
"The email service rejected the address the test was sent to"
The test address doesn't exist or has a typo. Check it and send the test again.
Test email sent but not received
If the test shows success but you don't receive the email:
- Check spam/junk folder: Test emails often get filtered
- Wait 2-3 minutes: Email delivery can be delayed
- Verify the email address: Check for typos in the test email field
- Try a different email: Test with another email provider
- Check email provider settings: Some providers block automated emails
After installation
If emails aren't working after installation completes:
Check Configuration:
Verify your email settings in .env:
MAIL_MAILER=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=your-username
MAIL_PASSWORD=your-password
MAIL_ENCRYPTION=tls
MAIL_SCHEME=smtp
MAIL_AUTO_TLS=true
MAIL_REQUIRE_TLS=true
[email protected]
MAIL_FROM_NAME="Your App Name"
The encryption is set by MAIL_SCHEME, MAIL_AUTO_TLS and MAIL_REQUIRE_TLS, not by MAIL_ENCRYPTION alone. The technical reference lists the values for SSL and for no encryption.
For Gmail testing and production provider setup, use the email configuration guide.
Check Logs:
Review storage/logs/laravel.log for specific error messages. The log will show detailed information about why emails are failing.
Emails going to spam
If system emails consistently land in spam folders:
Possible causes:
- Using a free email address (Gmail, Yahoo, etc.) as the sender
- Missing SPF, DKIM, or DMARC DNS records
- Low sender reputation
Solutions:
- Use an email address from your own domain (
[email protected]) - Configure SPF records to authorize your email server
- Set up DKIM signing for email authentication
- Add a DMARC policy to your domain
- Consider using a transactional email service (Mailgun, SES, Postmark, Resend)
- Consult your email hosting provider's documentation
Development options
For local development, use these options instead of production email:
Mailpit:
- Catches all emails locally without sending them
- View emails at
http://localhost:8025 - Requires Mailpit running locally
- Set
MAIL_MAILER=mailpitin.env
Log File:
- Writes full email content to
storage/logs/laravel.log - No setup required
- Set
MAIL_MAILER=login.env
⚠️ Warning: Never use development drivers in production. Mailpit and Log drivers don't send real emails.
Database errors
Connection refused
Verify database credentials in .env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database
DB_USERNAME=your_username
DB_PASSWORD=your_password
Table not found
Database migrations may not have run. Sign in as admin and check for migration prompts.
"Specified key was too long"
If installation or an update stops with Specified key was too long; max key length is 1000 bytes, your database server creates new tables with the MyISAM storage engine. MyISAM limits an index to 1000 bytes, and some Reward Loyalty tables need more. Reward Loyalty needs InnoDB, the default engine on MySQL and MariaDB. Some hosts change that default.
Add this line to .env, the settings file in your Reward Loyalty folder:
DB_ENGINE=InnoDB
New tables then use InnoDB, whatever the server default is. Tables that already exist keep their engine. You can also ask your host to set default_storage_engine=InnoDB on the database server.
During installation
- Confirm this is a new installation with no business or member data.
- Open
.env.examplein your Reward Loyalty folder. Change# DB_ENGINE=InnoDBtoDB_ENGINE=InnoDBand save it. The installer copies this file into.env. - Ask your host for an empty database.
- Restart the installation with that database.
Existing installation: Don't reinstall it. Follow the update steps below instead.
During an update
The updater installs the new files first and updates the database last. When the database step fails, the updater stops. Your partners, members and transactions stay in place, and you finish the update from the command line.
Back up the database before you start. The steps below delete the tables the failed attempt created. Without a backup, a mistake in step 3 or 4 can't be undone.
- Add
DB_ENGINE=InnoDBto.env. - In SSH or your hosting panel's terminal, go to your Reward Loyalty folder and run
php artisan optimize:clear. Laravel then reads the new line. - Read the error under Update history on the License & updates page. Find the migration marked
FAIL. If its name containscreate_, open phpMyAdmin and delete the table named afteralter tablein the error. That migration created the table and stopped before it finished. If the name has nocreate_, stop and contact support with the full error. - If the error lists migrations marked
DONE, runphp artisan migrate:rollback --force. This undoes the database changes from the failed attempt only, so the next step rebuilds those tables with InnoDB. If no migration saysDONE, skip this step: the command would undo your previous update instead. - Run these commands one at a time:
php artisan migrate --force
php artisan languages:sync
The update is complete when migrate finishes without FAIL. Current version on the License & updates page shows the new version. Update history keeps the failed attempt.
Refreshing after updates
If the application behaves unexpectedly after an update:
php artisan optimize:clear
Run this from the application directory with the PHP version your installation uses. It clears Laravel application caches; it does not remove member balances or transactions.
Plesk: Updates failing or incomplete
If you're using Plesk and the in-app updater seems to fail with no message or updates don't apply as expected, the issue is often a PHP version mismatch between web and CLI.
Symptoms
The application log (storage/logs/laravel.log) shows PHP discovery messages like these (the update runner itself writes its steps to storage/logs/updater.log):
UPDATE: FPM binary detected, searching for CLI equivalent
UPDATE: Testing FPM-derived path {"path":"/opt/plesk/php/8.4/sbin/php8.4","works":false}
UPDATE: FPM CLI equivalent not found, falling through to PATH search
UPDATE: Found suitable PHP binary {"path":"/opt/plesk/php/8.5/bin/php"}
The problem
Plesk has PHP 8.4 FPM enabled for your website (handling web requests), but PHP 8.4 CLI is not installed. The updater falls back to a different PHP version (e.g., 8.5), causing:
- Version mismatch: The update process runs with a different PHP version than your web app
- Silent failures: Background processes may fail or behave unexpectedly
- Cache issues: OPcache for PHP 8.4 FPM isn't cleared by PHP 8.5 CLI commands
Solution
In Plesk, ensure both PHP-FPM and PHP CLI use the same version:
- Sign in to Plesk and navigate to your domain
- Go to PHP Settings or PHP Version
- Check that PHP CLI is enabled for the same version as your website
- If PHP 8.4 CLI is not available, contact your hosting provider to install it
Alternatively, you can verify CLI availability via SSH:
# Check which PHP CLI versions are available
ls -la /opt/plesk/php/*/bin/php
# Test if your expected version works
/opt/plesk/php/8.4/bin/php --version
After fixing
Once CLI and FPM versions match, run the updater again.
PHP extension missing (CLI vs FPM mismatch)
If the dashboard updater fails with "extension not available" but the hosting panel shows the web extension is enabled, you're likely hitting a CLI vs FPM configuration mismatch.
💡 Quick fix: If you can't resolve this, use the Manual File Replacement process instead. It bypasses CLI entirely.
Common example: ZipArchive
Your update logs (storage/logs/updater.log) show:
Step 1/7: Extracting package...
ERROR: ZipArchive extension not available
The hosting panel can still show the extension enabled for web requests.
The problem
Most hosting environments manage two separate PHP configurations with independent extension settings:
| Configuration | Used By | Where to Check |
|---|---|---|
| PHP-FPM | Web requests to your website | Hosting panel |
| PHP CLI | Background scripts, updates, artisan commands | SSH terminal |
Many hosting setups have extensions enabled for FPM but not CLI. This affects any feature that runs via command line, including:
- In-app updates (uses CLI to avoid web request timeouts)
- Scheduled tasks / cron jobs
- Artisan commands
- Queue workers
Solution by hosting panel
Plesk
- Go to Tools & Settings → PHP Settings
- Select your PHP version (e.g., PHP 8.4)
- Switch to the CLI tab (not CGI/FPM)
- Enable the required extension (e.g.,
zip,intl,gd) - Click OK to save
cPanel
- Go to MultiPHP INI Editor
- Select your domain
- Enable the required extension
- Note: Some extensions require EasyApache configuration. Contact your host
DirectAdmin / other panels
Contact your hosting provider to enable extensions for PHP CLI. Most panels have separate CLI and FPM configurations that need to match.
VPS / manual setup
Edit the CLI php.ini:
# Find CLI php.ini location
php --ini
# Compare CLI vs FPM extensions
php -m # CLI extensions
# Check web PHP extensions in the hosting panel; do not expose phpinfo publicly.
# Common locations:
# CLI: /etc/php/8.4/cli/php.ini
# FPM: /etc/php/8.4/fpm/php.ini
💡 Tip: The CLI and FPM php.ini files are often in different directories. Enabling an extension in one doesn't enable it in the other.
Workaround (bypass CLI entirely)
If you cannot modify CLI PHP settings, use the Manual File Replacement process. You download the latest version, upload the files via FTP or your hosting file manager, and restore your data. No CLI or exec() required.
Slow performance
If the application runs slowly, especially on Plesk or shared hosting, the issue is often related to PHP's OPcache or memory limits.
Quick fix (SSH required)
Run the Laravel optimization command with increased memory:
php -d memory_limit=512M artisan optimize
This pre-compiles and caches configuration, routes, and views. This can help when missing application caches cause the slowdown. If it does not help, check the Health Center and ask your host to review resource usage.
💡 Note: You may need to re-run this command after updates or when you change
.envsettings.
Optional: PHP settings (Plesk / cPanel)
Ask your host to size PHP workers and OPcache for the available memory and measured load. A worker count copied from another server can exhaust memory. Use the hosting panel for changes, then check response times and error logs.
PWA not installing
Progressive Web App (PWA) features require HTTPS in production. Reward Loyalty uses the browser's built-in "Add to Home Screen" functionality. There is no custom install prompt.
Symptoms
- "Add to Home Screen" option doesn't appear in your browser menu
- Browser doesn't recognize the site as installable
Solution
- Verify HTTPS: Your URL must start with
https:// - Check for mixed content: All resources (images, scripts) must load over HTTPS
- Test manually: In Chrome, open DevTools → Application → Manifest to see validation errors
💡 Note: PWA works on
http://localhostfor local development.
How to install
Use your browser's built-in installation option:
- Chrome (Android/Desktop): Menu → "Install app" or "Add to Home Screen"
- Safari (iOS): Share button → "Add to Home Screen"
Available controls depend on the device and browser. Use the online website if installation is unavailable.
See PWA Configuration for detailed setup instructions.
Offline access not working
Members report they can't see their loyalty cards offline.
Causes
- Card was never viewed while online (nothing to cache)
- Browser cleared cached data
- Unsupported browser
Solution
- View cards online first: QR codes are cached on first view
- Install the PWA: Installing to home screen improves offline reliability
- Check browser: PWA works on Chrome, Safari, Firefox, and Edge. Internet Explorer is not supported.
Testing offline mode
- Visit a loyalty card while connected
- Enable airplane mode
- Reopen the loyalty platform
- Verify the QR code displays with an "offline" banner
Store integration issues
Diagnose orders not earning points, connection failures, and webhook errors from the integration's own dashboard. The Overview tab shows connection and webhook status at a glance. The Activity tab lists recent webhook deliveries and the reason an event was ignored.
- WooCommerce: See the troubleshooting table
- Shopify: See the setup guide
Still stuck?
If these solutions don't help:
- Note the exact error message
- Check
storage/logs/laravel.logfor details - Visit the Support page for help options