ethercreative / seo

SEO utilities including a unique field type, sitemap & redirect manager
MIT License
267 stars 95 forks source link

Redirects Page Returns 500 Error #448

Closed zadro closed 1 year ago

zadro commented 1 year ago

First, thank you SO much for fixing the keywords issue!!

Upon upgrade, the Redirects page returns a 500 error.

Looking at the log files show the following:

Call to a member function where() on array at /home/user/craft/vendor/ether/seo/src/controllers/RedirectsController.php:39)

Reverting line 39, from:

foreach (Craft::$app->sites->getAllSites()->where(['dateDeleted' => null]) as $site)

Back to a prior version:

foreach (Craft::$app->sites->getAllSites() as $site)

...allows the Redirects page to load again.

Additional info