Troubleshooting
Common issues + fixes. Always check kode/storage/logs/laravel.log for the actual error before doing anything else.
Where to find errors
tail -f /home/user/public_html/kode/storage/logs/laravel.log
Or via cPanel File Manager โ navigate to kode/storage/logs/ โ open latest laravel.log.
Installation issues
500 error during install
File permissions wrong. Run:
chmod -R 755 .
chmod -R 775 kode/storage kode/bootstrap/cache
"Specified key was too long"
MySQL too old. Upgrade to 8.0+ or MariaDB 10.6+.
White page
Enable debug mode temporarily in kode/.env:
APP_DEBUG=true
Reload page to see actual error. Set back to false after.
Installer keeps redirecting
rm kode/storage/cartuser_installed
php artisan cache:clear
Update issues
Update tool fails mid-process
Check laravel.log for actual error. Common causes:
- Insufficient disk space โ clear old backups
- Permission denied โ
chmod -R 775 kode/storage - Memory limit โ increase
memory_limit = 512Min php.ini - Max execution time โ increase to 600
"Update package contains sensitive files"
Your ZIP includes .env or .htaccess โ security guard rejected it. Re-package without those files.
Missing columns after update
php artisan schema:fix
php artisan migrate --force
php artisan optimize:clear
Frontend issues
"Class not found" / autoloader errors
cd /home/user/public_html/kode
composer dump-autoload --no-dev --optimize
php artisan optimize:clear
Home page blank or shows old content
php artisan cache:clear
php artisan view:clear
Images not loading
- Check
kode/.env:APP_URL=https://yourdomain.com(no trailing slash, correct protocol) - Verify
storagesymlink:php artisan storage:link - Check folder permissions:
chmod -R 775 assets/images/
"Mixed content" errors (HTTP/HTTPS)
Set in kode/app/Providers/AppServiceProvider.php:
if (env('APP_ENV') === 'production') {
URL::forceScheme('https');
}
Admin / login issues
Login redirects to "Unauthorized"
Roles table empty (seeder didn't run). Run:
php artisan db:seed --class="Database\Seeders\Installer\RoleSeeder" --force
php artisan cache:clear
Forgot SuperAdmin password
php artisan tinker --execute="
\$a = App\Models\Admin::where('user_name','admin')->first();
\$a->password = bcrypt('newpassword');
\$a->save();
"
Order & payment issues
Payment shows "Failed" but customer was charged
Callback URL not set in gateway dashboard. Open gateway edit page in admin โ copy Callback URL โ paste into gateway provider's webhook config.
Cart total doesn't match
Currency conversion issue. Verify:
- Admin โ Settings โ Currency โ default currency set correctly
- Exchange rates up to date
- Order's
currency_idmatches at checkout time
Checkout 500 error
Likely missing column. Run:
php artisan schema:fix
php artisan cache:clear
Email issues
Emails not sending
- Verify SMTP credentials in
.env - Test:
php artisan tinker --execute="Mail::raw('test', fn(\$m) => \$m->to('[email protected]')->subject('test'));" - Check failed jobs:
php artisan queue:failed - Retry:
php artisan queue:retry all
Gmail SMTP rejected
Gmail requires app-specific password if 2FA is on. Create one at myaccount.google.com/apppasswords.
SMS issues
OTP not arriving
- Verify SMS gateway credentials
- Check SMS provider credit balance
- Test from Admin โ Settings โ SMS โ Send Test SMS
- Some providers reject without sender ID approval
Mobile app issues
App shows "Cannot connect to server"
- Verify backend URL uses HTTPS
- Test API:
curl https://yourdomain.com/api/config - Check SSL certificate validity
- iOS rejects self-signed certs โ use Let's Encrypt or commercial SSL
App shows old data
- Clear app cache from device settings
- Verify server cache cleared:
php artisan cache:clear
Push notifications not arriving
- Verify FCM Server Key in Admin โ Settings โ Push Notification
- Check Firebase project matches the one in app's google-services.json
- Test from Firebase console first
Performance issues
Slow page loads
- Enable OPcache (PHP performance boost)
- Switch to Redis cache:
CACHE_DRIVER=redisin.env - Run
php artisan optimize - Use CDN for static assets (CloudFlare, BunnyCDN)
- Optimize images (compress, WebP format)
Database slow queries
- Check MySQL slow query log
- Add indexes on frequently filtered columns
- Use MySQL 8.0+ for better query optimizer
- Run
php artisan db:optimize
Common error messages
| Error | Fix |
|---|---|
| foreach() argument must be of type array|object, null given | Cache stale or DB column NULL. Run php artisan cache:clear |
| array_key_exists(): Argument #2 must be of type array, null given | Same as above. Often in social_login settings on fresh install |
| Array to string conversion | Multilingual JSON field rendered as string. Update to v3.0 |
| Class not found | Run composer dump-autoload --no-dev --optimize |
| Specified key was too long | MySQL too old, upgrade to 8.0+ |
| SQLSTATE[42S02]: Base table doesn't exist | Migration didn't run. Run php artisan migrate --force |
| Unknown column | Run php artisan schema:fix |
| 500 on /api/dashboard | Soft-deleted product orphans. Update to v3.0 (fixed) |
| Login โ Unauthorized | Roles table empty. Run RoleSeeder |
Still stuck?
- Read
kode/storage/logs/laravel.logbottom 50 lines - Contact CodeCanyon support via your purchase page
- Provide: PHP version, MySQL version, exact error from log, steps to reproduce