Why Images not loading (missing) after theme activation?
Fix broken image thumbnails, missing SVG icons, and stylesheets after activating a new theme in MagicAI. This issue is typically caused by storage symlink path mismatches or folder write permissions.
After activating a theme from Marketplace, dashboard UI cards render but images display broken link icons or 404 responses in browser console.
Resolution Steps
Check & Correct Directory Permissions
Ensure your web server has write and read permissions for theme assets and uploaded storage:
chmod -R 775 storage bootstrap/cache public/themes
chown -R www-data:www-data storage bootstrap/cache public/themes
Note: Replace www-data with your web server user if running under cPanel, Plesk, or CloudLinux (e.g. your cPanel username).
Recreate Storage Symlink
If images in storage/ are not mapping to public/storage, recreate the symlink via artisan:
php artisan storage:link
Flush Application & View Cache
Clear compiled Blade views and theme manifests:
| Cache Clear Type | Browser Endpoint |
|---|---|
| Full Cache Flush | yourdomain.com/cache-clear |
| Menu & Theme Cache | yourdomain.com/cache-clear-menu |
Verification
Hard Refresh Your Browser
Press Ctrl + Shift + R (Windows/Linux) or Cmd + Shift + R (macOS) to bypass your browser cache. All theme preview images, banners, and icons will now load properly.