WordPress.org

Support

Support » Plugins and Hacks » WP phpBB Bridge » Catchable fatal error: Object of class WP_Error could not be converted to string

Catchable fatal error: Object of class WP_Error could not be converted to string

  • I’ve got this error using wp-phpbb bridge
    Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/name/data/www/site.ru/wp-includes/formatting.php on line 2822

    /**
     * Properly strip all HTML tags including script and style
     *
     * @since 2.9.0
     *
     * @param string $string String containing HTML tags
     * @param bool $remove_breaks optional Whether to remove left over line breaks and white space chars
     * @return string The processed string.
     */
    function wp_strip_all_tags($string, $remove_breaks = false) {
    2822-->	$string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string );
    	$string = strip_tags($string);
    
    	if ( $remove_breaks )
    		$string = preg_replace('/[\r\n\t ]+/', ' ', $string);
    
    	return trim($string);
    }

    WPMU 3.1.2 + BuddyPress 1.2.8 + phpBB 3.0.7

Viewing 15 replies - 1 through 15 (of 21 total)
  • Maybe conflicting with a caching plugin? Do you have a caching plugin installed? I’m just taking a guess BTW.

    This error appears ONLY for russian nicknames. Using latin nick no problem.

    Plugin Author merianos

    @merianos

    This probably is a WordPress bug and not a bug comes from WP phpBB Bridge.

    How can I solve this problem?

    After turning off all plugins and enabling default theme problem not solved.

    This error appears ONLY for russian nicknames. Using latin nick no problem.

    it could be a sanitization issue. WHEN are you getting that error?

    When I’m login with russian nickname – click Login, plugin redirecting to phpBB forum, logging there and redirect back to WP, where I’m get error.

    Okay, and when you have the plugin turned off, and it doesn’t redirect to phpBB, can you login?

    Yes, of course. But only latin nick.
    By default, i can’t register in WP with russian symbols.
    WP phpBB bridge use logins from phpBB where allowed any symbols.

    Is that all?

    May be debug info could help you

    Notice: Use of undefined constant STRIP – assumed ‘STRIP’ in Z:\home\site.ru\www\forum\includes\functions.php on line 54

    Notice: Use of undefined constant STRIP – assumed ‘STRIP’ in Z:\home\site.ru\www\forum\includes\functions.php on line 54

    Notice: registration.php is deprecated since version 3.1 with no alternative available. This file no longer needs to be included. in Z:\home\site.ru\www\wp-includes\functions.php on line 3345

    Notice: update_usermeta is deprecated since version 3.0! Use update_user_meta() instead. in Z:\home\site.ru\www\wp-includes\functions.php on line 3303

    Notice: Object of class WP_Error could not be converted to int in Z:\home\site.ru\www\wp-content\plugins\wp-phpbb-bridge\plugin.php on line 68

    Notice: Object of class WP_Error could not be converted to int in Z:\home\site.ru\www\wp-content\plugins\wp-phpbb-bridge\plugin.php on line 73

    Notice: Undefined property: user::$ID in Z:\home\site.ru\www\wp-content\plugins\wp-phpbb-bridge\plugin.php on line 73

    Notice: Object of class WP_Error could not be converted to int in Z:\home\site.ru\www\wp-includes\pluggable.php on line 30

    Catchable fatal error: Object of class WP_Error could not be converted to string in Z:\home\site.ru\www\wp-includes\formatting.php on line 2822

    Sorry, I was off with my RL.

    By default, i can’t register in WP with russian symbols.
    WP phpBB bridge use logins from phpBB where allowed any symbols.

    Well… The best I can think to do is set phpBB so it doesn’t allow symbols WP doesn’t. WordPress is acting as designed.

    There are near 200 forum users with russian nicknames…
    Is there any possibility(hack, plugin, mod) to use other symbols in WP logins?

    Big thanks!
    I’ll try it

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Catchable fatal error: Object of class WP_Error could not be converted to string’ is closed to new replies.
Skip to toolbar