Troubleshooting & FAQ
Answers to the things that tend to go sideways — and the console escape hatches when they do.
The builder is stuck / frozen
Symptoms: no clicks register, an overlay appears on top of everything, keyboard shortcuts do nothing.
Fix, in order of escalation:
- Press Esc Esc (double-Escape). This clears any orphaned overlay and resets the selection.
- If that fails, open your browser console (F12) and run
window.LhaiBuilder.emergencyReset(). Your page content is preserved; only the UI chrome is rebuilt. - If that fails, reload the page. Your last saved draft survives — unsaved edits since the last save don't.
"No image description" / gray boxes
Gray boxes are LHAI saying "I couldn't generate this image." Most common causes:
- You haven't clicked Generate Images yet — click the post-build button or select the placeholder and regenerate individually.
- The description was empty — type a specific one (see Writing good image descriptions) and regenerate.
- The image engine returned an error — the chat shows the actual reason (rate limit, safety block, transient network).
"Image generation failed: {error}"
The exact error LHAI shows comes from the image engine. Common cases:
- Safety block — the prompt tripped a content filter. Rephrase more neutrally.
- Rate limit — your account has hit a per-minute quota. Wait 30 seconds and retry.
- Invalid API key (BYOK only) — re-check the key in LHAI → Settings.
- Network / timeout — retry. If persistent, check your host's outbound-HTTPS firewall.
License not activating
LHAI talks to lhai.app over HTTPS to validate the license. If that call fails, activation fails.
- Confirm outbound HTTPS is allowed. Some managed hosts sandbox outbound traffic by default.
- If you run Wordfence / iThemes Security / similar, check their live traffic log for blocks to
lhai.app. - Try a different network. Corporate DNS occasionally blocks newer domains.
- If the Settings page shows a 500 error on save, check your PHP error log — the underlying failure is usually a curl timeout you can raise via
WP_HTTP_BLOCK_EXTERNALexclusions or by contacting your host.
Forms not sending email
Every submission is saved to the database, so you never lose a lead. Email is a separate layer.
- Verify the site admin email in Settings → General is a monitored address.
wp_mail()uses your server'ssendmailby default. Most hosts require SMTP: install WP Mail SMTP or Fluent SMTP, route via a transactional provider (Postmark, SES, SendGrid), and test.- Check LHAI → Leads — if rows are appearing there, the plugin is fine and the problem is your mail pipeline.
Page 404 after publish
- Go to Settings → Permalinks. Don't change anything. Click Save Changes. This flushes WordPress's rewrite cache.
- Clear any full-page cache (WP Rocket, LiteSpeed, Cloudflare Full-Page) that might be serving a stale 404.
- If you renamed the page slug recently, a redirect plugin like Redirection can map the old URL to the new one.
Gutenberg editor shows an overlay
That's intentional — LHAI pages aren't safe to edit in Gutenberg because Gutenberg rewrites HTML it doesn't understand. Click Edit with LHAI to go to the correct editor. The small "I know what I'm doing — show raw code" link bypasses the overlay if you genuinely need Gutenberg (rare, and usually a sign something else should be happening).
Credits admin page looks locked
Correct. The plan-switcher and manual credit-adjustment forms are gated behind the LHAI_DEV_MODE constant. Without that constant, any WordPress admin could grant themselves unlimited credits locally — which is why the feature is off by default. To enable on a dev install:
// wp-config.php
define('LHAI_DEV_MODE', true);
LHAI_DEV_MODE on a production site. Real plan changes go through checkout on lhai.app, not through the plugin.Useful console diagnostics
Open the browser console inside the builder and try these:
// Current builder state: current HTML, post ID, credit totals
window.LhaiBuilder.getState()
// Force-clear any orphan overlay
window.LhaiBuilder.emergencyReset()
// Inspect the Visual Editor selection store
LhaiEditorStore.get()
// Verify which credits endpoint the plugin is talking to
lhaiData.useCloud // true = Cloud, false = BYOK