Skip to content
New issue

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

Undefined index in DatabaseUtility.php #23

Open
einNicklas opened this issue Aug 21, 2023 · 3 comments
Open

Undefined index in DatabaseUtility.php #23

einNicklas opened this issue Aug 21, 2023 · 3 comments

Comments

@einNicklas
Copy link

einNicklas commented Aug 21, 2023

Environment: DDEV based TYPO3 10 on PHP 7.4.

I'm getting the following error in db:backup because of undefined index in DatabaseUtility.php:

task db:backup
[moria]  error  in db_backup.php on line 30:
[moria] run . /data/mounts/webspaces/php7.4/toelke/308-khwob/shared/.env; cd /data/mounts/webspaces/php7.4/toelke/308-khwob/releases/6 && /usr/bin/php7.4 /data/mounts/webspaces/php7.4/toelke/308-khwob/releases/6/vendor/bin/dep db:export moria --options=dumpcode:backup_for_release_6_a80143dcdf5969f32d17b955533684f9 
[moria] task db:export
[moria] [moria]  ErrorException  in DatabaseUtility.php on line 24:
[moria] [moria]
[moria] [moria]   Undefined index: port
[moria] [moria]
[moria] ERROR: Task db:export failed!
[moria] exit code 255 (Unknown error)
ERROR: Task db:backup failed!
task deploy:failed

vendor/sourcebroker/deployer-extended-database/src/Utility/DatabaseUtility.php

        $mysqli->real_connect(
            $dbConf['host'],
            $dbConf['user'],
            $dbConf['password'],
            $dbConf['dbname'],
            $dbConf['port'],
            null,
            isset($dbConf['flags']) ? (int)$dbConf['flags'] : 0
        );
@kszymukowicz
Copy link
Contributor

what driver you use to get database data?

@einNicklas
Copy link
Author

I'm using the DDEV default:
MySQL 5.5.5-10.4.28-MariaDB-1:10.4.28+maria~ubu2004-log

and

deploy.php

set('driver_typo3cms', true);

is set.

@kszymukowicz
Copy link
Contributor

I can not reproduce. I suppose you need to debug problem yourself. Looks lie for some reason the output of ddev typo3cms configuration:showactive DB --json is not returning "port". On my side it is hard to me to force to no set this key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants