We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to save default site that do not have own base URL.
composer create-project craftcms/craft craft-test
composer.json
"craftcms/cms": "^3.1.0-beta.1"
composer update
3.1.0-beta.7
php craft setup
/admin
/admin/settings/sites/1
This site has its own base URL
An Error occurred while handling another error: TypeError: Return value of craft\models\Site::getBaseUrl() must be of the type string, null returned in /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/models/Site.php:105 Stack trace: #0 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/helpers/UrlHelper.php(333): craft\models\Site->getBaseUrl() #1 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/helpers/UrlHelper.php(514): craft\helpers\UrlHelper::baseSiteUrl() #2 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/helpers/UrlHelper.php(229): craft\helpers\UrlHelper::_createUrl('', '', NULL, false) #3 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/web/assets/cp/CpAsset.php(237): craft\helpers\UrlHelper::siteUrl() #4 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/web/assets/cp/CpAsset.php(91): craft\web\assets\cp\CpAsset->_craftData() #5 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/web/View.php(266): craft\web\assets\cp\CpAsset->registerAssetFiles(Object(craft\web\View)) #6 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/web/View.php(1482): yii\web\View->registerAssetFiles('craft\\web\\asset...') #7 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/web/View.php(264): craft\web\View->registerAssetFiles('craft\\web\\asset...') #8 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/web/View.php(1482): yii\web\View->registerAssetFiles('craft\\web\\asset...') #9 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/web/View.php(162): craft\web\View->registerAssetFiles('craft\\web\\asset...') #10 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/web/View.php(876): yii\web\View->endBody() #11 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/views/errorHandler/exception.php(526): craft\web\View->endBody() #12 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/base/View.php(336): require('/Volumes/Data/M...') #13 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/Volumes/Data/M...', Array) #14 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/web/ErrorHandler.php(266): yii\base\View->renderFile('/Volumes/Data/M...', Array, Object(craft\web\ErrorHandler)) #15 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/web/ErrorHandler.php(126): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array) #16 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/web/ErrorHandler.php(132): yii\web\ErrorHandler->renderException(Object(TypeError)) #17 /Volumes/Data/Martin/Sites/craft-test/vendor/yiisoft/yii2/base/ErrorHandler.php(111): craft\web\ErrorHandler->renderException(Object(TypeError)) #18 /Volumes/Data/Martin/Sites/craft-test/vendor/craftcms/cms/src/web/ErrorHandler.php(63): yii\base\ErrorHandler->handleException(Object(TypeError)) #19 [internal function]: craft\web\ErrorHandler->handleException(Object(TypeError)) #20 {main}
The text was updated successfully, but these errors were encountered:
Duplicate of #3624
Sorry, something went wrong.
No branches or pull requests
Description
Unable to save default site that do not have own base URL.
Steps to reproduce
composer create-project craftcms/craft craft-test
.composer.json
with"craftcms/cms": "^3.1.0-beta.1"
.composer update
to get the Craft3.1.0-beta.7
vendor.php craft setup
to install Craft normally./admin
control panel./admin/settings/sites/1
This site has its own base URL
checkbox.Stack trace
Additional info
The text was updated successfully, but these errors were encountered: