1. #1
    demon326's Avatar
    Registered
    18/04/03
    Location
    Hasselt
    Posts
    14,855
    iTrader
    23 (100%)
    Mentioned
    0 Post(s)
    Reputation
    10/79

    Non-static method foutmelding

    Voor onze drupal website sneller te laten werken maken wij gebruik van de authcache module, deze zal echter niet werken als er een php error/notice getoond word, in dit geval de volgende foutmelding:
    Non-static method utf_normalizer::nfc() should not be called statically","file":"/var/www/clients/clientx/webx/web/forum/includes/utf/utf_tools.php","line":1781

    De makers van de phpbb bridge verwijzen naar phpbb om dit probleem op te lossen..

    Deze oplossing heb ik geprobeerd: phpBB • View topic - Problems installing "Non-static method" maar dan geeft hij de foutmelding bij berichtplaatsen: Undefined variable: utfn
    Zou iemand mij hier mee kunnen helpen? Het verschil(100 mili secondes vs 3 secondes) in page load time is echt de moeite om dit opgelost te krijgen
    no votes  

  2. #2
    YaMo's Avatar
    Registered
    19/02/06
    Location
    -
    Posts
    4,048
    iTrader
    1 (100%)
    Mentioned
    0 Post(s)
    Reputation
    2/73
    Als je nu in die file utf_tools.php deze code

    PHP Code:
    function utf8_normalize_nfc($strings)
    {
        if (empty(
    $strings))
        {
            return 
    $strings;
        }

        if (!
    class_exists('utf_normalizer'))
        {
            global 
    $phpbb_root_path$phpEx;
            include(
    $phpbb_root_path 'includes/utf/utf_normalizer.' $phpEx);
        }

        if (!
    is_array($strings))
        {
            
    utf_normalizer::nfc($strings);
        }
        else if (
    is_array($strings))
        {
            foreach (
    $strings as $key => $string)
            {
                if (
    is_array($string))
                {
                    foreach (
    $string as $_key => $_string)
                    {
                        
    utf_normalizer::nfc($strings[$key][$_key]);
                    }
                }
                else
                {
                    
    utf_normalizer::nfc($strings[$key]);
                }
            }
        }

        return 
    $strings;

    vervangt door de volgende code?


    PHP Code:
    function utf8_normalize_nfc($strings)
    {
        if (empty(
    $strings))
        {
            return 
    $strings;
        }

        if (!
    class_exists('utf_normalizer'))
        {
            global 
    $phpbb_root_path$phpEx;
            include(
    $phpbb_root_path 'includes/utf/utf_normalizer.' $phpEx);
        }
        
        
    $normalizer = new utf_normalizer();

        if (!
    is_array($strings))
        {
            
    $normalizer->nfc($strings);
        }
        else if (
    is_array($strings))
        {
            foreach (
    $strings as $key => $string)
            {
                if (
    is_array($string))
                {
                    foreach (
    $string as $_key => $_string)
                    {
                        
    $normalizer->nfc($strings[$key][$_key]);
                    }
                }
                else
                {
                    
    $normalizer->nfc($strings[$key]);
                }
            }
        }

        return 
    $strings;

    no votes  

  3. #3
    demon326's Avatar
    Registered
    18/04/03
    Location
    Hasselt
    Posts
    14,855
    iTrader
    23 (100%)
    Mentioned
    0 Post(s)
    Reputation
    10/79
    Quote Originally Posted by YaMo View Post
    This quote is hidden because you are ignoring this member. Show
    Als je nu in die file utf_tools.php deze code
    ....
    Forum en site werken nu... thx! *geeft denkbeeldige rep*
    no votes  

  4. #4
    YaMo's Avatar
    Registered
    19/02/06
    Location
    -
    Posts
    4,048
    iTrader
    1 (100%)
    Mentioned
    0 Post(s)
    Reputation
    2/73
    Quote Originally Posted by demon326 View Post
    This quote is hidden because you are ignoring this member. Show
    Forum en site werken nu... thx! *geeft denkbeeldige rep*
    Allé, ik ben blij dat ik kon helpen
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in