Site Restoration

#35231 Restore not possible - ParseError — syntax error, unexpected 'if' (T_IF), expecting ')'

Posted in ‘Site restoration’
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

PHP version
CMS Type
CMS Version
Backup Tool Version
Kickstart version


Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!


I try to restore a WP website and gettig this error:

ParseError — syntax error, unexpected 'if' (T_IF), expecting ')'



#0 [internal function]: _angifw_autoloader('ADatabaseDriver...')
#1 [internal function]: spl_autoload_call('ADatabaseDriver...')
#2 /home/p900/domains/ class_exists('ADatabaseDriver...')
#3 /home/p900/domains/ ADatabaseDriver::getConnectors('mysql')
#4 /home/p900/domains/ AngieHelperSelect::dbtype('mysqli', 'mysql')
#5 /home/p900/domains/ include('/home/p900/doma...')
#6 /home/p900/domains/ AView->loadAnyTemplate(NULL)
#7 /home/p900/domains/ AView->loadTemplate(NULL)
#8 /home/p900/domains/ AView->display()
#9 /home/p900/domains/ AController->display()
#10 /home/p900/domains/ AController->main()
#11 /home/p900/domains/ AController->execute('default')
#12 /home/p900/domains/ ADispatcher->dispatch()
#13 /home/p900/domains/ AApplication->dispatch()
#14 /home/p900/domains/ mainLoop()
#15 {main}

Akeeba Staff

The line referenced in the error message is an empty line for backups taken with Akeeba Backup The message claims there's an "if" statement. Something is wrong in your report. My educated guess is that the effective version of PHP is not 7.4. It's probably 5.2. When ANGIE (the restoration script) runs, the first page shows you a summary of your configuration. At the bottom you can see which version the backed up site was running and which version you are currently running. Please make sure that's 7.4. If not, ask your host to make PHP 7.4 the default version for your site.

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!

System Task
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Summer vacations: Our support will be closed for replies and new tickets from August 6th to August 21st, 2022 due to summer vacations.