This guide helps you troubleshoot problems when importing HTML files into ShahiLandin landing pages.
Import Process Fails
Upload Stage Problems
Symptom
Cannot upload HTML file or receive error during file selection.
Problem 1: File Size Too Large
Error Message:
`
The uploaded file exceeds the uploadmaxfilesize directive in php.ini
`
Solution:
- Check your server’s upload limit in ShahiLandin → System Info
- Your HTML file should be under the upload limit (typically 2MB-64MB)
- Reduce file size:
- Increase upload limit:
- Only
.htmland.htmfiles are accepted - Ensure file has correct extension (not
.txtor.zip) - If downloading from source, save as HTML:
- Remove any BOM (Byte Order Mark) from file:
- ShahiLandin scans for dangerous code:
- Script execution timing:
- Solution: Load jQuery before your scripts
- Solution: Script order issue - load dependency scripts first
- Solution: Change HTTP links to HTTPS (or remove protocol):
- External domain blocks requests:
- Server timeout:
- SSL certificate issues:
- Check asset URLs in browser:
- For 404 errors: Update URLs to correct paths
- For permission errors: Contact asset host
- For large files: Manually upload to Media Library
- Enable CSS Scoping:
- Manual CSS scoping:
- Use Canvas Mode:
- Increase CSS specificity:
- Reset WordPress styles:
- Web fonts not loaded:
- Font files not mirrored:
- CSS not fully extracted:
– Remove embedded base64 images
– Remove unnecessary inline styles
– Minify HTML before uploading
– Add to .htaccess file:
`apache
phpvalue uploadmax_filesize 64M
phpvalue postmax_size 64M
`
– Or contact hosting provider
Problem 2: Invalid File Type
Error Message:
`
Sorry, this file type is not permitted for security reasons
`
Solution:
– Right-click page → Save As → Web Page, HTML Only
– Open in text editor like Notepad++
– Convert to UTF-8 without BOM
– Save
Problem 3: File Contains Malicious Code
Error Message:
`
File rejected: potentially harmful content detected
`
Solution:
–
`
- Scripts may run before DOM is ready
- Wrap code in document ready:
`html
`
Problem 2: Console Errors
Symptom: Check browser console (F12) and see JavaScript errors.
Common Errors and Solutions:
Error: $ is not defined or jQuery is not defined
Error: Uncaught ReferenceError: functionName is not defined
Error: Mixed Content warnings
`html
`
Rendering & Assets Stage Problems
Asset Mirroring Fails
Problem 1: Assets Not Downloading
Symptom: Progress bar stuck or shows "Failed to mirror assets".
Solution:
- Some servers block automated downloads
- Try manual asset import:
- Download assets manually
- Upload to WordPress Media Library
- Update HTML references
- Too many assets or large files
- Increase PHP execution time in .htaccess:
`apache
phpvalue maxexecution_time 300
`
- Or import in smaller batches
- External site has invalid SSL
- Temporary fix: Skip asset mirroring for that site
- Reference assets directly (if allowed)
Problem 2: Partial Asset Download
Symptom: Some assets mirror successfully, others fail.
Solution:
- Open each failed URL directly
- Note which ones return 404 or errors
CSS Scoping Issues
Problem 1: Landing Page Styles Affect Rest of Site
Symptom: Your landing page CSS changes your theme's appearance.
Solution:
- In Step 3 of import wizard
- Check "Scope CSS to landing page only"
- ShahiLandin prefixes all selectors with .shahilandin-scope
- Wrap all styles in a unique class:
`css
.my-landing-page .container { width: 100%; }
.my-landing-page .header { background: blue; }
`
Problem 2: WordPress Styles Interfere with Landing Page
Symptom: Landing page looks different than expected due to theme CSS.
Solution:
- Select rendering mode: Canvas (No Theme)
- This loads landing page without WordPress theme
- Most isolated option
- Add !important to critical styles:
`css
.container { width: 1200px !important; }
`
- Add CSS reset at top of your styles:
`css
.shahilandin-content * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
`
Review Stage Problems
Preview Doesn't Match Original
Problem 1: Fonts Look Different
Symptom: Text appears in wrong font family.
Solution:
- Import Google Fonts or custom fonts:
`html`
- Enable asset mirroring
- Or upload font files to WordPress
- Reference via CSS:
`css
@font-face {
font-family: 'CustomFont';
src: url('/wp-content/uploads/fonts/custom.woff2');
}
`
Problem 2: Colors Are Different
Symptom: Background colors, text colors don't match original.
Solution:
- Check if inline styles present:
- ShahiLandin extracts