Troubleshooting Guide
Comprehensive troubleshooting guide for AI Product Tools including common issues, solutions, and debugging techniques
This comprehensive guide helps you diagnose and resolve common issues with AI Product Tools. Follow the systematic approach to quickly identify and fix problems.
Quick Diagnostic Checklist
Before diving into specific troubleshooting, run through this quick checklist:
Essential Checks:
- WordPress and WooCommerce are up to date
- AI Product Tools plugin is activated
- API key is correctly configured
- Internet connection is stable
- No JavaScript errors in browser console
- Sufficient server resources available
Most Frequent Issues
API Key Problems (40%)
Invalid, expired, or incorrectly configured API keys
Network Issues (25%)
Connectivity problems, firewall blocks, DNS issues
Plugin Conflicts (15%)
Conflicts with other WordPress plugins
Server Resources (10%)
Memory limits, execution timeouts, performance issues
Configuration Errors (10%)
Incorrect settings, missing requirements
Installation Problems
Plugin Won't Activate
Symptoms
- Error message during activation
- Plugin appears inactive after activation attempt
- WordPress admin becomes inaccessible
Possible Causes
Common Causes:
- PHP Version: Plugin requires PHP 7.4+
- Memory Limit: Insufficient memory allocation
- Plugin Conflicts: Conflicting with other plugins
- File Permissions: Incorrect file/folder permissions
Solutions
Check PHP Version:
- Go to Tools → Site Health → Info
- Look for PHP version under Server section
- Contact hosting provider if PHP < 7.4
Increase Memory Limit:
// Add to wp-config.php
ini_set('memory_limit', '256M');
Resolve Plugin Conflicts:
- Deactivate all other plugins
- Try activating AI Product Tools
- If successful, reactivate other plugins one by one
- Identify conflicting plugin
Fix File Permissions:
- Folders: 755 or 750
- Files: 644 or 640
- Contact hosting provider for assistance
WooCommerce Not Detected
Symptoms
- Warning message about WooCommerce requirement
- Plugin features not available
- Missing product integration
Solutions
Resolution Steps:
- Install WooCommerce: Go to Plugins → Add New → Search "WooCommerce"
- Activate WooCommerce: Ensure WooCommerce is active
- Update WooCommerce: Use latest version
- Check Plugin Order: Ensure WooCommerce loads before AI Product Tools
Setup Wizard Issues
Symptoms
- Setup wizard doesn't appear
- Wizard gets stuck on a step
- Cannot complete initial configuration
Solutions
- Clear Browser Cache: Hard refresh (Ctrl+F5)
- Disable Browser Extensions: Try in incognito mode
- Check JavaScript: Look for console errors
- Manual Setup: Skip wizard and configure manually in settings
API Connection Issues
Invalid API Key Errors
Symptoms
- "Invalid API key" error messages
- Connection test failures
- Generation requests fail immediately
OpenAI API Key Issues
Common Problems:
- Incorrect Format: Key should start with
sk-
- Expired Key: Key may have been revoked
- Billing Issues: Account may have payment problems
- Usage Limits: May have exceeded quota
Solutions:
- Verify Key Format: Ensure key starts with
sk-
and is complete - Check OpenAI Dashboard: Verify key status at platform.openai.com
- Regenerate Key: Create new API key if needed
- Check Billing: Ensure account has valid payment method
- Review Usage: Check if quota limits exceeded
Gemini API Key Issues
Common Problems:
- Project Issues: API key not associated with correct project
- Service Disabled: Gemini API not enabled
- Quota Exceeded: Free tier limits reached
- Regional Restrictions: Service not available in region
Solutions:
- Check Project: Verify API key project in Google AI Studio
- Enable Service: Ensure Gemini API is enabled
- Review Quotas: Check usage limits and restrictions
- Regional Access: Verify service availability in your region
Network Connectivity Problems
Symptoms
- Timeout errors
- Intermittent connection failures
- Slow response times
Possible Causes
Network Issues:
- Firewall Blocking: Server firewall blocking API requests
- DNS Issues: Domain resolution problems
- SSL/TLS Problems: Certificate or encryption issues
- Proxy Interference: Corporate proxy blocking requests
Solutions
Check Firewall Settings:
- Allow outbound HTTPS connections
- Whitelist API domains:
api.openai.com
generativelanguage.googleapis.com
Test DNS Resolution:
nslookup api.openai.com
nslookup generativelanguage.googleapis.com
Verify SSL/TLS:
- Ensure server supports TLS 1.2+
- Check SSL certificate validity
- Update cURL if necessary
Proxy Configuration:
- Configure WordPress to use proxy if required
- Add proxy settings to wp-config.php if needed
Generation Problems
Generation Fails to Start
Symptoms
- "Generate Content" button doesn't respond
- No loading indicators appear
- Process never begins
Possible Causes
Common Causes:
- JavaScript Errors: Browser console shows errors
- AJAX Issues: WordPress AJAX not working
- Nonce Verification: Security token problems
- Plugin Conflicts: JavaScript conflicts with other plugins
Solutions
Check Browser Console:
- Open browser developer tools (F12)
- Look for JavaScript errors in Console tab
- Refresh page and try generation again
- Note any error messages
Test AJAX Functionality:
- Try other WordPress AJAX features
- Check if admin-ajax.php is accessible
- Verify WordPress AJAX is working
Clear Caches:
- Clear browser cache
- Clear WordPress caches (if using caching plugins)
- Clear CDN caches if applicable
Generation Stops Mid-Process
Symptoms
- Generation starts but stops partway through
- Some products processed, others remain pending
- Progress indicator freezes
Possible Causes
Process Interruption Causes:
- API Rate Limits: Hitting provider rate limits
- Server Timeouts: PHP execution time limits
- Memory Exhaustion: Running out of server memory
- Network Interruptions: Connection drops during process
Solutions
Handle Rate Limits:
- Reduce batch size
- Increase generation intervals
- Use Standard mode for unlimited generation
Increase Server Limits:
// Add to wp-config.php or .htaccess
ini_set('max_execution_time', 300);
ini_set('memory_limit', '512M');
Optimize Batch Size:
- Start with smaller batches (10-20 products)
- Gradually increase if successful
- Monitor server resources during generation
Partial Generation Results
Symptoms
- Some content types generate, others don't
- Inconsistent results across products
- Missing descriptions or tags
Possible Causes
Data and Template Issues:
- Content Length Issues: Generated content too long/short
- API Response Problems: Incomplete API responses
- Data Validation Failures: Product data validation issues
- Template Problems: Prompt template issues
Solutions
Check Content Settings:
- Verify length limits are reasonable
- Adjust max_length settings if needed
- Test with different length parameters
Validate Product Data:
- Ensure products have required information
- Check for special characters in product data
- Verify custom field values are present
Test Prompt Templates:
- Simplify prompt templates
- Remove complex variables temporarily
- Test with basic prompts first
Performance Issues
Slow Generation Speed
Symptoms
- Generation takes much longer than expected
- Timeouts during bulk operations
- Poor responsiveness during generation
Possible Causes
Performance Bottlenecks:
- Server Resources: Limited CPU/memory
- Network Latency: Slow connection to API
- Large Batch Sizes: Processing too many products at once
- Complex Prompts: Overly detailed prompt templates
Solutions
Optimize Server Performance:
- Upgrade hosting plan if needed
- Increase PHP memory limit
- Use SSD storage for better I/O
- Optimize database queries
Reduce Batch Sizes:
- Process 20-50 products at a time
- Use smaller batches during peak hours
- Schedule bulk operations during off-peak times
Simplify Prompts:
- Remove unnecessary complexity
- Reduce prompt length
- Optimize variable usage
High Memory Usage
Symptoms
- "Fatal error: Allowed memory size exhausted"
- Server becomes unresponsive
- Other WordPress functions affected
Solutions
Increase Memory Limit:
// wp-config.php
ini_set('memory_limit', '512M');
Optimize Processing:
- Process products in smaller batches
- Clear variables between generations
- Use more efficient algorithms
Monitor Usage:
- Use server monitoring tools
- Track memory usage patterns
- Identify memory leaks
Content Quality Issues
Poor Quality Output
Symptoms
- Generated content is generic or irrelevant
- Descriptions don't match products
- Inconsistent writing style
Possible Causes
Quality Issues:
- Inadequate Product Data: Missing or poor product information
- Poor Prompt Design: Ineffective prompt templates
- Wrong Model Selection: Using inappropriate AI model
- Insufficient Context: Not enough product context
Solutions
Improve Product Data:
- Add detailed product information
- Include relevant attributes and categories
- Ensure custom fields are populated
- Add high-quality product images
Optimize Prompts:
- Be more specific in instructions
- Include examples of desired output
- Add brand voice guidelines
- Use relevant variables effectively
Try Different Models:
- Test with higher-quality models
- Compare outputs from different providers
- Adjust model parameters if available
Inconsistent Results
Symptoms
- Quality varies significantly between products
- Different writing styles in same batch
- Inconsistent formatting or structure
Solutions
Standardize Prompts:
- Use consistent prompt templates
- Define clear style guidelines
- Include specific formatting instructions
- Test prompts with multiple products
Improve Data Quality:
- Ensure consistent product data format
- Standardize attribute naming
- Clean up product information
- Use consistent categorization
Use Advanced Features:
- Leverage custom variables for consistency
- Use Advanced mode for better control
- Apply brand voice settings
- Review and refine templates regularly
Common Error Messages
Error Messages and Solutions
API key is invalid or expired
Solution: Verify API key in provider dashboard, regenerate if necessary
Rate limit exceeded
Solution: Reduce generation frequency, wait before retrying
Network error occurred
Solution: Check internet connection, verify firewall settings
Insufficient credits
Solution: Check credit balance, upgrade plan if needed
Product data validation failed
Solution: Review product information, ensure required fields are present
Generation timeout
Solution: Reduce batch size, increase server timeout limits
Debug Mode
Enabling Debug Mode
// Add to wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('AIPT_DEBUG', true);
Checking Debug Logs
- Navigate to
/wp-content/debug.log
- Look for AIPT-related entries
- Share relevant log entries with support
Getting Support
Before Contacting Support
Gather Information
Essential Information:
- WordPress version
- WooCommerce version
- AI Product Tools version
- PHP version
- Error messages (exact text)
- Steps to reproduce issue
Try Basic Troubleshooting
- Deactivate other plugins temporarily
- Switch to default WordPress theme
- Clear all caches
- Test with different browser
Support Channels
Documentation
- Review all documentation sections
- Check FAQ for common issues
- Search for similar problems
Community Support
- WordPress.org plugin forum
- WooCommerce community forums
- Developer communities
Premium Support
- Direct email support for premium users
- Priority response times
- Advanced troubleshooting assistance
Providing Effective Support Requests
Include Essential Information
- System Information: WordPress, PHP, server details
- Error Details: Exact error messages, when they occur
- Steps to Reproduce: Clear steps to recreate the issue
- Screenshots: Visual evidence of problems
- Log Files: Relevant debug log entries
Be Specific
- Describe exactly what you expected to happen
- Explain what actually happened instead
- Provide context about your setup and usage
- Include any recent changes to your site
Related Topics
FAQ
Find answers to frequently asked questions
Best Practices
Learn optimization techniques to prevent issues
Settings Configuration
Properly configure your plugin settings
AI Models
Understand model selection and configuration