After upgrading one of our sites to try out Craft 3.5.0-RC3, we are experiencing an infinite loop in the web-bootstrap. This occurs in both the site and CP and caused by the way the current site is determined.
CRAFT_SITE constant of the web/index.php. \craft\services\Sites::setCurrentSite() uses the getSiteByHandle(). \craft\services\Sites::_allSites() calls Craft::$app->getRequest()->getIsCpRequest(), which also uses the \craft\services\Sites and causes an infinite loop.Commenting out getIsCpRequest() at r.1254 of \craft\services\Sites prevents this issue and points out this bug. While this may be affected by the way we load our custom multi-site logic, this bug is introduced in 3.5. Is this an improvement in the Craft code to be made or is there a new route how we should would our desired site?
Thanks for reporting that! We just released Craft 3.5 RC4 with a fix.
Most helpful comment
Thanks for reporting that! We just released Craft 3.5 RC4 with a fix.