Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function CodeIgniter\Autoloader\token_get_all() #1

Closed
egrueda opened this issue Jan 16, 2021 · 3 comments
Closed

Comments

@egrueda
Copy link

egrueda commented Jan 16, 2021

PHP 7.3 fresh install, cant find tokenizer methods.
Is this a required php module?

[16-Jan-2021 08:57:31 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function CodeIgniter\Autoloader\token_get_all() in /var/www/helpdeskz/public/hdz/framework/Autoloader/FileLocator.php:173
Stack trace:
#0 /var/www/helpdeskz/public/hdz/framework/Config/Config.php(150): CodeIgniter\Autoloader\FileLocator->getClassname('/var/www/helpde...')
#1 /var/www/helpdeskz/public/hdz/framework/Config/Config.php(83): CodeIgniter\Config\Config::createClass('Modules')
#2 /var/www/helpdeskz/public/hdz/framework/Common.php(155): CodeIgniter\Config\Config::get('Modules', true)
#3 /var/www/helpdeskz/public/hdz/framework/Config/BaseConfig.php(85): config('Modules')
#4 /var/www/helpdeskz/public/hdz/framework/Config/Config.php(124): CodeIgniter\Config\BaseConfig->__construct()
#5 /var/www/helpdeskz/public/hdz/framework/Config/Config.php(83): CodeIgniter\Config\Config::createClass('Config\\App')
#6 /var/www/helpdeskz/public/hdz/framework/Common.php(155): CodeIgniter\Config\Config::get('Config\\App', true)
#7 /var/www/helpdeskz/public/hdz/framework/bootstrap.php(179) in /var/www/helpdeskz/public/hdz/framework/Autoloader/FileLocator.php on line 173

@helpdesk-z
Copy link
Owner

helpdesk-z commented Jan 16, 2021

Hi,
Yes, I check the codeigniter forum and it is required to be installed in your hosting: https://www.php.net/manual/en/book.tokenizer.php
Here is a discussion about it: https://forum.codeigniter.com/thread-77038.html

I'm uploading the script in PHP 7.3 to reproduce your error, so I'm going to update it in a moment.
(Si deseas, hablamos español)

Update: I have enabled 'Tokenizer' in PHP 7.3 and works without any problem.

@egrueda
Copy link
Author

egrueda commented Jan 16, 2021

¡Gracias!
It was installed but not enabled.
In Debian I did:
phpenmod -v ALL -s fpm tokenizer
Maybe you can point that in the requirement section

@helpdesk-z
Copy link
Owner

Gracias a ti, servirá de mucho para otros usuarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants