chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
784 stars 478 forks source link

Fatal error(s) on installation #3710

Open serhio-w03 opened 3 years ago

serhio-w03 commented 3 years ago

Describe Despite fulfilling/meeting all the requirements from the documentation and installation script controls regarding to PHP modules, the install procedure still generates fatal errors:

Fatal error: Call to undefined function filter_var() Fatal error: Uncaught Error: Call to undefined function token_get_all()

Expected behavior after presence of modules is checked, process ends with no interruption

**Server

Additional context modules php-tokenizer, php-filter should be checked for presence before installing the scripts

/ full list of modules from one of (FreeBSD with php 7.4) my inst. script php74-mysqli mod_php74 \ php74-pdo_mysql php74-gd php74-zlib php74-session php74-zip \ php74-curl php74-xsl php74-openssl \ php74-json php74-iconv php74-mbstring php74-intl php74-fileinfo \ php74-ctype php-xapian php74-ldap \ php74-pecl-APCu php74-opcache \ php74-tokenizer php74-filter /

mk111 commented 3 years ago

checking for tokenizer and filter module presence should be added to the install script since those modules are not optional but are required for successful installation. Additional: installation manual can be updated too: there is a module list specified at least in one section.

serhio-w03 commented 2 years ago

installation step 7:

Fatal error: Uncaught Error: Call to undefined function token_getall() in /usr/local/www/apache24//vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php:54 Stack trace: #0 /usr/local/www/apache24/_/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php(60): Doctrine\Common\Annotations\TokenParser->_construct() #1 /usr/local/www/apache24//vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php(380): Doctrine\Common\Annotations\PhpParser->parseUseStatements() #2 /usr/local/www/apache24//vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php(301): Doctrine\Common\Annotations\AnnotationReader->collectParsingMetadata() #3 /usr/local/www/apache24/f/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php(142): Doctrine\Common\Annotations\AnnotationReader->getImports() #4 /usr/local/www/apache24//vendor/doctrine/annotations/lib/Doct in /usr/local/www/apache24//vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php on line 54

hard to find missing php extensions : php74-tokenizer php74-filter 👍

Please, add those two to the (check) list of php extensions needed (installation procedure step 2). Both are needed by doctrine: