Support

UNiTE, Remote CLI, eXtract Wizard

#38370 UNiTE restore aborts with 'Invalid JSON data returned from the server: ‘Array’.'

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
8.1
Tool
UNiTE
Tool version
5.0.1

Latest post by tampe125 on Monday, 23 January 2023 09:16 CST

thoni56

I've used UNiTE some years ago and am now attempting to set up the same automated cloning from a live site to a dev site to be able to experiment more securely, especially with upgrading to J4.

However, a

    php unite.phar restore unite.xml

results in the following error message

In Api.php line 151:
                                                        
  Invalid JSON data returned from the server: ‘Array’.  

Full verbose output attached.

The remote server is obviously contacted and thinks the backup is on-going (at least for a while). A full debug log from the remote is also attached.

 

 

tampe125
Akeeba Staff

Hello,

I can see you're using Joomla 3. In order to use UNiTE with Akeeba Backup 8.x , you have to use UNiTE version 4, otherwise it won't be able to connect to your website (as you just experienced).

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!

thoni56

Ahh! Ok, I'll install UNiTE 4 instead and see how that works. Thanks!

tampe125
Akeeba Staff

You're welcome!

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!

thoni56

BTW, was that in the documentation? If not it should probably be added, and if it was, sorry for missing it ;-)

It would be really helpful if UNiTE itself could check compatibility during the setup of the initial communicatin with the remote side, both for UNiTE v4/v5 and at least warn for PHP version mismatch.

Thanks for very useful products!

tampe125
Akeeba Staff

The error you are receiving is exactly the check you're talking about: since we can't get a valid response, we raise an error.

The best thing to do is to use UNiTE 4 with Joomla 3 sites and UNiTE 5 with Joomla 4 sites. Please note that all of our Joomla 3 software is currently deprecated and will reach end of life on August 17th, when Joomla 3 itself will reach if End Of Life as well.

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!

thoni56

Yes, I am aware of all that. I was thinking of a more informative message. Even though it is, as you hint at, a passing problem, I think you will see an increase in exactly this usecase, exactly *because* Joomla 3 is approaching end of life ;-) More people will discover UNiTE and use it to help understand their migration pains/issues. ;-)

Salve!

tampe125
Akeeba Staff

Ok, thank you for the suggestion!

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!

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!