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
While restoring a soft-deleted navigation using craft project-config/apply, I got the following error:
craft project-config/apply
error: There was a problem getting the parent element. Failed to run craft up: exit status 1
I was checking out a different branch and came back to the branch where I created a new navigation.
Here's the complete stack trace:
2025-02-03 17:12:41 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":2257672} 2025-02-03 17:12:41 [console.INFO] [nystudio107\vite\Vite::init] Vite plugin loaded {"memory":6175224} 2025-02-03 17:12:41 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":6236552} 2025-02-03 17:12:41 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Looking for pending changes {"memory":7478784} 2025-02-03 17:12:41 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Parsing 5 removed configuration items {"memory":7479888} 2025-02-03 17:12:41 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Parsing 7 changed configuration items {"memory":8874408} 2025-02-03 17:12:41 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Parsing 77 new configuration items {"memory":9144024} 2025-02-03 17:12:41 [console.ERROR] [yii\base\Exception] yii\base\Exception: There was a problem getting the parent element. in /var/www/html/vendor/craftcms/cms/src/services/Structures.php:342 Stack trace: #0 /var/www/html/vendor/verbb/navigation/src/elements/Node.php(887): craft\services\Structures->append() #1 /var/www/html/vendor/craftcms/cms/src/services/Elements.php(2639): verbb\navigation\elements\Node->afterRestore() #2 /var/www/html/vendor/verbb/navigation/src/services/Navs.php(386): craft\services\Elements->restoreElements() #3 /var/www/html/vendor/craftcms/cms/src/services/ProjectConfig.php(1180): verbb\navigation\services\Navs->handleChangedNav() #4 [internal function]: craft\services\ProjectConfig->handleChangeEvent() #5 /var/www/html/vendor/yiisoft/yii2/base/Component.php(641): call_user_func() #6 /var/www/html/vendor/craftcms/cms/src/models/ProjectConfigData.php(82): yii\base\Component->trigger() #7 /var/www/html/vendor/craftcms/cms/src/services/ProjectConfig.php(1170): craft\models\ProjectConfigData->commitChanges() #8 [internal function]: craft\services\ProjectConfig->handleChangeEvent() #9 /var/www/html/vendor/yiisoft/yii2/base/Component.php(641): call_user_func() #10 /var/www/html/vendor/craftcms/cms/src/models/ProjectConfigData.php(82): yii\base\Component->trigger() #11 /var/www/html/vendor/craftcms/cms/src/services/ProjectConfig.php(1291): craft\models\ProjectConfigData->commitChanges() #12 /var/www/html/vendor/craftcms/cms/src/services/ProjectConfig.php(1313): craft\services\ProjectConfig->craft\services\{closure}() #13 /var/www/html/vendor/craftcms/cms/src/services/ProjectConfig.php(628): craft\services\ProjectConfig->_applyChanges() #14 /var/www/html/vendor/craftcms/cms/src/console/controllers/ProjectConfigController.php(329): craft\services\ProjectConfig->applyExternalChanges() #15 [internal function]: craft\console\controllers\ProjectConfigController->actionApply() #16 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array() #17 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams() #18 /var/www/html/vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction() #19 /var/www/html/vendor/craftcms/cms/src/console/ControllerTrait.php(88): yii\console\Controller->runAction() #20 /var/www/html/vendor/craftcms/cms/src/console/Controller.php(216): craft\console\Controller->traitRunAction() #21 /var/www/html/vendor/yiisoft/yii2/base/Module.php(552): craft\console\Controller->runAction() #22 /var/www/html/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction() #23 /var/www/html/vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction() #24 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(212): craft\console\Application->runAction() #25 /var/www/html/vendor/craftcms/cms/src/console/Controller.php(207): yii\base\Controller->run() #26 /var/www/html/vendor/craftcms/cms/src/console/controllers/UpController.php(76): craft\console\Controller->run() #27 [internal function]: craft\console\controllers\UpController->actionIndex() #28 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array() #29 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams() #30 /var/www/html/vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction() #31 /var/www/html/vendor/craftcms/cms/src/console/ControllerTrait.php(88): yii\console\Controller->runAction() #32 /var/www/html/vendor/craftcms/cms/src/console/Controller.php(216): craft\console\Controller->traitRunAction() #33 /var/www/html/vendor/yiisoft/yii2/base/Module.php(552): craft\console\Controller->runAction() #34 /var/www/html/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction() #35 /var/www/html/vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction() #36 /var/www/html/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction() #37 /var/www/html/vendor/craftcms/cms/src/console/Application.php(122): yii\console\Application->handleRequest() #38 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\console\Application->handleRequest() #39 /var/www/html/craft(12): yii\base\Application->run() #40 {main} {"memory":13396144,"exception":"[object] (yii\\base\\Exception(code: 0): There was a problem getting the parent element. at /var/www/html/vendor/craftcms/cms/src/services/Structures.php:342)"} 2025-02-03 17:13:10 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":2257672} 2025-02-03 17:13:10 [console.INFO] [nystudio107\vite\Vite::init] Vite plugin loaded {"memory":6184864} 2025-02-03 17:13:10 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":6246192} 2025-02-03 17:14:21 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":2257672} 2025-02-03 17:14:21 [console.INFO] [nystudio107\vite\Vite::init] Vite plugin loaded {"memory":6184864} 2025-02-03 17:14:21 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":6246192} 2025-02-03 17:14:36 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":2257720} 2025-02-03 17:14:36 [console.INFO] [nystudio107\vite\Vite::init] Vite plugin loaded {"memory":6184912} 2025-02-03 17:14:36 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":7360368} 2025-02-03 17:14:36 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Looking for pending changes {"memory":7524536} 2025-02-03 17:14:36 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Parsing 1041 changed configuration items {"memory":7525656} 2025-02-03 17:14:38 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Finalizing configuration parsing {"memory":18479728} 2025-02-03 17:15:36 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":2257688} 2025-02-03 17:15:36 [console.INFO] [nystudio107\vite\Vite::init] Vite plugin loaded {"memory":6184880} 2025-02-03 17:15:36 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=db;dbname=db;port=3306 {"memory":7425408} 2025-02-03 17:15:36 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Looking for pending changes {"memory":7391848} 2025-02-03 17:15:36 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Parsing 63 new configuration items {"memory":7392952} 2025-02-03 17:15:36 [console.INFO] [craft\services\ProjectConfig::_applyChanges] Finalizing configuration parsing {"memory":12287000}
Not entirely clear at the moment.
5.6.0.2
3.0.5
No
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
While restoring a soft-deleted navigation using
craft project-config/apply
, I got the following error:error: There was a problem getting the parent element. Failed to run craft up: exit status 1
I was checking out a different branch and came back to the branch where I created a new navigation.
Here's the complete stack trace:
Steps to reproduce
Not entirely clear at the moment.
Craft CMS version
5.6.0.2
Plugin version
3.0.5
Multi-site?
No
Additional context
No response
The text was updated successfully, but these errors were encountered: