Support

UNiTE, Remote CLI, eXtract Wizard

#3775 Remote Controle can't download the backup.

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
n/a
Tool
UNiTE
Tool version
n/a

Latest post by nicholas on Monday, 23 May 2011 10:14 CDT

user38771
Mandatory information about my setup:

Have I searched the forum before posting? Yes
Have I read the Troubleshooting Wizard before posting? Yes
Have I read the documentation before posting? Yes
Joomla! version: 1.5.23
PHP version: 5.2.8
MySQL version: 5.1.46
Host: CDmon.com
Akeeba Backup version: 3.2.7 (2011-04-17)
Remote Control version: (4.0.8.)

Description of my issue:

It seems that Remote Control can't download a backup it made of a Joomla installation. The backup is done correctly and the backup is available in the backup directory on the server.

I do have a problem to download the backup with Remote Control to my system. The file that is downloaded has a size of 80 bit and only contains an error message: ###{"encapsulation":1,"body":{"status":500,"data":"\"JSON decoding error\""}}###

That is the same message you will get if you open the link in the remote control log file on the line with 2011-05-16 16:35:54 | AJAX GET.

Can anyone help me to solve this problem?

Jurgen


nicholas
Akeeba Staff
Manager
With Akeeba Backup 3.2.7 that should never happen. Does your server have magic_quotes_gpc set to On? (check the Help, System Info, PHP Information page in your back-end).

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!

user38771
Yes, that is set to on:

magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off

I tried it also on two other websites, on different servers in different countries with the same result.

nicholas
Akeeba Staff
Manager
All right, that's what I thought. Can you try something out? Open the file components/com_akeeba/controllers/json.php and find lines 32-34. They should read:
$sourceJSON = JRequest::getVar('json', null, 'default', 'raw', 2);
$model = JModel::getInstance('Json','AkeebaModel');

Replace them with this:
$sourceJSON = JRequest::getVar('json', null, 'default', 'raw', 2);
		if(function_exists('get_magic_quotes_gpc')) {
			if(get_magic_quotes_gpc()) {
				$sourceJSON = stripslashes($sourceJSON);
			}
		}
		
		$model = JModel::getInstance('Json','AkeebaModel');


Save the file and then retry taking and downloading a backup archive. Does it work now?

Thank you in advance for your feedback!

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!

user38771
Hello Nicholas.

Sorry, but downloading the archive is still failing.

It still downloads a 80 bytes file with the ###{"encapsulation":1,"body":{"status":500,"data":"\"JSON decoding error\""}}###

The code you suggested is a good addition to the code to fix the "problem" with the servers where the magic quotes are not enabled.

The backup on the server is still working and complete.
Could a firewall of anti virus program cause this problem? We are using Norton 360 Premier edition

nicholas
Akeeba Staff
Manager
Do you have a SEF component installed? If yes, let's check a few things. If it's sh404SEf, please make sure you're using the latest release (older releases would corrupt the remote API URLs). If you're using AceSEF, you have to go to AceSEF, Extensions, find com_akeeba in the list and set the "Router" setting to "Disable SEF". For any other SEF component you also have to disable SEF URLs for Akeeba Backup (com_akeeba).

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!

user38771
Yes, we are using JoomSEF as SEF component. But COM_AKEEBA had already the status "Not using SEF".

nicholas
Akeeba Staff
Manager
Can you please send me a Personal Message with the URL to your site and Super Administrator login information?

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!