Troubleshooting Guide¶
This guide provides technical solutions to common issues encountered during the installation, configuration, and operation of the Preads Platform.
🛠️ Infrastructure & Environment¶
Database Connection Failure¶
Symptom: "Could not connect to database" during the installation wizard. Solution:
- Verify Service: Ensure MySQL/MariaDB is running (
systemctl status mysql). - Credentials: Verify the
DB_USERNAMEandDB_PASSWORDin your.envmatch your database manager settings. - Host Binding: If
localhostfails, try using127.0.0.1or the specific IP provided by your hosting provider. - Permissions: Ensure the database user has
ALL PRIVILEGESon the specific platform database.
Permission Errors (storage/cache)¶
Symptom: Log files show "Permission denied" or "Could not write to file".
Solution:
The platform requires write access to the storage and bootstrap/cache directories.
# Set correct ownership (assuming www-data is your web user)
chown -R www-data:www-data storage bootstrap/cache
# Set directory permissions
chmod -R 775 storage bootstrap/cache
📡 Connectivity & APIs¶
Postback Tracking Errors¶
Symptom: Conversions are firing on the network but not showing in the platform. Solution:
- Check IP Intelligence: Ensure your Anti-Cheat levels aren't accidentally blocking the network's IP. Check Admin → Security → IP Intelligence Logs.
- Verify Endpoint: Ensure the Postback URL provided to the network is correct (HTTPS is mandatory for many networks):
https://yourdomain.com/api/v1/postback/{network_slug}?transaction_id={click_id}&payout={payout} - S2S Logs: Check the Postback Logs in the Admin panel to see if the server received the hit but rejected it due to a "Signature Mismatch".
Email Sending Failure¶
Symptom: System notifications or 2FA codes are not being delivered. Solution:
- Test SMTP: Use the "Send Test Email" utility in Settings → Email.
- Clear Config Cache: If you edited
.envdirectly, Laravel might still be using old credentials.php artisan config:clear - Encryption: Ensure the encryption protocol (TLS/SSL) matches the port (587/465).
🖥️ Application & Performance¶
419 Page Expired¶
Symptom: Users see a "419" error when submitting the login or registration form. Solution:
- CSRF Mismatch: This is typically caused by a session timeout or a cookie domain mismatch in
.env. - Fix: Ensure
SESSION_DOMAINin.envmatches your actual domain or is set tonullto use the default. - Clear Browser State: Ask the user to clear their browser cache and cookies.
Statistics Not Updating¶
Symptom: Dashboard charts appear static despite active traffic. Solution:
- Cache Duration: The Admin Dashboard is cached for 120 seconds to maintain performance. Wait 2 minutes and refresh.
- Internal Cache: If data is significantly desynced, manually purge the analytics cache:
php artisan cache:forget dashboard_stats_2026-01-29_2026-01-30(using current dates). - CRON Job: Ensure your
php artisan schedule:runCRON is active. The platform relies on it to process background statistics.
🚨 Nuclear Option (Cache Cleanup)¶
If you have made significant configuration changes and the platform is behaving unpredictably, run the following consolidated cleanup command:
This will clear:
- Configuration Cache
- Route Cache
- Compiled Views
- Application Cache
Issue still persisting? Email Tech Support → View Known Issues →