Appearance
Troubleshooting
Comprehensive troubleshooting guide for Virtual Files plugin. Find solutions to common issues and optimize performance.
Installation Issues
Plugin Won't Activate
Symptoms:
- White screen after activation
- Fatal error messages
- Plugin not appearing in admin
Solutions:
Check PHP Version
- WordPress requires PHP 7.4+ (8.0+ recommended)
- Check with your hosting provider
- Update if necessary
Increase Memory Limit
- Increase WordPress memory limit to 256M+
- Contact hosting provider if needed
Check for Conflicts
- Temporarily disable other plugins
- Activate default WordPress theme
- Check for plugin-specific conflicts
Enable Debug Mode
- Add
define('WP_DEBUG', true);to wp-config.php - Check error logs for details
- Add
Verify Database Connection
- Ensure WordPress can connect to database
- Check database credentials in wp-config.php
File Access Issues
Virtual Files Return 404
Symptoms:
- Virtual file URLs show 404 errors
- "File not found" messages
- WordPress 404 template displayed
Solutions:
Flush Rewrite Rules
- Go to Virtual Files → Settings
- Click Flush Rewrite Rules
- Or visit Settings → Permalinks and click Save Changes
Check File Status
- Edit virtual file in WordPress admin
- Ensure status is set to "Active"
- Save changes
Verify Server Configuration
- Ensure .htaccess is writable
- Verify server supports rewrite rules
- Contact hosting provider if needed
Clear Caching
- Clear all server caches
- Clear WordPress cache
- Clear browser cache
Incorrect MIME Types
Symptoms:
- Files download instead of displaying
- Browser shows raw text instead of formatted content
- Content-Type headers incorrect
Solutions:
Check File Extension
- Ensure correct file extension (.txt, .json, .xml, etc.)
- Verify extension matches file content
Test Headers
- Use browser developer tools to check Content-Type headers
- Verify headers match file type
Clear Caches
- Clear browser cache
- Clear server cache
- Test with different browser
Performance Issues
Slow File Loading
Symptoms:
- Virtual files load slowly
- High server response times
- Timeouts on large files
Solutions:
Enable Caching (Pro version)
- Go to Virtual Files → Settings
- Enable Performance Caching
- Set appropriate TTL (1-24 hours)
Clear Caches
- Clear Virtual Files cache (Pro version)
- Clear server cache
- Clear browser cache
Optimize Database
- Optimize WordPress database
- Clean up post revisions
- Use proper database indexing
Check Server Resources
- Verify adequate server memory
- Check CPU usage
- Monitor disk space
Admin Interface Issues
Admin Pages Not Loading
Symptoms:
- Blank admin pages
- JavaScript errors in console
- CSS not loading properly
Solutions:
Check Browser Console
- Open browser developer tools
- Look for JavaScript errors
- Clear browser cache
Plugin Conflicts
- Temporarily disable other plugins
- Test with default WordPress theme
- Re-enable plugins one by one
Memory Issues
- Increase WordPress memory limit
- Check server error logs
- Contact hosting provider
Settings Not Saving
Symptoms:
- Settings reset to defaults
- "Settings not saved" message
- AJAX errors in console
Solutions:
Check AJAX Handler
- Verify AJAX endpoints are working
- Check for JavaScript errors
Check Nonce Verification
- WordPress security tokens may be failing
- Try refreshing the page
Check Database Permissions
- Ensure WordPress can write to options table
- Verify database user has correct permissions
Clear Caches
- Clear all caches
- Try saving again
Security Issues
Access Control Problems
Symptoms:
- Unauthorized users can access files
- Permission checks failing
- Security warnings
Solutions:
Verify User Roles
- Check user capabilities in WordPress admin
- Ensure proper role assignments
Check Plugin Permissions
- Verify WordPress file permissions
- Check server security settings
Update Plugin
- Ensure latest Virtual Files version
- Check for security updates
Content Security Issues
Symptoms:
- Security warnings in browser
- Content not displaying correctly
- Potential XSS vulnerabilities
Solutions:
Validate Content
- Ensure file content is properly formatted
- Check for malicious code
Check Output Headers
- Verify Content-Type headers are correct
- Ensure security headers are present
Update WordPress
- Keep WordPress core updated
- Update all plugins
Debugging Tools
Enable Debug Mode
Add to wp-config.php:
php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);Check Debug Logs
- WordPress debug log:
wp-content/debug.log - Server error logs: Check with hosting provider
- PHP error logs: Check with hosting provider
Test Virtual Files
Direct URL Test
- Access virtual file URL directly in browser
- Check HTTP response headers
- Verify content displays correctly
Header Test
bashcurl -I https://yourdomain.com/your-file.txtError Log Check
- Check WordPress debug log for errors
- Check server error logs
- Check PHP error logs
Getting Help
Self-Service Resources
- Documentation: Browse our complete documentation
- FAQ: Check frequently asked questions
- Community Forums: Search WordPress.org forums
Contact Support
Free Version:
- WordPress.org Forums: Community support
- Documentation: Self-service resources
- Bug Reports: Report issues on WordPress.org
Pro Version:
- Priority Email: Available through WordPress admin or Freemius
- Direct Support: Developer assistance available
Reporting Issues
When reporting issues, please include:
Environment Information:
- WordPress version
- PHP version
- Server software (Apache/Nginx)
- Browser and version
- Other active plugins
Error Details:
- Exact error message
- Steps to reproduce
- Expected vs actual behavior
- Frequency of occurrence
Debug Information:
- WordPress debug log entries
- Browser console errors
- Server error logs
- Screenshots if applicable
Prevention Tips
Regular Maintenance
Monitor Performance
- Check file access times regularly
- Monitor server resource usage
- Set up performance alerts
Keep Updated
- Update Virtual Files regularly
- Update WordPress core
- Update PHP and server software
- Monitor security advisories
Backup Regularly
- Backup WordPress database
- Backup virtual files settings
- Backup plugin files
- Test restore procedures
Security Audits
- Review file access logs
- Scan for vulnerabilities
- Review user permissions
- Test security measures
By following this troubleshooting guide, you should be able to resolve most common issues with Virtual Files plugin. If problems persist, don't hesitate to contact our support team.