Troubleshooting
Solutions to common problems and how to get help when things go wrong.
Troubleshooting
This guide covers common issues you might encounter while using PhantomWP and how to resolve them.
Connection Issues
"Disconnected" Status
Symptoms: Header shows "Disconnected" with a red dot. Buttons are disabled.
Solutions:
- Wait a moment - reconnection is automatic
- Refresh the page if it doesn't reconnect within 30 seconds
- Check the Codespace - it may have stopped:
- Go to github.com/codespaces
- Find your Codespace and restart it
- Check your internet connection
"Connecting" Status Stuck
Symptoms: Shows "Connecting" with orange dot for more than a minute.
Solutions:
- Refresh the page
- Check if the Codespace is running in GitHub
- Try a different browser - Chrome or Edge recommended
- Clear browser cache and cookies
Codespace Won't Start
Symptoms: Codespace stays in "Starting" state or shows an error in GitHub.
Solutions:
- Wait longer - first-time starts can take 3-5 minutes
- Check GitHub status at githubstatus.com
- Delete and recreate the Codespace:
- Go to github.com/codespaces
- Delete the stuck Codespace
- Return to PhantomWP and create a new one
"Codespace Limit Reached"
Symptoms: Can't create new Codespaces in PhantomWP.
Solutions:
- Go to github.com/codespaces
- Delete Codespaces you're not using
- Return to PhantomWP and try again
GitHub free tier includes limited Codespace hours per month.
Service Status Issues
Astro Dev Server Stopped
Symptoms: Services panel shows Astro as "stopped". Preview doesn't load.
Solutions:
- Click the Services icon in the header
- Click Restart Services
- Wait 10-15 seconds for the server to start
- Refresh the preview
Preview Not Loading
Symptoms: Preview pane is blank, shows loading forever, or shows error.
Solutions:
- Check service status - click the Activity icon in the header
- Restart services if they show as stopped
- Wait for startup - servers take 10-15 seconds after Codespace starts
- Refresh the preview using the refresh button
- Check for build errors - syntax errors prevent the server from starting
Preview Shows Build Error
Symptoms: Error message in preview instead of your page.
Solutions:
- Read the error message - it usually points to the problem
- Check recent changes - undo your last edit
- Common causes:
- Missing closing tags in Astro/HTML
- Invalid frontmatter syntax (check
---blocks) - Import errors (file doesn't exist)
- TypeScript errors
File and Editor Issues
Changes Not Saving
Symptoms: File shows unsaved indicator (dot on tab) but Save doesn't work.
Solutions:
- Check connection status - must be "Connected"
- Press Cmd/Ctrl + S to manually save
- Check for errors in the file that might prevent saving
- Refresh the page if the WebSocket disconnected
File Tree Not Updating
Symptoms: New files don't appear, deleted files still show.
Solutions:
- Wait a moment - file tree updates automatically
- Click a different folder and back
- Refresh the page to reload the file tree
Search Not Finding Files
Symptoms: File tree search returns no results for files you know exist.
Solutions:
- Check the exact filename - search is case-sensitive
- Check if file is ignored - some files are hidden by default
- Toggle "Show All Files" if you need to see config files
WordPress Issues
Connection Failed
Symptoms: Error when testing WordPress connection.
Solutions:
- Check the URL format:
- Include
https:// - No trailing slash
- Just the domain (not
/wp-admin)
- Include
- Test the REST API directly:
- Visit
https://yoursite.com/wp-json/wp/v2/posts - Should show JSON, not an error page
- Visit
- Check security plugins - some block the REST API
- Verify WordPress version - REST API requires WordPress 4.7+
No Content Found
Symptoms: Connected successfully but shows 0 posts or pages.
Solutions:
- Check post status - only "Published" content appears
- Check visibility - private/password-protected posts are hidden
- Test the API manually:
https://yoursite.com/wp-json/wp/v2/posts?status=publish
Generate Pages Fails
Symptoms: Error when clicking "Generate Pages" in WordPress modal.
Solutions:
- Check connection status - must be "Connected"
- Select at least one content type (Posts, Pages, etc.)
- Check for existing files - you'll be asked before overwriting
- Wait for completion - large sites take longer
Media Download Slow
Symptoms: Downloading WordPress media takes a very long time.
Solutions:
- This is normal for large libraries - downloading hundreds of images takes time
- Download in batches if possible
- Skip media download and use remote URLs instead (configured in astro.config.mjs)
AI Assistant Issues
"No API Keys" Message
Symptoms: AI says no API keys configured, or model dropdown is empty.
Solutions:
- Open AI Settings (gear icon in chat panel)
- Add an API key for at least one provider:
- Anthropic (for Claude models)
- OpenAI (for GPT models)
- Google (for Gemini models)
- Verify the key is valid with your provider
AI Not Responding
Symptoms: Sent a message but nothing happens, or stuck loading.
Solutions:
- Check your API key is valid and has credits
- Try a different model - one provider might be down
- Refresh the page and try again
- Check rate limits with your AI provider
Tool Call Failed
Symptoms: AI tried to create/modify a file but it failed.
Solutions:
- Check the error message in the tool call card
- Verify connection status - must be "Connected"
- Check file permissions - some files are protected
- Try the operation manually to see if there's an issue
Inline AI Not Appearing
Symptoms: Keyboard shortcut doesn't open the inline AI widget.
Solutions:
- Check you have API keys configured in AI Settings
- Verify the shortcut:
- AI Modify:
Cmd/Ctrl + Shift + M - AI Generate:
Cmd/Ctrl + Shift + G
- AI Modify:
- Make sure editor is focused - click in the editor first
- Try right-click context menu instead
Media Manager Issues
Upload Failed
Symptoms: Image upload shows error or nothing happens.
Solutions:
- Check connection status - must be "Connected"
- Verify file type - only images are supported in src/media/
- Check file size - very large images may timeout
- Try uploading one file at a time
Images Not Showing in Media Library
Symptoms: Uploaded images don't appear in the grid.
Solutions:
- Wait a moment - previews load asynchronously
- Refresh the Media Manager (close and reopen)
- Check src/media/ folder in file tree
Drag to Editor Not Working
Symptoms: Dragging image from file tree doesn't insert code.
Solutions:
- Drag from src/media/ - only this folder supports drag-to-editor
- Have a file open in the editor
- Position your cursor where you want the code
- Try right-click > Insert at Cursor instead
Menu Builder Issues
Menus Not Appearing on Site
Symptoms: Built a menu but it doesn't show in preview.
Solutions:
- Save the menu after making changes
- Check the menu component is imported in your layout
- Verify the menu file was created in src/components/
- Refresh the preview after saving
WordPress Menus Not Loading
Symptoms: "Import from WordPress" shows no menus.
Solutions:
- Connect WordPress first via the WordPress modal
- Check WordPress has menus - create one in Appearance > Menus
- Verify REST API access to your WordPress site
Component Library Issues
Components Not Inserting
Symptoms: Click Insert but nothing happens.
Solutions:
- Have a file open in the editor
- Position your cursor where you want the component
- Check the file type - components insert into .astro files
- Check for multi-select mode - may need to click Insert for selection
Preview Not Showing in Library
Symptoms: Component previews are blank.
Solutions:
- Wait for previews to load - they're rendered live
- Check internet connection - previews need network access
- Try a different component - some may have issues
Deployment Issues
"You need to add a Login Connection"
Symptoms: Deploying shows an error like "Failed to link [repo]. You need to add a Login Connection to your GitHub account first."
Solutions:
- Go to Vercel Authentication Settings
- Connect your GitHub account
- Return to PhantomWP and try deploying again
This happens when your Vercel account is not connected to GitHub. Even with a valid Vercel API token, Vercel needs a separate GitHub connection to access your repository.
Vercel Connection Failed
Symptoms: Can't connect Vercel account.
Solutions:
- Check you're logged into Vercel
- Authorize PhantomWP when prompted
- Try a different browser if popup is blocked
Deployment Stuck
Symptoms: Deployment shows "Building" for a long time.
Solutions:
- Check Vercel dashboard for detailed build logs
- Common build issues:
- Missing dependencies in package.json
- Syntax errors in code
- Missing environment variables
- Cancel and redeploy if it seems stuck
Site Not Updating After Deploy
Symptoms: Deployed but live site shows old content.
Solutions:
- Wait a few minutes - CDN cache takes time to clear
- Hard refresh your browser:
Cmd/Ctrl + Shift + R - Check Vercel dashboard - verify deployment completed
- Check you pushed your changes before deploying
Getting Help
If your issue isn't listed here:
Check Other Documentation
Report an Issue
- Note what you were trying to do
- Copy any error messages
- Note your browser and OS
- Contact support with this information
Quick Reference
| Issue | Quick Fix |
|---|---|
| Disconnected | Refresh the page |
| Preview blank | Restart Services |
| Can't save | Check connection status |
| WordPress won't connect | Check REST API URL |
| AI not responding | Verify API key |
| Upload failed | Check connection |
| Deploy stuck | Check Vercel logs |
| "Login Connection" error | Connect GitHub in Vercel settings |