FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Make forum datadump => the document contains no data.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Make forum datadump => the document contains no data. [message #22529] Sun, 06 February 2005 16:23 Go to next message
ogoth is currently offline  ogoth   France
Messages: 6
Registered: February 2005
Karma: 0
Junior Member
Hello,

I've strange problem when i try to make a forum datadump ( Forum Version: 2.6.10RC1 ).
After few time à js-error mesage appears: "The document contains no data" and stop. Not other message, just grey page. Final résult is corrupted archive .gz ( With or without compress option ).

I install the forum and copy all data on my localhost and on my localhost that's work perfectly! May be a misconfiguration on the distant host? If yes what? Here are the configs:

----- DISTANT HOST DATADUMP DON'T WORK ---------
System Configuration
PHP built On: Windows NT PHOENIX 5.0 build 2195
Database Version: 4.0.16-nt
PHP Version: 4.3.4
Web Server: Apache/1.3.29
WebServer to PHP interface: apache
Forum Version: 2.6.10RC1
Relavent PHP Settings:
Safe Mode: OFF
Open basedir: none
Display Errors: ON
File Uploads: ON
Magic Quotes: ON
Register Globals: ON
Output Buffering: No
Disabled Functions: rmdir
Tokenizer Support: Yes
PSpell Support: No
Zlib Support: Yes
---------------------------------
------ MY LOCAL HOST DATADUMP WORK -------
PHP built On: Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686
Database Version: 3.23.58
PHP Version: 4.3.10
Web Server: Apache/2.0.51 (Fedora)
WebServer to PHP interface: apache2handler
Forum Version: 2.6.10RC1
Relavent PHP Settings:
Safe Mode: OFF
Open basedir: none
Display Errors: ON
File Uploads: ON
Magic Quotes: ON
Register Globals: OFF
Output Buffering: No
Disabled Functions: none
Tokenizer Support: Yes
PSpell Support: Yes
Zlib Support: Yes
----------------------------------------------
Note: I import all FUDForum databases on my local host in one operation with PHPMyadmin and i must up the memory_limit in my php.ini ( From 8Mo To 16 Mo. ) before that's work. Don't know if this can help to solve problem.

Except this small problem very good work! Easy to instal and esasy to use. Thank's.




Re: Make forum datadump => the document contains no data. [message #22532 is a reply to message #22529] Sun, 06 February 2005 18:38 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Sounds like your request times out before the datadump is completed.

FUDforum Core Developer
Re : Re: Make forum datadump => the document contains no data. [message #22548 is a reply to message #22532] Mon, 07 February 2005 02:50 Go to previous messageGo to next message
ogoth is currently offline  ogoth   France
Messages: 6
Registered: February 2005
Karma: 0
Junior Member
Citation :

Sounds like your request times out before the datadump is completed.


In this case i can try to insert a fonction:

set_time_limit()

but in which script, and where?

Thank's

PS: I've upgrade today to RC 2 and same thing happen's

[Updated on: Mon, 07 February 2005 02:52]

Report message to a moderator

Re: Re : Re: Make forum datadump => the document contains no data. [message #22561 is a reply to message #22548] Mon, 07 February 2005 14:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The admdump.php script in the adm/ directory is what you want to modify. Aside from the exection time limit, you may also want to add ignore_user_abort(true); so that the script continues to run even if your browser times out.

FUDforum Core Developer
Re : Re: Re : Re: Make forum datadump => the document contains no data. [message #22588 is a reply to message #22561] Mon, 07 February 2005 19:22 Go to previous messageGo to next message
ogoth is currently offline  ogoth   France
Messages: 6
Registered: February 2005
Karma: 0
Junior Member
I don't believe that the problem come from time out.
The first line off admdump.php is:
@set_time_limit(6000);
I try to change value, comment the line, remove the @ ( to see if i can find mesage about this ) and nothing more.

I do some tests and i find what happen but no why.

1: When i click "make backup" the navigator say:
waiting for my domain... Nothing else.

I try to do this:

Insert of this lines:
echo "<br>----- START ------<br>";
echo $_POST['btn_submit']."<br>";
At the begin off the script admdump.php.

and Modify somme parts off the form like this:

echo "<br>------".$_SERVER['REMOTE_ADDR']." -- ".$_SERVER['HTTP_HOST']." --".$_SERVER['PHP_SELF']."--------<br>";
//print_r($_SERVER);
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\" target=\"_blank\">";
//echo "<form method=\"post\" action=\"./admdump.php\" target=\"_blank\">";
//echo "<form method=\"post\" action=\"admdump.php\" target=\"_blank\">";

( I've try all this combinations. At the first call all the values in array $_SERVER are right ).

When i click "make backup" that's open my blank windows and nothing else... Nothing in the url bar, no message in windows, just waiting for my domain, my upload graph stay flat. Sounds like something loose my distant host.

If i remove this line:
<input type="hidden" name="submitted" value="1">
The form work in new windows but of course nothing else hapen's.

I do all this tests on my localhost and on my localhost no problem, all tests work's perfectly.

That's make me crazy...

[Updated on: Mon, 07 February 2005 19:23]

Report message to a moderator

Re: Re : Re: Re : Re: Make forum datadump => the document contains no data. [message #22591 is a reply to message #22588] Mon, 07 February 2005 20:54 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I think you have php output buffering enabled, which means until ALL output has been generated you won't get anything sent to the browser. Same thing can be caused if you have output compression enabled in your webserver via mod_gzip for example.

FUDforum Core Developer
Re : Re: Re : Re: Re : Re: Make forum datadump => the document contains no data. [message #22595 is a reply to message #22591] Tue, 08 February 2005 01:01 Go to previous messageGo to next message
ogoth is currently offline  ogoth   France
Messages: 6
Registered: February 2005
Karma: 0
Junior Member
Citation :

I think you have php output buffering enabled,


That's sound right, if i play with this instructions put at the begin off the script the post method send the url and i have a small part of page before nodata.

----------------------
@set_time_limit(6000);
//ob_start();
$buf = ob_get_contents();
ob_end_clean();
echo $buf;
---------------------

But why only on this script and only on distant host? ( I've not made changes in FUDforum ans i call it directly, not from other web page ). I send a mail to my web hosting. May be a misconfiguration on the distant host?
Re: Re : Re: Re : Re: Re : Re: Make forum datadump => the document contains no data. [message #22596 is a reply to message #22595] Tue, 08 February 2005 01:25 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This script sends periodic progress indicators.
Ex: 10000 queries completed

When output buffering is enabled (default buffer size 4k) it may take quite a bit of time for the buffer to become filled and output to be sent to the browser. As you can imagine backup script is not fast since it need to backup all data on disk & sql.


FUDforum Core Developer
Re : Re: Re : Re: Re : Re: Re : Re: Make forum datadump => the document contains no data. [message #22647 is a reply to message #22596] Wed, 09 February 2005 23:37 Go to previous messageGo to next message
ogoth is currently offline  ogoth   France
Messages: 6
Registered: February 2005
Karma: 0
Junior Member
Citation :

When output buffering is enabled (default buffer size 4k)

I just verify this point and output buffering is off on the distant host.
Re: Re : Re: Re : Re: Re : Re: Re : Re: Make forum datadump => the document contains no data. [message #22649 is a reply to message #22647] Thu, 10 February 2005 01:57 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Does the webserver use output compression?

FUDforum Core Developer
Re : Re: Re : Re: Re : Re: Re : Re: Re : Re: Make forum datadump => the document contains no data [message #22663 is a reply to message #22649] Thu, 10 February 2005 14:54 Go to previous messageGo to next message
ogoth is currently offline  ogoth   France
Messages: 6
Registered: February 2005
Karma: 0
Junior Member
Citation :

Does the webserver use output compression?


About this:

My local host:
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib

The distant host:
Registered PHP Streams => php, http, ftp, compress.zlib

Here it's the same parameters on the two servers.
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
-------------

May be post a link to phpinfo on distant host can help?

May be increase the allocate memory for execution of script do something? But i can't find instruction to do that from a script.



Re: Re : Re: Re : Re: Re : Re: Re : Re: Re : Re: Make forum datadump => the document contains no [message #22667 is a reply to message #22663] Thu, 10 February 2005 16:57 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I was referring to webserver compression, not the php one.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Templates
Next Topic: newbie zlib question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 15:19:53 GMT 2024

Total time taken to generate the page: 0.02316 seconds