Support

Site Restoration

#40532 TypeError — substr(): Argument #1 ($string) must be of type string, array given

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.1.17
CMS Type
Joomla!
CMS Version
4.4.3
Backup Tool Version
9.9.0
Kickstart version
8.0.4

Latest post by nicholas on Friday, 05 April 2024 08:02 CDT

erycdigital

Using Kickstart, once I get to the final installation screen I get:

TypeError — substr(): Argument #1 ($string) must be of type string, array given

/home/customer/www/../public_html/installation/platform/models/joomlasetup.php::L1014

#0 /home/customer/www/../public_html/installation/platform/models/joomlasetup.php(1014): substr(Array, -6)
#1 [internal function]: AngieModelJoomlaSetup->{closure}(Array)
#2 /home/customer/www/../public_html/installation/platform/models/joomlasetup.php(1025): array_map(Object(Closure), Array)
#3 /home/customer/www/../public_html/installation/platform/models/joomlasetup.php(1183): AngieModelJoomlaSetup->updateAdminToolsAllowedDomains(Array)
#4 /home/customer/www/../public_html/installation/platform/models/joomlasetup.php(55): AngieModelJoomlaSetup->updateAdminToolsParams()
#5 /home/customer/www/../public_html/installation/angie/controllers/base/setup.php(23): AngieModelJoomlaSetup->applySettings()
#6 /home/customer/www/../public_html/installation/framework/controller/controller.php(511): AngieControllerBaseSetup->apply()
#7 /home/customer/www/../public_html/installation/framework/dispatcher/dispatcher.php(264): AController->execute('apply')
#8 /home/customer/www/../public_html/installation/framework/application/application.php(177): ADispatcher->dispatch()
#9 /home/customer/www/../public_html/installation/index.php(130): AApplication->dispatch()
#10 /home/customer/www/../public_html/installation/index.php(245): mainLoop()
#11 {main}

I checked: https://www.akeeba.com/support/site-restoration/40509-substr-argument-1-string-must-be-of-type-string-array-given.html 

Not sure if this is a bug?

 

nicholas
Akeeba Staff
Manager

This is a known issue; a fix will be coming next week.

Until then, here's how to deal with existing backups.

After extracting the backup archive and before clicking on "run the installer" edit the file installation/platform/models/joomlasetup.php.

Find line 981 which currently reads

if (empty($allowedDomains))

and change it to

if (empty($allowedDomains) || true)

Now go back to Kickstart and click on Run the Installer.

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!