Troubleshooting
First move, always:
php artisan storemine:preflight
It diagnoses most of the issues below automatically.
Common issues
| Symptom | Likely cause & fix |
|---|---|
| 500 error after install | Missing APP_KEY → php artisan key:generate, then php artisan config:cache |
| Blank page / unstyled site | Frontend not built → npm ci && npm run build |
| Uploaded images 404 | Storage not linked → php artisan storage:link |
| Uploads rejected | PHP fileinfo extension missing → install/enable it |
| Emails & campaigns not sending | Queue worker not running → check Supervisor: sudo supervisorctl status |
| Scheduled campaigns never go out | Cron entry missing → add the schedule:run line |
| Payments succeed but orders stay pending | Webhook not registered with the gateway → register the URLs from deploy/DEPLOYMENT.md |
Changes to .env have no effect | Config cached → php artisan config:cache |
| Wrong customer IPs / mixed-content behind Cloudflare | Trusted proxies not set → see deploy/DEPLOYMENT.md § proxies |
| AI features show "not configured" | No provider key saved → add keys under Admin → Settings → AI |
| Locked out of admin | php artisan storemine:admin-password <email> prints a fresh password |
Reading the logs
php artisan pail # live, pretty
tail -f storage/logs/laravel.log # classic
Still stuck?
Collect these before asking for support — they answer 90% of questions up front:
- Output of
php artisan storemine:preflight - PHP version (
php -v) and the last 50 lines ofstorage/logs/laravel.log - What you changed most recently