ошибка при установке версия 20

Issue #104 closed
Сергей Шушарин created an issue

версия 320 скачал только что. при установке пишет: Warning: Invalid argument supplied for foreach() in /var/www/vhosts/vectorstudio.kz/test2.vectorstudio.kz/include/kernel.class.php on line 6699

Comments (2)

  1. Alexsander Vyshnyvetskyy

    Ошибка локализуется в ядре, строка 6699:

        private function user_function_include(){
            $files = glob("./user_function/*.php");
            foreach ($files as $file) if (!is_dir($file)) {
                $content=file_get_contents($file);
                if($content){
                    preg_match_all('/function\s+([a-z0-9_]+)\(/uis',$content,$m,PREG_SET_ORDER);
                    foreach($m as $f)
                        $this->whiteList_userFunction[]=$f[1];
                }
                include_once($file);
            }
        }
    

    Видимо у вас что-то не то лежит в папке пользовательских функций /user_function/ что и вызывает ошибку, либо проблема с доступом к папке.

  2. Log in to comment