Config.php corrupted, can I recover it?

Somehow my config.php file got corrupted. It now contains this:

encrypted_session_data|s:388:"a long hexadecimal string"

Oddly enough, I can still log in and sync files, but occ doesn’t work, and the dashboard shows a broken JSON.

Can I somehow recover the contents of config.php ? Unfortunately I don’t have a backup of it, so if it’s broken I’d need to install it from scratch.

Thanks!

If you used the updater app in the past, the procedure keeps a backup of the config.php:

data/data/updater-{somestringe}/backups

If you don’t have it, can you still open the file? Some obvious formatting errors?

Thanks, I got it via the updater backups!

1 Like