Troubleshooting Guide
This guide helps you resolve common issues with the NextGen OpenAI Chatbot plugin.
Quick Diagnostics
Is the Chatbot Working?
✅ Basic Functionality Check:
- Can you see the chat icon on your storefront?
- Does the chat window open when clicked?
- Does the chatbot respond to "Hello"?
- Are responses relevant and helpful?
❌ If any step fails, continue to the relevant section below.
Installation Issues
Plugin Not Visible
Symptoms:
- Chat icon doesn't appear on storefront
- Plugin shows as installed but not working
- No response when trying to access chat
Solutions:
Check Plugin Status:
bin/console plugin:list
Ensure FelOaiChatbot shows as "Active"
Activate Plugin:
bin/console plugin:activate FelOaiChatbot
Clear Cache:
bin/console cache:clear
bin/console cache:warmupRebuild Assets:
bin/console assets:install
Dependency Issues
Symptoms:
- Installation fails with dependency errors
- Plugin conflicts with other extensions
- Missing required packages
Solutions:
Check Dependencies:
composer show fel/o-a-i-assistants-manager
Install Dependencies:
composer install
Update Dependencies:
composer update
Resolve Conflicts:
- Check for plugin conflicts
- Update Shopware to latest version
- Review system requirements
Configuration Issues
API Connection Problems
Symptoms:
- "API connection failed" errors
- Chatbot not responding
- Authentication errors
Solutions:
Verify API Key:
- Check if API key starts with
sk-
- Ensure no extra spaces or characters
- Test with a fresh API key
- Check if API key starts with
Check OpenAI Account:
- Verify billing is enabled
- Ensure sufficient credits
- Check API usage limits
Test API Connection:
- Use the built-in "Test API Key" button
- Check OpenAI Platform status
- Verify network connectivity
Common API Key Issues:
❌ sk-abc123... (truncated key)
✅ sk-proj-abc123def456... (full key)
❌ API key with spaces
✅ API key without spaces
❌ Expired or revoked key
✅ Active, valid key
Assistant Configuration Problems
Symptoms:
- "Assistant not found" errors
- Responses don't match your configuration
- Assistant behaves unexpectedly
Solutions:
Verify Assistant ID:
- Check format starts with
asst_
- Ensure Assistant exists in OpenAI Platform
- Verify Assistant is not deleted
- Check format starts with
Check Assistant Configuration:
- Review Assistant instructions
- Verify enabled functions
- Check model selection
Test Assistant Directly:
- Use OpenAI Playground to test
- Verify Assistant works independently
- Check for recent changes
Permission Issues
Symptoms:
- "Access denied" errors
- Chatbot not visible to customers
- Authentication problems
Solutions:
Check Plugin Settings:
- Verify "Enable Plugin" is checked
- Review authentication settings
- Check customer group restrictions
Customer Group Configuration:
- Verify customer groups exist
- Check if customer is in allowed groups
- Test with different customer accounts
Clear Customer Sessions:
bin/console cache:pool:clear cache.app
Functional Issues
Chatbot Not Responding
Symptoms:
- Chat window opens but no responses
- "Thinking" indicator stays forever
- Error messages in chat
Diagnostic Steps:
Check Browser Console:
- Open Developer Tools (F12)
- Look for JavaScript errors
- Check Network tab for failed requests
Test in Different Browser:
- Try incognito/private mode
- Test with different browsers
- Check mobile devices
Verify Server Logs:
tail -f var/log/prod.log
Common Solutions:
Clear Browser Cache:
- Force refresh (Ctrl+F5)
- Clear cookies and cache
- Disable browser extensions
Check Network Issues:
- Verify internet connectivity
- Check firewall settings
- Test API access directly
Server Configuration:
- Verify PHP settings
- Check memory limits
- Review timeout settings
Poor Response Quality
Symptoms:
- Irrelevant responses
- Incorrect product suggestions
- Outdated information
Solutions:
Review Assistant Instructions:
- Update with current information
- Add specific guidelines
- Include example responses
Update Knowledge Base:
- Refresh FAQ content
- Update meta information
- Review product data
Optimize Configuration:
- Adjust search limits
- Review category filters
- Update property settings
Search Not Working
Symptoms:
- "No products found" errors
- Irrelevant search results
- Search functionality not available
Solutions:
Check Product Data:
- Verify products are active
- Check product descriptions
- Review category assignments
Configuration Review:
- Check search result limits
- Review category blacklists
- Verify property settings
Test Search Manually:
- Use Shopware's built-in search
- Check product visibility
- Verify search index
Performance Issues
Slow Response Times
Symptoms:
- Long delays before responses
- Timeout errors
- Poor user experience
Solutions:
Optimize Configuration:
- Reduce search result limits
- Limit product description length
- Use property whitelists
Check API Usage:
- Monitor OpenAI usage dashboard
- Check for rate limits
- Optimize token usage
Server Performance:
- Check server resources
- Optimize database queries
- Review caching settings
High API Costs
Symptoms:
- Unexpected billing charges
- Rapid credit consumption
- Budget alerts from OpenAI
Solutions:
Analyze Usage:
- Review OpenAI usage dashboard
- Check token consumption patterns
- Identify expensive operations
Optimize Settings:
- Reduce input length limits
- Limit search results
- Optimize product descriptions
Implement Limits:
- Set customer group restrictions
- Add rate limiting
- Monitor usage regularly
Browser Compatibility
JavaScript Errors
Symptoms:
- Console errors
- Broken functionality
- Layout issues
Solutions:
Check Browser Support:
- Verify modern browser usage
- Check JavaScript enabled
- Review browser extensions
Update Resources:
- Clear browser cache
- Update plugin assets
- Check for conflicts
Test Compatibility:
- Test in multiple browsers
- Check mobile devices
- Verify responsive design
Mobile Issues
Symptoms:
- Poor mobile experience
- Touch interaction problems
- Layout breaking
Solutions:
Responsive Design:
- Check viewport settings
- Verify touch targets
- Test on different devices
Performance Optimization:
- Optimize for mobile networks
- Reduce resource usage
- Implement progressive loading
Data and Privacy
GDPR Compliance Issues
Symptoms:
- Cookie consent problems
- Data handling concerns
- Privacy policy conflicts
Solutions:
Review Privacy Settings:
- Check cookie configuration
- Verify consent mechanisms
- Update privacy policies
Data Handling:
- Review data collection
- Check retention policies
- Implement deletion procedures
Compliance Verification:
- Audit data flows
- Review legal requirements
- Consult with legal team
Local Storage Problems
Symptoms:
- Chat history not saving
- Settings not persisting
- Storage quota exceeded
Solutions:
Browser Storage:
- Check storage permissions
- Clear existing data
- Verify quota limits
Configuration Review:
- Check storage settings
- Verify consent handling
- Test different browsers
Advanced Diagnostics
Debug Mode
Enable Debug Logging:
# In your .env file
APP_DEBUG=true
APP_ENV=dev
Check Logs:
tail -f var/log/dev.log | grep -i "fel.*chatbot"
Network Analysis
Check API Requests:
- Open Browser DevTools
- Go to Network tab
- Look for requests to
/fel/chat/
- Check response status and content
Database Queries
Check Configuration:
SELECT * FROM system_config WHERE configuration_key LIKE 'FelOaiChatbot%';
Getting Help
Before Contacting Support
Gather Information:
- Plugin version
- Shopware version
- PHP version
- Error messages
- Browser information
- Steps to reproduce
Contact Information
Support Channels:
- Website: 5-elements-web.de
- Documentation: docs.5-elements.cloud
- Email: Available on website
Include in Support Request:
- Detailed problem description
- Error messages and screenshots
- System information
- Configuration details
- Steps already attempted
Community Resources
Additional Help:
- Shopware Community Forum
- OpenAI Platform Documentation
- Stack Overflow (tag: shopware)
- GitHub Issues (if applicable)
Still Having Issues? Don't hesitate to contact our support team. We're here to help you get the most out of your NextGen OpenAI Chatbot.