You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i've set my allowAdminChanges to true, run composer update and do php craft up on my local. But still get this error.
im trying to update craft from 5.5.9 to 5.6.11
Not Supported: Changes to the project config are not possible while in read-only mode.
Migration: craft\migrations\m241125_122914_add_viewUsers_permission
Output:
Exception: Changes to the project config are not possible while in read-only mode. (/var/www/html/vendor/craftcms/cms/src/services/ProjectConfig.php:554)
#0 /var/www/html/vendor/craftcms/cms/src/services/ProjectConfig.php(526): craft\services\ProjectConfig->_setInternal()
#1 /var/www/html/vendor/craftcms/cms/src/migrations/m241125_122914_add_viewUsers_permission.php(49): craft\services\ProjectConfig->set()
#2 /var/www/html/vendor/craftcms/cms/src/db/Migration.php(50): craft\migrations\m241125_122914_add_viewUsers_permission->safeUp()
#3 /var/www/html/vendor/craftcms/cms/src/db/MigrationManager.php(233): craft\db\Migration->up()
#4 /var/www/html/vendor/craftcms/cms/src/db/MigrationManager.php(149): craft\db\MigrationManager->migrateUp()
#5 /var/www/html/vendor/craftcms/cms/src/services/Updates.php(245): craft\db\MigrationManager->up()
#6 /var/www/html/vendor/craftcms/cms/src/controllers/BaseUpdaterController.php(499): craft\services\Updates->runMigrations()
#7 /var/www/html/vendor/craftcms/cms/src/controllers/UpdaterController.php(213): craft\controllers\BaseUpdaterController->runMigrations()
#8 [internal function]: craft\controllers\UpdaterController->actionMigrate()
#9 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#10 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#11 /var/www/html/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#12 /var/www/html/vendor/craftcms/cms/src/web/Application.php(361): yii\base\Module->runAction()
#13 /var/www/html/vendor/craftcms/cms/src/web/Application.php(753): craft\web\Application->runAction()
#14 /var/www/html/vendor/craftcms/cms/src/web/Application.php(254): craft\web\Application->_processUpdateLogic()
#15 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#16 /var/www/html/web/index.php(12): yii\base\Application->run()
#17 {main}
Steps to reproduce
php craft update all
composer update
php craft up
Expected behavior
Actual behavior
Craft CMS version
5.6.11
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
Thanks @brandonkelly , when i use ->allowAdminChanges(true) i don't set the CRAFT_ALLOW_ADMIN_CHANGES on my env, but when i put the CRAFT_ALLOW_ADMIN_CHANGES , now its work.
Try commenting out your change, and then going to Utilities → PHP Info within your control panel, and searching for CRAFT_ALLOW_ADMIN_CHANGES. Are you seeing any references to it there?
If so, then CRAFT_ALLOW_ADMIN_CHANGES is in fact getting set somewhere – just maybe not in your .env file.
What happened?
Description
php craft update all
i've set my
allowAdminChanges
totrue
, runcomposer update
and dophp craft up
on my local. But still get this error.im trying to update craft from 5.5.9 to 5.6.11
Steps to reproduce
Expected behavior
Actual behavior
Craft CMS version
5.6.11
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: