Installation Issues
Composer Install Fails
Problem:composer install fails with dependency errors
Solution:
- Ensure you have PHP 8.0 or higher installed:
- Clear Composer cache:
- Try installing with verbose output to identify the issue:
- Update Composer to the latest version:
Database Connection Errors
Problem: Cannot connect to database during setup Solution:- Verify database credentials are correct
- Ensure the database server is running
- Check that the database user has proper permissions:
- CREATE, ALTER, DROP permissions for tables
- INSERT, UPDATE, DELETE, SELECT permissions for data
- For MySQL/MariaDB, verify the port (default: 3306)
- For PostgreSQL, verify the port (default: 5432)
- Check firewall settings if database is on a remote server
Permission Issues
Problem: Permission denied errors when accessing files Solution:- Ensure the web server user has write permissions:
- Key directories that need write permissions:
MyFiles/Dinamic/Cache/
Runtime Issues
White Screen / Blank Page
Problem: Application shows a white screen with no error Solution:- Enable error display in PHP:
- Check PHP error logs:
- Check web server error logs:
- Verify all dependencies are installed:
500 Internal Server Error
Problem: HTTP 500 error when accessing the application Solution:- Check web server error logs for specific error messages
- Verify
.htaccessfile exists and is properly configured (Apache) - Ensure mod_rewrite is enabled (Apache):
- Check Nginx configuration for proper PHP-FPM setup
- Verify PHP extensions are installed:
Session Issues / Constant Logouts
Problem: Users are logged out frequently Solution:- Check session configuration in PHP:
- Ensure session directory is writable
- Verify session cookie settings in configuration
- Check if system clock is synchronized (important for session expiration)
Performance Issues
Slow Page Load Times
Problem: Application loads slowly Solution:- Enable PHP OpCache:
- Clear application cache:
- Optimize database:
- Add indexes to frequently queried columns
- Run database optimization tools
- Check slow query log
- Check server resources (CPU, RAM, disk I/O)
High Memory Usage
Problem: PHP memory limit exceeded errors Solution:- Increase PHP memory limit:
- Optimize database queries
- Reduce the number of plugins loaded
- Check for memory leaks in custom code
Plugin Issues
Plugin Not Loading
Problem: Installed plugin doesn’t appear or work Solution:- Verify plugin is enabled in the plugins section
- Check plugin compatibility with your FacturaScripts version
- Clear cache after installing plugins
- Review plugin error logs
- Ensure plugin dependencies are installed
Plugin Conflicts
Problem: Application breaks after installing a plugin Solution:- Disable the recently installed plugin
- Check for conflicts with other plugins
- Review plugin documentation for known issues
- Report the issue to plugin developer
- As a last resort, manually remove the plugin directory
Update Issues
Update Fails
Problem: Updating FacturaScripts causes errors Solution:- Always backup before updating:
- Check release notes for breaking changes
- Ensure all dependencies are updated:
- Clear cache after updating
- Run database migrations if required
Database Migration Errors
Problem: Database migration fails during update Solution:- Check database user has ALTER permissions
- Review migration error messages in logs
- Restore from backup if migration corrupts data
- Report migration issues on GitHub with error details
Getting More Help
If you’re still experiencing issues:- Search GitHub Issues for similar problems
- Ask in the Discord Community
- Create a detailed bug report including:
- FacturaScripts version
- PHP version
- Database type and version
- Web server type and version
- Error messages and logs
- Steps to reproduce the issue

