Error when trying to set maximumCrawlCount #485
Replies: 3 comments 4 replies
-
Did you resolve this error? Same error here, but acordant to documentation, we needs to use |
Beta Was this translation helpful? Give feedback.
-
Yeah it's a bug.. if (! is_null($this->maximumCrawlCount)) {
$this->crawler->setMaximumCrawlCount($this->maximumCrawlCount);
} With this: if (! is_null($this->maximumCrawlCount)) {
$this->crawler->setTotalCrawlLimit($this->maximumCrawlCount);
} Then instead using Cheers 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks so far. So if this a bug, where to open an issue for it?! |
Beta Was this translation helpful? Give feedback.
-
Hi,
when I try to set the maximumCrawlCount value and create a sitemap afterwards I run into the following error:
Call to undefined method Spatie\Crawler\Crawler::setMaximumCrawlCount()
at vendor/spatie/laravel-sitemap/src/SitemapGenerator.php:117
The function 'setMaximumCrawlCount' seems to be missing on the 'Spatie\Crawler\Crawler'.
I think It must be used 'setTotalCrawlLimit' instead.
Beta Was this translation helpful? Give feedback.
All reactions