Recent Topics

1 Sep 22, 2011 13:12    

My b2evolution Version: 4.x

I see all all posts about but each one has diferent line numbers. I try the solutions but nothing repair. Some times only change the line numbers.
I await your help and I thank you in advance.
ERRORS:

Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in /home/elescome/public_html/blogs/inc/_core/_misc.funcs.php on line 152

Notice: Use of undefined constant STDIN - assumed 'STDIN' in /home/elescome/public_html/blogs/inc/_core/_misc.funcs.php on line 153

Warning: fclose(): supplied argument is not a valid stream resource in /home/elescome/public_html/blogs/inc/_core/_misc.funcs.php on line 153

Notice: Use of undefined constant STDOUT - assumed 'STDOUT' in /home/elescome/public_html/blogs/inc/_core/_misc.funcs.php on line 154

Warning: fclose(): supplied argument is not a valid stream resource in /home/elescome/public_html/blogs/inc/_core/_misc.funcs.php on line 154

Notice: Use of undefined constant STDERR - assumed 'STDERR' in /home/elescome/public_html/blogs/inc/_core/_misc.funcs.php on line 155

Warning: fclose(): supplied argument is not a valid stream resource in /home/elescome/public_html/blogs/inc/_core/_misc.funcs.php on line 155

An unexpected error has occurred!

4 Sep 23, 2011 00:53

Confirm that you have exactly the same block in /inc/_core/_misc.funcs.php lines 150-180

if( is_callable('pcntl_fork') && function_exists('posix_kill') && defined('STDIN') )
{
	if( $pid = pcntl_fork() )
		return; // Parent

	function shutdown_kill()
	{
		posix_kill(posix_getpid(), SIGHUP);
	}

	if ( ob_get_level() )
	{	// Discard the output buffer and close
		ob_end_clean();
	}

	fclose(STDIN);  // Close all of the standard
	fclose(STDOUT); // file descriptors as we
	fclose(STDERR); // are running as a daemon.

	register_shutdown_function('shutdown_kill');

	if( posix_setsid() < 0 )
		return;

	if( $pid = pcntl_fork() )
		return;     // Parent

	// Now running as a daemon. This process will even survive
	// an apachectl stop.
}

5 Sep 23, 2011 09:33

sam2kb wrote:

Confirm that you have exactly the same block in /inc/_core/_misc.funcs.php lines 150-180

if( is_callable('pcntl_fork') && function_exists('posix_kill') && defined('STDIN') )
{
	if( $pid = pcntl_fork() )
		return; // Parent

	function shutdown_kill()
	{
		posix_kill(posix_getpid(), SIGHUP);
	}

	if ( ob_get_level() )
	{	// Discard the output buffer and close
		ob_end_clean();
	}

	fclose(STDIN);  // Close all of the standard
	fclose(STDOUT); // file descriptors as we
	fclose(STDERR); // are running as a daemon.

	register_shutdown_function('shutdown_kill');

	if( posix_setsid() < 0 )
		return;

	if( $pid = pcntl_fork() )
		return;     // Parent

	// Now running as a daemon. This process will even survive
	// an apachectl stop.
}

Hi Sam,
Thanks for your help.
Now all is ok.
Before wasn't possible be ok by the reason that the files shown on the post:
http://forums.b2evolution.net/...hp?t=21893
and your actual above information.
On other hand, do not start at line 150-180 but line 142-167 on B2evol 4.0.5.
Thanks for your good help. You is a B2evol guru.
Antonio


Form is loading...