Support

Site Restoration

#38469 Error using kickstart.php

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
CMS Type
Joomla!
CMS Version
4.2.6
Backup Tool Version
9.4.8
Kickstart version
7.1.2

Latest post by nicholas on Monday, 06 February 2023 05:39 CST

obratlie

I am trying to install a website on a test server I use a lot, but got the following error message:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/customer/www/ob-test.net/public_html/arbeidslivet/kickstart.php on line 43

Checking the code in kickstart.php, it says the code referred to is "Used during development", does this mean that it should not be there?

I recently installed another web site for testing on the same server without any problem, so maybe SiteGround have changed the configuration of their server to block the curly braces?

Please advice.

Best Regards,

Ornulf

nicholas
Akeeba Staff
Manager

This doesn't look right. Line 43 is just an opening brace. Moreover, there is no string access syntax using curly braces in Kickstart 7.1.2. This has been addressed years ago, when PHP 8.0 was just released -- that was the first version to disallow curly brace string index access. I checked a freshly downloaded copy of Kickstart Core 7.1.2 and it does not have anything like that.

Please download Kickstart Core 7.1.2 afresh. Extract it and upload the kickstart.php file.

Lines 42 to 45 should read:

if (!defined('KSDEBUG') && isset($_SERVER) && isset($_SERVER['HTTP_HOST']) && (strpos($_SERVER['HTTP_HOST'], 'local.web') !== false))
{
	define('KSDEBUG', 1);
}

There is no curly brace string offset access there, therefore you cannot receive an error about something we don't do at a code location which doesn't even have executable code.

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!

obratlie

Thanks for your quick reply. My copy of kickstart.php looks exactly the same, and I even downloaded it a second time. I will ask Siteground about this and include your answer to my question. Hopefully it is a configuration error of some sort on their part.

Ornulf

nicholas
Akeeba Staff
Manager

Ask them if they have enabled OPcache, possibly in a way that caching does not take into account the path of the file (because that's the default setting, unless someone bothered to change it). This could explain why you get an error about something not happening in this file β€” it would be coming from what is happening in a different file by the same name, either an old version you have already replaced or possibly on a different account.

One way to find out is to renamed kickstart.php to something like kick20230206.php and try running that instead. If it magically works the problem is with OPcache.

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!

obratlie

Brilliant, it now worked - almost...

Kickstart started unpacking the jpa file, but when it was almost finished, I got the following message:

An error occurred

The archive file is corrupt, truncated or archive parts are missing

I will upload the jpa file again and try it with the new upload.

Ornulf

PS. Reinstalling a website with kickstart.php usually works like I charm - Akeeba Backup is essential software!

nicholas
Akeeba Staff
Manager

Make sure that you both download and upload the file in binary mode. SFTP is always binary. FTP is not; you usually have to select it explicitly in your FTP client. Do not use the hosting control panel's file manager, they tend to not do very well with large files.

If your backup archive consists of multiple parts i.e. there are files with the same name but extensions .jpa, .j01, .j02 etc remember to upload all of them. They are parts of the same backup archive and all of them must be present for the archive to extract.

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!