Troubleshooting Guide
Quick solutions to common problems you might encounter.Database & Backend Issues
Data Not Loading
Site shows empty/basic mode
Site shows empty/basic mode
Cause: Environment variables not configured or Appwrite connection failed.Solution:
- Check
.envfile exists with correct values - Verify Appwrite project ID is correct
- Check browser console for errors
- Ensure Appwrite platform includes your domain
CORS Error in Console
CORS Error in Console
Error:
Access to XMLHttpRequest blocked by CORS policySolution:- Go to Appwrite Console → Settings → Platforms
- Add your domain:
localhost(for development)your-site.vercel.app(for production)yourdomain.com(custom domain)
- Wait 1-2 minutes for changes to propagate
Collection Not Found (404)
Collection Not Found (404)
Error:
Collection or database not foundSolution:- Verify collection exists in Appwrite Console
- Check collection ID matches exactly (case-sensitive)
- Ensure database ID is correct in
.env
Permission Denied (401/403)
Permission Denied (401/403)
Error:
User is not authorizedSolution:- Check collection permissions in Appwrite
- For public content: Add “Any” with Read permission
- For admin content: Add “Users” with all permissions
- See Permissions Guide
Image & Storage Issues
Images Not Uploading
Images Not Uploading
Possible Causes:
- File too large (check bucket max size)
- Wrong file format
- Bucket permissions incorrect
- Check file size (usually max 10MB)
- Use supported formats: jpg, png, gif, webp
- Verify bucket has “Users” create permission
- Check browser console for specific error
Images Not Displaying
Images Not Displaying
Possible Causes:
- Bucket doesn’t have public read access
- Image URL is incorrect
- Image was deleted
- Check bucket has “Any” read permission
- Test image URL directly in browser
- Re-upload the image if needed
Font Upload Fails
Font Upload Fails
Solution:
- Ensure file is
.ttf,.otf, or.woffformat - Check file size < 5MB
- Verify
custom-fontsbucket exists - Check bucket permissions
Deployment Issues
Vercel Build Fails
Vercel Build Fails
Common Causes:
- Missing dependencies
- Environment variables not set
- Syntax errors in code
- Check Vercel build logs for specific error
- Run
npm run buildlocally to test - Ensure all env variables are set in Vercel
- Check for TypeScript/ESLint errors
404 on Page Refresh
404 on Page Refresh
Cause: SPA routing not configuredSolution: Add
vercel.json to project root:Environment Variables Not Working
Environment Variables Not Working
Solution:
- Variables must start with
VITE_prefix - Redeploy after adding variables
- Check variables are set for correct environment (Production/Preview)
- Clear browser cache after redeploying
Admin Panel Issues
Can't Login to Admin
Can't Login to Admin
Solution:
- Verify Appwrite account exists
- Check email is verified in Appwrite
- Clear browser cookies and try again
- Check Appwrite Console for user status
Changes Not Saving
Changes Not Saving
Possible Causes:
- Network error
- Permission denied
- Validation error
- Check browser console for errors
- Verify you’re logged in
- Check all required fields are filled
- Try refreshing and re-saving
Rich Text Editor Not Working
Rich Text Editor Not Working
Solution:
- Clear browser cache
- Try a different browser
- Check for JavaScript errors in console
- Ensure all dependencies are installed
Shortlink Issues
Shortlink Not Redirecting
Shortlink Not Redirecting
Solution:
- Check shortlink is marked “Active”
- Verify path doesn’t have typos
- Clear browser cache
- Check if path conflicts with existing routes
Custom Domain Not Verifying
Custom Domain Not Verifying
Solution:
- Wait 10-15 minutes for DNS propagation
- Verify DNS records are correct:
- CNAME pointing to your domain
- TXT record with verification token
- Check DNS with online tools (dnschecker.org)
- Ensure Cloudflare proxy is enabled (if using)
Analytics Not Recording
Analytics Not Recording
Solution:
- Check
shortlink_analyticscollection exists - Verify collection permissions
- Test with incognito/private browsing
- Check browser console for errors
Shop & Payment Issues
PayPal Not Loading
PayPal Not Loading
Solution:
- Verify
VITE_PAYPAL_CLIENT_IDis set - Check PayPal Client ID is correct
- Ensure PayPal app is enabled
- Test with sandbox credentials first
Order Not Creating
Order Not Creating
Solution:
- Check
orderscollection exists with all attributes - Verify collection permissions
- Check browser console for validation errors
- Ensure all required fields are provided
Download Links Not Working
Download Links Not Working
Solution:
- Check
order-filesbucket exists - Verify user is logged in
- Ensure user email matches order email
- Check if download token expired (15 min limit)
Performance Issues
Site Loading Slowly
Site Loading Slowly
Solutions:
- Optimize images before uploading (compress, resize)
- Reduce number of embeds per page
- Use lazy loading for images
- Check network tab for slow requests
- Consider CDN for static assets
Admin Panel Laggy
Admin Panel Laggy
Solutions:
- Clear browser cache
- Close unused browser tabs
- Check for memory leaks in console
- Reduce number of items per page in lists
Quick Diagnostic Steps
When something isn’t working:1
Check Browser Console
Press
F12 → Console tab. Look for red error messages.2
Check Network Tab
Press
F12 → Network tab. Look for failed requests (red).3
Verify Environment
Ensure
.env file exists and has correct values.4
Check Appwrite Console
Verify collections, buckets, and permissions are set up.
5
Clear Cache
Hard refresh:
Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac)Getting Help
If you’re still stuck:- Check the specific feature documentation for detailed setup steps
- Review Appwrite Console for database/storage issues
- Check Vercel logs for deployment issues
- Search error messages online for common solutions
Most issues are caused by missing environment variables, incorrect permissions, or CORS configuration. Always check these first!