Support

UNiTE, Remote CLI, eXtract Wizard

#40554 Cannot get UNiTE to work in Joomla 3 (Akeeba too old error)

Posted in ‘UNiTE and Remote CLI’
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
7.4
Tool
UNiTE
Tool version
Backup Pro 8.3.3 + UNiTE 4.0.1

Latest post by fnobre on Wednesday, 10 April 2024 16:50 CDT

fnobre

Hello, I am a long time user of Akeeba Backup pro + Unite in Joomla. Quite used to the settings.

We still have some rather large Joomla sites running under Joomla 3, that cannot be upgraded to 4. We will still take time to migrate. Our websites/templates break if PHP > 7.4

Meanwhile I need to continue using UNiTE as it is an integral part of our workflow as to quickly test website changes with dev copies before implementing in production. It worked fine in the past but no longer after Joomla + Akeeba updates.

Right now we have PHP 7.4.33 + Joomla 3.10 + Akeeba Pro 8.3.3 (latest for J3)

I have tested with many versions of "unite.phar"

if version = 4.1.6, I get this in the log

20240410|04:21:59|Setting up a JSON API object
20240410|04:21:59|Initialising remote backup loop
20240410|04:21:59|Backing up the remote site
20240410|04:22:00|Could not start backup; Error 402: Your version of Akeeba Backup is too old. Please update it to re-enable the remote backup and administration features.

 

if version = 5.0.0, I get this error


[INFO ] Parsing /home/dev01jeri/clubv_day.xml
[INFO ] Validating the source data
[INFO ] Taking a remote backup using the JSON API
0% [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] < 1 sec/< 1 sec[ERROR ] Invalid JSON data returned from the server: ‘Array’.

 

if version = 5.1.2, I get this message:

Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.33.

===
Please advise how I can get it to work. My guess is that version 4.1.6 of UNiTE would be more compatible with Akeeba backup 8.3.3 , but I would need a way to make it ignore the fact that Akeeba is more than 120 days old.

Thanks

 

 

nicholas
Akeeba Staff
Manager

You can disable the warning message about the age of the component by editing components/com_akeeba/Model/Json.php and removing this block of code:

if (!$this->confirmDates())
{
	return $this->getResponse('Your version of Akeeba Backup is too old. Please update it to re-enable the remote backup and administration features.', 402);
}

Regarding the version of UNiTE you can use, try sticking with an older 4.x version.

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!

fnobre

Hello Nicholas,

My folder 'components/com_akeeba/Model/' does not contain such 'Json.php' file (akeeba pro 8.3.3 in J3.10 under PHP 7.4)

I have also searched the entire 'com_akeeba' folder for code containing the lines you tell me to remove, but no file seems to contain such code (maybe it's obfuscated?).

However, I continue to get the error below in the log (using 'unite.phar' version 4.1.6)

20240410|15:59:16|Running remote
20240410|15:59:16|Setting up a JSON API object
20240410|15:59:16|Initialising remote backup loop
20240410|15:59:16|Backing up the remote site
20240410|15:59:16|Could not start backup; Error 402: Your version of Akeeba Backup is too old. Please update it to re-enable the remote backup and administration features.

Please let me know what I should try next. Thanks for your attention.

nicholas
Akeeba Staff
Manager

Please note that the folder I am giving you is components/com_akeeba/Model under your site's root, NOT the administrator/components/com_akeeba/Model inside your site's backend (administrator) folder. The model file handling the JSON API is in the frontend part of the component, not the backend.

And yes, I am also checking a Joomla! 3.10 site with Akeeba Backup Professional 8.3.3 (the PHP version is irrelevant; the files are the same). Not only I checked three different sites on two separate hosts, I also re-confirmed this by looking at the source code in our source control repository where the files for version 8.3.3 are immutably tagged.

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!

fnobre

Hello Nicholas,

Thanks for pointing that. I was not aware there was 2x 'components' folders in the Joomla structure. I am so used to the folder inside the 'administrator' folder (where my backups are created) that I though you meant that one.

Indeed after making the change you indicate, we have progress, here is the tail of the UNiTE log: the backup completes successfully, but I get an error in the download phase of the JPA file. Do you know what can be the cause?

Thanks for your continued attention.

 

20240410|17:54:50|Progress: 75%
20240410|17:54:50|Domain  : finale
20240410|17:54:50|Step    : 
20240410|17:54:50|Substep : 
20240410|17:54:50|
20240410|17:54:50|Got backup tick
20240410|17:54:50|Progress: 100%
20240410|17:54:50|Domain  : finale
20240410|17:54:50|Step    : 
20240410|17:54:50|Substep : 
20240410|17:54:50|
20240410|17:54:50|Got backup tick
20240410|17:54:50|Progress: 100%
20240410|17:54:50|Domain  : finale
20240410|17:54:50|Step    : 
20240410|17:54:50|Substep : 
20240410|17:54:50|
20240410|17:54:50|Finished backing up the remote site
20240410|17:54:50|Downloading backup with http method
20240410|17:55:40|Could not download /home/dev01jeri/clubv_unite-QAvS0IS81HRJ8XUh.jpa -- 92 : HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

fnobre

Hello again Nicholas,

After searching thru your documentation, I have resolved this last problem by changing the download mode to 'chunk' instead of 'http'. Download and Restore completed succesfully.

Thanks, all working now.

 

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!