Troubleshooting Guide
Troubleshooting Guide
Installation Issues
PHP Version Too Old
Error: "PHP version 8.0 or higher required"
Solution:
# Check current version
php -v
# Update PHP (Ubuntu/Debian)
sudo apt update
sudo apt install php8.1 php8.1-cli php8.1-fpm
# Update PHP (CentOS/RHEL)
sudo yum install php81 php81-php-cli php81-php-fpmMissing PHP Extensions
Error: "Required PHP extension missing"
Solution:
# Install required extensions (Ubuntu/Debian)
sudo apt install php8.1-json php8.1-mbstring php8.1-openssl php8.1-fileinfo
# Install required extensions (CentOS/RHEL)
sudo yum install php-json php-mbstring php-openssl php-fileinfoPermission Denied
Error: "Permission denied" or "Cannot write to directory"
Solution:
# Set ownership (replace www-data with your web server user)
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html
sudo chmod -R 750 /var/www/html/stockage
sudo chmod -R 750 /var/www/html/uploadsInstaller Not Loading
Symptoms: Blank page or 404 error
Solution:
- Check
public/index.phpexists - Verify Apache
mod_rewriteis enabled - Check Nginx configuration
- Review PHP error logs:
tail -f /var/log/php-errors.log - Verify file permissions
Configuration Issues
Settings Not Saving
Symptoms: Changes not persisting
Solution:
# Check file permissions
chmod 600 stockage/json/config.json
chown www-data:www-data stockage/json/config.json
# Check disk space
df -h
# Check error logs
tail -f stockage/logs/error.logEmail Not Sending
Symptoms: Emails not delivered
Check:
- SMTP settings are correct
- Credentials are valid
- Firewall allows SMTP port
- Test email function works
Solution:
- Verify SMTP host and port
- Check username/password
- Test with telnet:
telnet smtp.gmail.com 587 - Review email logs
Timezone Issues
Symptoms: Incorrect timestamps
Solution:
- Use proper timezone identifier:
Europe/Paris(notParis) - Set in Admin Panel > Settings > General
- Verify PHP timezone:
php -i | grep timezone
Performance Issues
Slow Page Loads
Symptoms: Pages load slowly
Check:
- Cache is enabled
- Assets are optimized
- Server resources adequate
- Database queries optimized
Solution:
# Enable caching
# Admin Panel > Settings > Performance > Enable Cache
# Clear cache
php app/Cli/console.php cache:clear
# Optimize assets
# Admin Panel > Settings > Performance > Asset OptimizationHigh Memory Usage
Symptoms: PHP memory errors
Solution:
# Increase PHP memory limit (php.ini)
memory_limit = 256MDatabase Slow (SQLite)
Symptoms: Slow queries
Solution:
-- Vacuum database
VACUUM;
-- Analyze tables
ANALYZE;
-- Reindex
REINDEX;User and Permission Issues
Can't Log In
Symptoms: Login fails
Check:
- Username/password correct
- Account not banned
- Email verified (if required)
- Rate limiting not blocking
Solution:
- Reset password via "Forgot Password"
- Check user status in admin panel
- Review rate limit settings
- Check error logs
Permission Denied
Symptoms: "You don't have permission"
Solution:
- Check user group permissions
- Verify category permissions
- Review user-specific overrides
- Clear cache and test
Can't Create Discussion
Symptoms: "Permission denied" when posting
Check:
- User has create permission
- Category allows new discussions
- Rate limiting not blocking
- User is not banned
Solution:
- Verify group permissions
- Check category settings
- Review rate limits
- Check user status
Plugin and Theme Issues
Plugin Not Loading
Symptoms: Plugin doesn't activate
Check:
- Plugin structure is correct
plugin.jsonis valid- Plugin class exists
- Check error logs
Solution:
# Check plugin structure
ls -la plugins/my-plugin/
# Validate plugin.json
cat plugins/my-plugin/plugin.json | jq .
# Check error logs
tail -f stockage/logs/error.logTheme Not Loading
Symptoms: Theme doesn't apply
Check:
- Theme directory structure
theme.jsonis valid- CSS/JS files exist
- File permissions
Solution:
- Verify theme structure
- Check
theme.jsonsyntax - Clear browser cache
- Clear Flatboard cache
Plugin Conflicts
Symptoms: Errors after plugin activation
Solution:
- Deactivate conflicting plugins
- Check hook priorities
- Review plugin code
- Contact plugin developers
Storage Issues
JSON Storage Errors
Symptoms: "Cannot write to file" or data loss
Solution:
# Check permissions
chmod 750 stockage/json/
chmod 644 stockage/json/*.json
# Check disk space
df -h
# Verify file locks
lsof stockage/json/SQLite Errors
Symptoms: Database errors
Check:
pdo_sqliteextension enabled- Database file permissions
- Disk space available
- Database integrity
Solution:
# Check extension
php -m | grep pdo_sqlite
# Check database
sqlite3 stockage/sqlite/flatboard.db "PRAGMA integrity_check;"
# Repair database
sqlite3 stockage/sqlite/flatboard.db ".recover" | sqlite3 recovered.dbEmail Issues
Emails Not Sending
Symptoms: No emails received
Check:
- SMTP settings correct
- Credentials valid
- Firewall allows SMTP
- Test email works
Solution:
- Verify SMTP configuration
- Test connection:
telnet smtp.gmail.com 587 - Check email logs
- Review spam folder
Emails Going to Spam
Symptoms: Emails in spam folder
Solution:
- Configure SPF records
- Set up DKIM signing
- Use reputable SMTP provider
- Avoid spam trigger words
Security Issues
CSRF Errors
Symptoms: "CSRF token mismatch"
Solution:
- Clear browser cache
- Ensure cookies enabled
- Check session configuration
- Verify HTTPS if using
Rate Limiting Issues
Symptoms: "Too many requests"
Solution:
- Wait for rate limit reset
- Review rate limit settings
- Contact admin if legitimate
- Check for abuse
Getting Help
Check Logs
Always check logs first:
# Error logs
tail -f stockage/logs/error.log
# PHP errors
tail -f stockage/logs/php-errors.log
# Access logs (if available)
tail -f /var/log/apache2/access.logEnable Debug Mode
Temporarily enable debug mode:
// In config.json or via admin panel
"debug": trueCommunity Support
- Official Forum: flatboard.org
- GitHub Issues: github.com/Fred89/flatboard
- Documentation: This documentation
Common Error Messages
"Class not found"
Solution: Clear cache and check autoloader
"File not writable"
Solution: Fix file permissions
"Database connection failed"
Solution: Check SQLite extension and permissions
"Plugin incompatible"
Solution: Update plugin or check compatibility
Prevention
Regular Maintenance
- Update Regularly - Keep Flatboard 5 updated
- Backup Regularly - Maintain backups
- Monitor Logs - Review logs regularly
- Test Changes - Test in staging first
Best Practices
- Follow Installation Guide - Follow official guides
- Set Correct Permissions - Use recommended permissions
- Use HTTPS - Always use HTTPS in production
- Keep Updated - Apply security updates promptly
Resources
- Installation Guide - Installation help
- Configuration Guide - Configuration help
- Security Guide - Security issues
- Performance Guide - Performance issues
Last updated: February 23, 2026