Support

Site Restoration

#41810 Restoring a backup on server

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
8.2.28
CMS Type
WordPress
CMS Version
n/a
Backup Tool Version
AKEEBA BACKUP
Kickstart version
Core

Latest post by wicko on Wednesday, 09 April 2025 05:48 CDT

wicko
Getting an error when I try to restore a website.   TypeError — Akeeba\BRS\Framework\Uri\AbstractUri::getPort(): Return value must be of type int, string returned

/home/customer/www/a4motorcompany.co.uk/public_html/installation/src/Framework/Uri/AbstractUri.php::L302

#0 /home/customer/www/a4motorcompany.co.uk/public_html/installation/platform/src/Model/Replacedata.php(1327): Akeeba\BRS\Framework\Uri\AbstractUri->getPort()
#1 /home/customer/www/a4motorcompany.co.uk/public_html/installation/platform/src/Model/Replacedata.php(1245): Akeeba\BRS\Platform\Model\Replacedata->getDefaultReplacementsForMainSite(Object(Akeeba\BRS\Platform\Model\Configuration))
#2 /home/customer/www/a4motorcompany.co.uk/public_html/installation/platform/src/Model/Replacedata.php(247): Akeeba\BRS\Platform\Model\Replacedata->getDefaultReplacements()
#3 /home/customer/www/a4motorcompany.co.uk/public_html/installation/platform/src/View/Replacedata/Html.php(101): Akeeba\BRS\Platform\Model\Replacedata->getReplacements(false, false)
#4 /home/customer/www/a4motorcompany.co.uk/public_html/installation/src/Framework/Mvc/View.php(421): Akeeba\BRS\Platform\View\Replacedata\Html->onBeforeMain()
#5 /home/customer/www/a4motorcompany.co.uk/public_html/installation/src/Framework/Mvc/Controller.php(214): Akeeba\BRS\Framework\Mvc\View->display()
#6 /home/customer/www/a4motorcompany.co.uk/public_html/installation/src/Framework/Mvc/Controller.php(224): Akeeba\BRS\Framework\Mvc\Controller->display()
#7 /home/customer/www/a4motorcompany.co.uk/public_html/installation/platform/src/Controller/Replacedata.php(57): Akeeba\BRS\Framework\Mvc\Controller->main()
#8 /home/customer/www/a4motorcompany.co.uk/public_html/installation/src/Framework/Mvc/Controller.php(188): Akeeba\BRS\Platform\Controller\Replacedata->main()
#9 /home/customer/www/a4motorcompany.co.uk/public_html/installation/src/Framework/Dispatcher/Dispatcher.php(61): Akeeba\BRS\Framework\Mvc\Controller->execute('main')
#10 /home/customer/www/a4motorcompany.co.uk/public_html/installation/src/Framework/Application/AbstractApplication.php(82): Akeeba\BRS\Framework\Dispatcher\Dispatcher->dispatch()
#11 /home/customer/www/a4motorcompany.co.uk/public_html/installation/index.php(103): Akeeba\BRS\Framework\Application\AbstractApplication->dispatch()
#12 {main}

Web design and development in Reading and Oxfordshire UK.

Wicko Web design

tampe125
Akeeba Staff

Hello,

can you please share the Replacement Data step of the restoration script?

what was the old URL and what's the new one?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

wicko

I was restoring a website from my Akeeba backup files onto a server location where I had deleted in the past. The error came when it got to the database section. 

Fortunately the server location was the same as the original and I hadn't deleted the original database so was able to connect the restored Wordpress site to the old database. Restored website

But if didn't have the original database still on the server I wouldn't have been able to restore. 

Web design and development in Reading and Oxfordshire UK.

Wicko Web design

tampe125
Akeeba Staff

I'm glad that everything worked out fine, but I'd need to know what was the connection details you tried to use, so I can replicate and fix the issue. Do you remember which details you used?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

wicko

Do you mean the Database details or the server details? I simply uploaded the Akeeba backup files and used Kickstart to restore. I can all access to the backup files. Site is reasonable large, about 10Gb. 

 

Web design and development in Reading and Oxfordshire UK.

Wicko Web design

Support Information

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

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!