Troubleshooting Guide
Common issues, solutions, and debugging techniques for WP Automator
This comprehensive guide helps you diagnose and resolve common issues in WP Automator. Find solutions to frequent problems, debugging techniques, and optimization tips.
Quick Diagnostics
System Health Check
Run diagnostics to identify issues:
Connection Test
Verify WordPress site connectivity
API Status
Check external service availability
Article Balance
Check remaining monthly articles
Permission Check
Validate user permissions
Diagnostic Commands
# Check system status
GET /api/health
# Test WordPress connection
POST /api/sites/{siteId}/test
# Verify API keys
GET /api/settings/validate
# Check article usage
GET /api/billing/usage
Common Issues & Solutions
WordPress Connection Issues
Problem: Unable to connect to WordPress site
Possible Causes:
- Incorrect site URL
- Site is offline
- Firewall blocking requests
- SSL certificate issues
Solutions:
Steps to Resolve:
1. Verify Site URL:
- Check for typos
- Include https:// or http://
- Remove trailing slashes
- Test in browser
2. Check Site Status:
- Visit site directly
- Check hosting status
- Verify DNS resolution
3. Firewall Settings:
- Whitelist WP Automator IPs
- Check security plugins
- Review hosting firewall
4. SSL Issues:
- Update expired certificates
- Fix mixed content warnings
- Check certificate chain
Tip: Use the connection test tool to get detailed error messages.
Problem: WordPress authentication errors
Error Messages:
- "Invalid username or password"
- "Application password required"
- "User lacks required capabilities"
Solutions:
Authentication Fixes:
1. Application Password:
- Generate new app password
- Remove spaces when copying
- Check password hasn't expired
- Ensure user has permissions
2. User Permissions:
Required Role: Editor or Administrator
Required Capabilities:
- edit_posts
- publish_posts
- upload_files
- manage_categories
3. Security Plugins:
- Disable 2FA for API access
- Whitelist application
- Check login restrictions
4. REST API Access:
- Ensure REST API enabled
- Check .htaccess rules
- Verify permalink settings
Quick Fix Script:
// Add to functions.php temporarily
add_filter('rest_authentication_errors', function($result) {
if (!empty($result)) {
return $result;
}
if (!is_user_logged_in()) {
return new WP_Error('rest_not_logged_in',
'You are not currently logged in.',
array('status' => 401));
}
return $result;
});
Problem: Requests timing out
Symptoms:
- "Request timeout after 30000ms"
- "ETIMEDOUT" errors
- Slow response times
Solutions:
Timeout Resolutions:
1. Server Performance:
- Upgrade hosting plan
- Optimize database
- Clear cache
- Reduce plugins
2. Network Issues:
- Check latency to server
- Use CDN for assets
- Enable compression
3. WP Automator Settings:
- Increase timeout values
- Reduce batch sizes
- Enable retry logic
4. WordPress Optimization:
- Install caching plugin
- Optimize images
- Minify CSS/JS
- Use object caching
Content Generation Problems
Problem: Content generation fails
Common Errors:
{
"error": "Content generation failed",
"code": "GENERATION_ERROR",
"details": "Generation service returned empty response"
}
Troubleshooting Steps:
Check Usage
- Verify article limit not reached
- Review monthly allowance
- Check plan restrictions
Validate Prompts
- Remove special characters
- Check prompt length
- Avoid prohibited content
Generation Issues
- Adjust content settings
- Check service availability
- Verify API status
API Limits
- Check rate limits
- Review daily quotas
- Monitor concurrent requests
Problem: Generated content quality issues
Quality Problems:
- Repetitive content
- Off-topic generation
- Grammar errors
- Incomplete articles
Improvement Strategies:
Quality Enhancement:
Prompt Optimization:
- Be specific and detailed
- Include examples
- Set clear constraints
- Define target audience
Content Optimization:
Better Quality:
- Increase word count for complex topics
- Use detailed prompts for better results
Balance Quality/Cost:
- Standard settings for most content
- Upgrade for critical pieces
Settings Adjustment:
- Increase temperature for creativity
- Decrease for factual content
- Adjust max tokens for length
- Fine-tune top_p parameter
Post-Processing:
- Enable grammar checking
- Add SEO optimization
- Include fact-checking
- Apply style guides
Problem: Content formatting problems
Common Issues:
- Broken HTML
- Missing paragraphs
- Incorrect headings
- Lost formatting
Solutions:
// Formatting fixes
const formatFixes = {
html_cleanup: {
issue: "Broken HTML tags",
fix: "Enable HTML sanitization",
setting: "sanitize_html: true"
},
paragraph_breaks: {
issue: "Missing paragraphs",
fix: "Adjust paragraph detection",
setting: "auto_paragraph: true"
},
heading_structure: {
issue: "Incorrect heading hierarchy",
fix: "Enable heading normalization",
setting: "normalize_headings: true"
},
special_characters: {
issue: "Character encoding issues",
fix: "Set UTF-8 encoding",
setting: "charset: 'UTF-8'"
}
};
Note: Always preview content before publishing to catch formatting issues.
Billing & Usage Issues
Usage Not Updating
Check payment processing, refresh dashboard, contact support if persists
Unexpected Charges
Review usage logs, check for failed operations, verify plan limits
Article Usage High
Plan content calendar, batch similar topics, monitor failed attempts
Payment Failed
Update payment method, check card limits, verify billing address
Performance Optimization
Slow Operations
Diagnose and fix performance issues:
Optimize Generation Speed:
Performance Improvements:
1. Generation Optimization:
- Use standard generation settings
- Reduce content length
- Adjust quality settings
2. Batch Processing:
- Group similar content
- Use templates
- Cache common elements
3. Parallel Processing:
- Enable concurrent generation
- Increase worker count
- Optimize queue settings
4. Caching Strategy:
- Cache prompts
- Store templates
- Reuse components
Speed Up Publishing:
Publishing Optimization:
1. WordPress Site:
- Optimize database
- Enable caching
- Upgrade hosting
- Reduce plugins
2. Network:
- Use closer servers
- Enable compression
- Implement CDN
3. Batch Settings:
- Reduce batch size
- Sequential publishing
- Implement delays
4. Content Size:
- Optimize images
- Minimize HTML
- External media hosting
Improve Interface Speed:
UI Optimization:
1. Browser:
- Clear cache/cookies
- Disable extensions
- Update browser
- Use Chrome/Firefox
2. Data Loading:
- Enable pagination
- Reduce page size
- Filter unnecessary data
3. Real-time Updates:
- Adjust refresh rate
- Disable live updates
- Use manual refresh
4. Local Issues:
- Check internet speed
- Close other tabs
- Restart browser
Debugging Techniques
Enable Debug Mode
Activate detailed logging:
// Enable debug mode
const debugConfig = {
enabled: true,
logLevel: 'verbose',
components: {
api: true,
generation: true,
publishing: true,
billing: true
},
output: {
console: true,
file: true,
remote: false
},
sensitive: {
maskPasswords: true,
maskApiKeys: true,
maskPersonalData: true
}
};
Debug Information
Collect diagnostic data:
Browser Console
- Open Developer Tools (F12)
- Check Console for errors
- Review Network tab
- Inspect failed requests
API Logs
- Access operation logs
- Review error details
- Check timestamps
- Analyze patterns
System Information
// Gather system info
GET /api/debug/info
{
"version": "2.1.0",
"environment": "production",
"node_version": "18.17.0",
"memory_usage": "234MB",
"uptime": "5d 12h 34m"
}
Export Debug Bundle
- Download logs
- Include screenshots
- Add error messages
- Send to support
FAQ
Frequently Asked Questions
Quick Tip: Use Ctrl+F (Cmd+F on Mac) to search for specific issues.
Q: Why is my content not appearing on WordPress? A: Check these common causes:
- Post status (draft vs. published)
- Scheduled for future date
- User permissions insufficient
- Category/tag restrictions
Q: How do I optimize article usage? A: Make the most of your monthly limit:
- Plan content calendar in advance
- Batch similar topics together
- Use templates for consistency
- Monitor success rates to avoid failures
Q: Can I recover failed operations? A: Yes, several options:
- Retry from dashboard
- Modify and retry
- Export and reimport
- Contact support for help
Q: Why are images not generating? A: Common image issues:
- Image API quota exceeded
- Content policy violation
- Provider temporarily down
- Invalid image prompt
Q: How do I handle rate limits? A: Rate limit strategies:
- Reduce parallel operations
- Add delays between requests
- Use queue management
- Upgrade plan for higher limits
Error Code Reference
Common Error Codes
Code | Description | Solution |
---|---|---|
AUTH_001 | Authentication failed | Regenerate app password |
API_429 | Rate limit exceeded | Wait and retry |
GEN_001 | Generation failed | Check article limit and prompt |
PUB_001 | Publishing failed | Verify site connection |
BILL_001 | Payment issue | Update payment method |
QUOTA_001 | Quota exceeded | Upgrade plan or wait |
NET_001 | Network error | Check connectivity |
VAL_001 | Validation error | Fix input data |
Advanced Troubleshooting
Database Issues
-- Check for stuck operations
SELECT * FROM operations
WHERE status = 'processing'
AND updated_at < NOW() - INTERVAL '1 hour';
-- Clear failed queue items
UPDATE queue_items
SET status = 'failed'
WHERE attempts > max_attempts;
-- Check user article usage (admin only)
SELECT articles_used, articles_limit
FROM subscriptions
WHERE user_id = 'user_id';
API Debugging
# Test API endpoint
curl -X POST https://api.wpautomator.com/v1/generate \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "Test article"}'
# Check rate limit headers
curl -I https://api.wpautomator.com/v1/status \
-H "Authorization: Bearer YOUR_TOKEN"
Cache Issues
Clear various caches:
Cache Types:
Browser Cache:
- Hard refresh: Ctrl+F5
- Clear site data
- Incognito mode test
Application Cache:
- Clear localStorage
- Reset sessionStorage
- Delete cookies
Server Cache:
- Redis flush
- CDN purge
- Database query cache
Getting Help
Support Resources
Documentation
Comprehensive guides and tutorials
Community Forum
Get help from other users
Email Support
Direct assistance from our team
Live Chat
Real-time help during business hours
Contacting Support
When contacting support, include:
-
Error Details
- Exact error message
- Error code if available
- Screenshot of issue
- Time of occurrence
-
Steps to Reproduce
- What you were doing
- Expected outcome
- Actual result
- Frequency of issue
-
System Information
- Browser and version
- Operating system
- Account type/plan
- Site URLs affected
-
Debug Information
- Console errors
- Network logs
- API responses
- Debug bundle
Pro Tip: The more information you provide, the faster we can resolve your issue.
Preventive Measures
Best Practices
Avoid common issues:
-
Regular Maintenance
- Update WordPress sites
- Rotate app passwords
- Monitor article usage
- Review error logs
-
Configuration Checks
- Test connections weekly
- Verify API keys
- Update settings
- Backup configurations
-
Performance Monitoring
- Track operation times
- Monitor success rates
- Track article generation
- Review error patterns
-
Security Measures
- Use strong passwords
- Enable 2FA
- Regular audits
- Update dependencies
Next Steps
Continue improving your experience:
- Error Handling for automatic recovery
- Progress Monitoring for operation tracking
- Usage Optimization for efficiency
- API Documentation for advanced integration
Still experiencing issues? Our support team is ready to help. Contact us through the dashboard or email with your debug information.
Last updated on