J
J
Jazz Man2017-03-19 18:06:40
PHP
Jazz Man, 2017-03-19 18:06:40

Call to undefined function mb_orig_strpos?

When opcache is enabled, the following error occurs:
Call to undefined function mb_orig_strpos
and then the path to the file
. If it is disabled, there is no error, but the whole site slows down (I have not installed memcached yet).
I did not find such a function - I shoveled github and google in search.
Google has always returned similar code:

CTar::strpos()
//    /bitrix/modules/main/classes/general/backup.php:1410

    public static function strpos($s, $a)
    {
        if (function_exists('mb_orig_strpos'))
            return mb_orig_strpos($s, $a);
        return strpos($s, $a);
    }

Here, as you can see, the check for the existence of the function is in progress. Yes, and in other files too.
Simply disabling opcache (this is what technical support recommends) is not an option, I think.
Perhaps bitrich is completely incompatible with php7?
I will be grateful for your help :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
1
1111101000, 2017-04-04
@1111101000

look towards php.ini
mbstring.func_overload = 2

S
Sergey Shaklein, 2022-04-07
@sanshung

1. look towards php.ini or .htaccess
mbstring.func_overload = 2
2. Disable the proactive filter
3. mbstring.func_overload = 0
4. update Bitrix

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question