Dynamic Laravel sitemap broken
0
i'm totally stuck, my dynamic laravel sitemap just stopped generating. spent hours on this. it keeps spitting this out:
[2024-07-26 10:30:05] local.ERROR: Failed to write sitemap to storage. {"exception":"[object] (Illuminate\Filesystem\FileNotFoundException(code: 0): Storage path not found at /var/www/html/storage/app/sitemaps.xml at /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:123)"}paths and permissions all good, but it's still broken. this is killing my seo for our latest laravel development project. anyone faced this before?2 Answers
0
MD Alamgir Hossain Nahid
Answered 49 minutes agoHello Raj Sharma,
[2024-07-26 10:30:05] local.ERROR: Failed to write sitemap to storage. {"exception":"[object] (Illuminate\Filesystem\FileNotFoundException(code: 0): Storage path not found at /var/www/html/storage/app/sitemaps.xml at /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:123)"}This `FileNotFoundException` in your Laravel development project usually indicates that the `storage/app` directory itself does not exist or isn't correctly resolved as the root for your 'local' disk within `config/filesystems.php`, preventing the sitemap's SEO optimization. Ensure `storage_path('app')` points to a physically existing and writable directory, and try running `php artisan cache:clear` and `php artisan config:clear`. Did this resolve the issue for your sitemap generation?
0
Raj Sharma
Answered 34 minutes agoThat fixed the FileNotFoundException error, so the sitemap is generating properly now. But I'm noticing Google Search Console isn't picking up newly added pages from the sitemap as quickly as it used to, or at all for some; I'm wondering if this could still be related to caching or some other internal Laravel config that needed clearing.
Your Answer
You must Log In to post an answer and earn reputation.
Hot Discussions
3
Better ISP finder data?
269 Views