Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author KodeFor.Me

    (@merianos)

    Your phpBB can create new posts normaly ?

    Thread Starter roshi

    (@roshi)

    Yes.

    Plugin Author KodeFor.Me

    (@merianos)

    Do you use any other plugin/module to integrate the WordPress with phpBB ?

    Thread Starter roshi

    (@roshi)

    If I remembered right first I try that one:

    PHPBB Single Sign On
    https://www.ads-software.com/extend/plugins/phpbb-single-sign-on/

    When I write my question I forget it because i try it before … maybe few months. There is a file that I removed after that from forum directory – auth_wpbb.php and also common.php because that plugin put that files in phpbb.

    I’m starting to think that the problem is maybe with some short code that don’t have similar BBcodes ? Is it posible. Because when I try to put post without any shortcode inside there is no problem.

    Plugin Author KodeFor.Me

    (@merianos)

    The WP phpBB Bridge does not make any use of the file message_parser.php that also creates the problem to you.

    Please try to re-install damaged files for phpBB and/or WordPress and then try again with our plugin.

    I am getting the same problem (Fatal error: Class ‘bitfield’ not found in /home/…../includes/message_parser.php on line 48) and it all began when I tried to integrate forum posts for new articles. Before that the plugin worked, sort of. I have never installed any bridge plugins on the site before that could interfere.

    Also, now if I try to use the plugin without forum post integration I get a string of fatal errors when posting an article so had to deactivate it completely.

    Thread Starter roshi

    (@roshi)

    I remove all files that are from plugin but there is no change. If I make new post with some shortcode inside there’s a same error.

    Simple Problem, PHPBB trys to parse the BB Codes from WP, unknown Commands will lead to this error ( since the Post is not included via the post.php which filters such errors ). So just include autopostings in your Forums JUST without the shortcodes in the blog Entry ??

    I fixed this problem by deleting the following code in wpbb-functions.php around line #1319

    I’m pretty lame in php, so try this with caution!

    if(!class_exists('parse_message'))
    
    	{
    
    		include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
    
    	}
    
    	$message_parser = new parse_message($text);
    
    	$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
    
    	$text = $message_parser->message;
    
    	$uid = $message_parser->bbcode_uid;
    
    	// If the bbcode_bitfield is empty, there is no need for the uid to be stored.
    
    	if (!$message_parser->bbcode_bitfield)
    
    	{
    
    		$uid = '';
    
    	}
    
    	$bitfield = $message_parser->bbcode_bitfield;
    
    	return;

    Seems to work fine now. Posts are published in the forum, just the [caption] tags are not parsed, which is a bit ugly, but I can live with it ?? Still hope someone offers a better way to get rid of this issue!

    @sofianights Looks like one of us must be running an older version of wp_phpbb_bridge. Using your comment as a hint though, I added this at line 654 of wpbb-functions.php:

    $allow_bbcode = false;

    That fixed the problem. The code now looks like this:

    function wp_generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bbcode = false, $allow_urls = false, $allow_smilies = false)
    {
    global $phpbb_root_path, $phpEx;

    $uid = $bitfield = ”;
    $allow_bbcode = false;
    $flags = (($allow_bbcode) ? OPTION_FLAG_BBCODE : 0) + (($allow_smilies) ? OPTION_FLAG_SMILIES : 0) + (($allow_urls) ? OPTION_FLAG_LINKS : 0);

    if (!$text)
    {
    return;
    }

    if(!class_exists(‘parse_message’))
    {
    include($phpbb_root_path . ‘includes/message_parser.’ . $phpEx);
    }

    $message_parser = new parse_message($text);
    $message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);

    $text = $message_parser->message;
    $uid = $message_parser->bbcode_uid;

    // If the bbcode_bitfield is empty, there is no need for the uid to be stored.
    if (!$message_parser->bbcode_bitfield)
    {
    $uid = ”;
    }

    $bitfield = $message_parser->bbcode_bitfield;

    return;
    }

    I’ve no idea what “bbcode”s are though, so I have no idea what the negative ramifications of this are…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: WP phpBB Bridge] Fatal error: Class 'bitfield' not found’ is closed to new replies.