pecotamic / sitemap

Sitemap for Statamic v3
6 stars 9 forks source link

Unhandled error when opening sitemap.xml #8

Closed MrMooky closed 3 years ago

MrMooky commented 3 years ago

I get this error when opening the sitemap.xml on my server:

Unhandled error
TypeError: Argument 1 passed to Pecotamic\Sitemap\Models\SitemapEntry::__construct() must be of the type string, null given, called in /home/privy/vendor/pecotamic/sitemap/src/Models/Sitemap.php on line 48
Location
vendor/pecotamic/sitemap/src/Models/SitemapEntry.php:13 - Pecotamic\Sitemap\Models\SitemapEntry::__construct

Dumped the output from the vendor file, got this:

Screenshot 2021-05-08 at 19 45 03

PHP 7.4 and latest Laravel and Statamic.

snoopy21 commented 3 years ago

I get the same error too.

PHP 8.0.5 and latest Laravel and Statamic.

werner-freytag commented 3 years ago

Fixed in hotfix release 1.2.2