JoomlaPlug!

JoomlaCloner - Backup and Restore Component

OOPS. Your Flash player is missing or outdated.Click here to update your player so you can see this content.
JoomlaCloner - Joomla backup and restore

 
 
JoomlaPlug.com
Welcome, Guest
Please Login or Register.    Lost Password?
Trying to move a backup via FTP (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Trying to move a backup via FTP
#1051
admin (Admin)
Admin
Posts: 2501
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:Trying to move a backup via FTP 2 Years, 3 Months ago  
Ok, here is my theory about the investigations i have made:

First a little info: apache has a variable called TimeOut http://hoohoo.ncsa.uiuc.edu/docs/setup/httpd/TimeOut.html, this works like this: if the server receives no data from the script after that Timeout period it will stop the connection and give the timeout

Now why the simple scripts work: they work because the data we output are directly sent to the server(the echo, print, print_r functions)

Why doesn't it work when we run the same process through Joomla:
- when running any function through the Joomla (index2.php?option=component&task=some_task for example) the output of the process run is not sent directly to the server, it's caugh by a function called ob_get_content, here is the manual that starts this process (ob_start() function) http://ro2.php.net/ob_start
Now, even if the process is running, the data outputed from it won't go directly to the server, it's stored in a Joomla variable, and only when all is done in our function the Joomla core comes in and displays the data in the template
So, the process runs, but no data is sent to the server beucase it's output is caught with ob_start() function!

The SOLUTION: ask you provider or you, if you have access to the apache config(httpd.conf) to increase that TimeOut variable!

This is the only explications i have found for the Timeout in cases when max_execution_time limit is set to a value that doesn't count, and can be documented by the file administrator/index2.php where you will find the ob_start() function!

Hope it helps! Regards, Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1052
admin (Admin)
Admin
Posts: 2501
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:Trying to move a backup via FTP 2 Years, 3 Months ago  
We have managed to solve this issue by adding a small space in front of the ob_start() function in administrator/index2.php file! This way the server receives some data(even if is a space) and knows that the process is running and it won't stop it!

Let me know if it's all ok now!

Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1053
hgr (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:Trying to move a backup via FTP 2 Years, 3 Months ago  
It works. Could you please post the hack here
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1054
admin (Admin)
Admin
Posts: 2501
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:Trying to move a backup via FTP 2 Years, 3 Months ago  
In file administrator/index2.php find this line

Code:

ob_start();
just before it add this line
Code:

echo " ";
so it looks like this
Code:

echo " "; ob_start();
The same thing if needed for index.php file in Joomla root! Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Search JoomlaPlug.com

Download Joomla

All rights reserved to JoomlaPlug.com ©2006-2009!
Site powered by Joomla!