• 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.

    Thread Starter MAzZY

    (@mazzy)

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

    Plugin Author KodeFor.Me

    (@merianos)

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

    Thread Starter MAzZY

    (@mazzy)

    How can I solve this problem?

    Thread Starter MAzZY

    (@mazzy)

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

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

    Thread Starter MAzZY

    (@mazzy)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

    Thread Starter MAzZY

    (@mazzy)

    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.

    Thread Starter MAzZY

    (@mazzy)

    Is that all?

    Thread Starter MAzZY

    (@mazzy)

    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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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.

    Thread Starter MAzZY

    (@mazzy)

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter MAzZY

    (@mazzy)

    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.