Recent Topics

1 May 10, 2009 02:37    

My b2evolution Version:

Hi
I follow this post to config multi-languages
http://forums.b2evolution.net/viewtopic.php?t=13366

It worked for me with B2Evo of version 2.4.1 before

Now i'm trying to test version 3.1.0 before upgrade.
It failed badly with many warnings, and i gave up.

Installation
=======
...
Installing sample contents...
Assigning avatar to Admin... OK.
Creating demo blogger user... OK.
Creating demo user... OK.
Creating default blogs... OK.
Creating sample categories... OK.
Creating sample posts...
Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 5 in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/items/model/_item.funcs.php(346) : runtime-created function on line 1

..
..

1st time Login as admin
=================
..
..

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/conf/_locales.php:3) in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/sessions/model/_session.class.php on line 222

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/conf/_locales.php:3) in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/_core/_template.funcs.php on line 192

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/conf/_locales.php:3) in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/_core/_template.funcs.php on line 193

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/conf/_locales.php:3) in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/_core/_template.funcs.php on line 194

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/conf/_locales.php:3) in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/_core/_template.funcs.php on line 195

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/conf/_locales.php:3) in /www/110mb.com/v/i/e/t/p/o/s/t/vietpost/htdocs/blogs/inc/_core/_template.funcs.php on line 59

Please help. Thanks

2 Jun 01, 2009 15:29

When ever I edit/save or just save I get the same error. Does anyone know how to fix this? THanks.

3 Jun 01, 2009 18:45

Could you please try to replace the function "bpost_count_words()" (file inc/items/model/_item.funcs.php, line 345) with this version:

function bpost_count_words( $str )
{
	$str = trim( strip_tags( $str ) );
	if( ! function_exists( 'str_word_count' ) )
	{
		/* In case str_word_count() doesn't exist (to accomodate PHP < 4.3).
		 * Code adapted from post by "brettNOSPAM at olwm dot NO_SPAM dot com"
		 * at PHP documentation page for str_word_count(). A better
		 * implementation probably exists.
		 */
		if( $str === '' )
		{
			return 0;
		}

		return count( preg_split( '|\s+|',
						preg_replace( '~[^\w\d\'".!?;,\\\\/:&@-]+~', ' ', $str ),
						-1, PREG_SPLIT_NO_EMPTY ) );
	}
	elseif( @preg_match( '|\pL|', 'foo' ) === false )
	{	// PCRE doesn't support \p, use str_word_count()
		return str_word_count( $str );
	}

	$count = 0;

	foreach( preg_split( '#\s+#', convert_charset( $str, 'UTF-8' ), -1,
							PREG_SPLIT_NO_EMPTY ) as $word )
	{
		if( preg_match( '#\pL#', $word ) )
		{
			++$count;
		}
	}

	return $count;
}


Which PHP version are you using?


Form is loading...