Support

Akeeba Backup for WordPress

#41751 Failing CLI Restore

Posted in ‘Akeeba Backup for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
6.7.2
PHP version
8.3.*
Akeeba Backup version
9.0.2

Latest post by nicholas on Monday, 31 March 2025 06:41 CDT

jduerscheid

I encounter an issue while trying to restore a WP site using the new CLI installation method:

php installation/cli.php execute
Akeeba Backup Restoration Script v.10.0.2
Copyright (C) 2006-2025 Akeeba Ltd.
This program is Free Software, it comes with ABSOLUTELY NO WARRANTY and you are
welcome to redistribute it under certain conditions; use the `license` command
for more information.

Initialising restoration
» Detecting versions
» Loading existing configuration
Restoring database ‘site’
» Restored 1.26 MB of 1.26 MB (0.00%) – ETA: 0 seconds
» Finished
Writing new configuration file
Replacing data
» Initialising data replacement engine
» 0
PHP Warning: Undefined variable $status in /redacted/installation/platform/src/Cli/Step/Replacedata.php on line 71

ERROR

Unhandled Error exception

Call to a member function getWarnings() on null

-- /redacted/installation/platform/src/Cli/Step/Replacedata.php:71

 

Double checking the Restoredata.php, it seems like $status is undefined.

nicholas
Akeeba Staff
Manager

Don't you love it when the IDE's “smart” features auto-incorrect your code? Me neither. It took me a while to figure out which option I had to turn off in phpStorm so it would stop “helpfully” suggesting the wrong variable name and other nonsense. Unfortunately, that happened after I wrote BRS 10, and this bit slipped through the review process.

This $status should obviously be $engine. Please change that to go past that problem.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jduerscheid

Works for me, thank you! I guess there will be a new WP release with that fix in the next couple of weeks?

nicholas
Akeeba Staff
Manager

Yep. I meant to make a release today but there's another potential issue I am waiting feedback for. Once I have the feedback I'll know if I am doing a release tomorrow or on Monday.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jduerscheid

Awesome, thanks!

nicholas
Akeeba Staff
Manager

The new version, 9.0.3, was released a couple of hours ago. Once again, thank you for your patience and your feedback!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!