Support

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
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by on Wednesday, 16 June 2021 20:17 CDT

appletree

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 ')'

/home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/database/driver/pdo.php::L428

 

#0 [internal function]: _angifw_autoloader('ADatabaseDriver...')
#1 [internal function]: spl_autoload_call('ADatabaseDriver...')
#2 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/database/driver.php(187): class_exists('ADatabaseDriver...')
#3 /home/p900/domains/p900.nl/public_html/005_hooks/installation/angie/helpers/select.php(404): ADatabaseDriver::getConnectors('mysql')
#4 /home/p900/domains/p900.nl/public_html/005_hooks/installation/angie/views/database/tmpl/default.php(205): AngieHelperSelect::dbtype('mysqli', 'mysql')
#5 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/view/view.php(499): include('/home/p900/doma...')
#6 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/view/view.php(591): AView->loadAnyTemplate(NULL)
#7 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/view/view.php(538): AView->loadTemplate(NULL)
#8 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/controller/controller.php(548): AView->display()
#9 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/controller/controller.php(553): AController->display()
#10 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/controller/controller.php(510): AController->main()
#11 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/dispatcher/dispatcher.php(263): AController->execute('default')
#12 /home/p900/domains/p900.nl/public_html/005_hooks/installation/framework/application/application.php(176): ADispatcher->dispatch()
#13 /home/p900/domains/p900.nl/public_html/005_hooks/installation/index.php(115): AApplication->dispatch()
#14 /home/p900/domains/p900.nl/public_html/005_hooks/installation/index.php(230): mainLoop()
#15 {main}

nicholas
Akeeba Staff
Manager

The line referenced in the error message is an empty line for backups taken with Akeeba Backup 7.5.5.1. 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
system
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: 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!